WordPress Search Analytics

How to See What Your Customers Search For on Your WordPress Site

Your search box is a list of what people want from you, in their own words. Here are two ways to read it, and what to do with what you find.

Last checked on 17 November 2026.

Why It's Worth Ten Minutes

A visitor who uses your search box has told you exactly what they came for. Across a month, those searches answer questions that are otherwise guesswork:

  • What do people want most? Your top searches are your real demand, whatever your menu says.
  • What can't they find? Searches that come back empty are lost visits you can win back.
  • What words do they use? If customers type “jumper” and you write “sweater”, you'll see it.
  • What should you add next? Repeated searches for something you don't offer are requests.

Out of the box, WordPress keeps none of this. Once a search is done, it's gone. You need one of the two methods below.

Method 1: Google Analytics

If your site already uses Google Analytics 4, it may be collecting searches without you knowing.

Google Analytics has a feature called enhanced measurement, and one of its options is Site search. It records an event named view_search_results each time a visitor lands on a page whose address contains a search word. WordPress puts searches in the address as ?s=, which is one of the patterns Google looks for by default. (Google's own description of the feature.)

To check it's on and see your searches:

  1. In Google Analytics, open Admin, then Data streams, and choose your website.
  2. Under Enhanced measurement, check that Site search is switched on.
  3. Search for something on your own site, so there's at least one search to see.
  4. In your reports, look for the event view_search_results. The words people typed are in the Search term dimension.

It's free and it takes a few minutes. But it has real gaps:

  • It doesn't know whether the search found anything. You get a list of words, not a list of failures. Finding the dead ends means testing each word yourself.
  • It only sees searches that load a page. If your site shows results as people type, anyone who clicks a result from that list never loads a results page and isn't counted.
  • It misses visitors who decline tracking. Where you ask for cookie consent, searches by people who say no aren't recorded, and some browsers block Google Analytics altogether.
  • Your visitors' searches go to Google. That's a reason some site owners prefer the second method.

Method 2: Let Your Search Plugin Record It

The other place to record searches is the search itself. A search plugin knows things Google Analytics can't: what was typed, how many results came back, and what the visitor clicked.

Some search plugins include a report like this and some don't, so check before you choose one. Look for three things:

  • A list of searches that found nothing, not just a list of all searches.
  • Where the history is kept. On your own site is simplest for privacy.
  • What's recorded about the visitor. The words are useful. Names and IP addresses aren't needed.

How RocoSearch Pro Does It

Search Insights is part of RocoSearch Pro. It records each search on your own site and shows you:

  • Top searches over the last 7, 30 or 90 days, or the last 12 months.
  • Searches that found nothing, ranked by how often they happen.
  • How many searches led to a click, and on WooCommerce stores, the orders and sales that started in the search box.

Searches from the live results list are counted too. Your own searches as an administrator are left out, so testing doesn't skew the numbers. History stays in your WordPress database, without names or IP addresses.

One limit to know: it starts counting on the day you switch Pro on. It can't show you searches made before then.

What to Do With What You Find

A list of searches is only useful if it changes something. Work through it in this order.

1. Fix the Searches That Found Nothing

Take the most common failed searches and ask why each one failed:

  • It's a typo. Your search needs to forgive spelling mistakes. See why WordPress search fails on typos.
  • It's a different word for something you have. Teach your search that the two words mean the same thing. In RocoSearch Pro that's the Treat as… button beside the failed search.
  • It's a question with one right answer. Searches like “returns” or “opening hours” should go straight to the page. In RocoSearch Pro that's Send to a page…
  • It's a product code. See why WooCommerce search can't find product codes.
  • You really don't have it. If it keeps coming up, that's demand. Consider stocking it or writing about it.

2. Check Your Top Searches

Run your ten most common searches yourself. Is the first result the one you'd want a visitor to see? If not, it's worth adjusting what your search treats as most important.

3. Use Your Visitors' Words

If people search for a phrase you never use, add it: to product names, to page titles, to your menu. The same words will help visitors arriving from Google.

4. Look Again Next Month

Searches change with seasons, stock and news. Ten minutes a month is enough to catch new dead ends before they cost you much.

Stop Guessing What Your Visitors Want

Start with a search that works. Install RocoSearch free, then add Pro when you're ready to see every search.

Free forever. No credit card. Nothing locked.