Most store data tells you what people bought. The search log tells you what they were looking for, typed in their own words, including the things you do not sell and the things you sell under a different name. It is one of the cheapest demand signals a store has, and one of the least used.
The failure point is well documented. Baymard Institute’s benchmarking found that nearly 50 percent of sites fail to give users an effective way to recover from a search that returns no results. Fixing that page helps. Reading the searches that land on it helps more, because they tell you what to fix in the catalogue, in product data and sometimes in what you stock. This guide covers site search analytics for WooCommerce and Magento stores: what gets recorded, what does not, and a weekly routine for turning the log into action.
What your platform records about searches
The three common sources each see a different slice, and none of them sees everything.
| Source | What it records | What it misses |
|---|---|---|
| GA4 enhanced measurement | A view_search_results event with the search_term, triggered when the URL contains q, s, search, query or keyword | How many results came back; visitors who declined consent or block the tag |
| Magento Search Terms report | Every query with the number of results and the number of uses, under Reports, Marketing, Search Terms | What the shopper did next; which searches led to orders |
| WooCommerce core | Nothing; searches are not logged | Everything, unless a search plugin or your own code keeps a log |
Google’s documentation lists the five default parameters and notes that the search_term parameter populates the Search term dimension. WooCommerce product searches use ?s=, so they are picked up without configuration. Magento’s report is more useful than most people realise: Adobe’s documentation notes that the number of results is updated every time a shopper executes a search, which means a term that returned zero results last week shows zero until someone searches it again after you fix it.
The two blind spots in GA4
GA4 knows a search happened and what was typed. It does not know whether the search found anything, so a zero-result search and a search with 200 results look identical in the report. The second gap is specific to WooCommerce: when a search matches exactly one product, WooCommerce skips the results page and sends the shopper straight to the product. The behaviour is controlled by the woocommerce_redirect_single_search_result filter, which is on by default. No results page means no view_search_results event, so your most successful searches never appear in GA4 at all.
Log the result count yourself
Both gaps close with a few lines in a child theme or a small plugin. The snippet below turns off the single-result redirect and pushes the search term and the number of matching products to the data layer on every search page:
// Show a results page even when only one product matches
add_filter( 'woocommerce_redirect_single_search_result', '__return_false' );
// Push the term and the result count to the data layer
add_action( 'wp_footer', function () {
if ( ! is_search() ) {
return;
}
global $wp_query;
$term = get_search_query();
$count = (int) $wp_query->found_posts;
?>
<script>
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'site_search',
search_term: <?php echo wp_json_encode( $term ); ?>,
search_results: <?php echo $count; ?>
});
</script>
<?php
} );
In Google Tag Manager, send that as a GA4 view_search_results event with a search_results parameter, register the parameter as a custom dimension, and turn off site search in enhanced measurement so the event is not counted twice. Two cautions. Shoppers sometimes type email addresses or order numbers into the search box, and Google does not allow personal information in GA4, so strip anything that looks like an email or a long number before pushing it. And if you keep the redirect for user experience reasons, push the event from the product page instead when the referrer is a search.
If you would rather not depend on GA4 at all, write each search to a database table (term, result count, timestamp, session ID) from the same hook. A server-side log is not affected by consent banners or ad blockers, and it is the only way to see every search.
Six numbers worth tracking
| Metric | Definition | What a bad value points to |
|---|---|---|
| Search usage rate | Sessions with a search divided by all sessions | A hidden or slow search box, especially on mobile |
| Zero-result rate | Searches with no results divided by all searches | Missing synonyms, typos, unindexed attributes |
| Refinement rate | Searches followed by another search in the same session | Results that do not match intent, even when not empty |
| Search exit rate | Sessions that leave from a results page | Poor ranking or a dead-end no-results page |
| Search conversion rate | Sessions with a search that end in an order | Compare with sessions without search; it should be higher |
| Revenue per search | Revenue from searching sessions divided by searches | The figure to watch after any search change |
Mobile deserves its own view. Metorik’s 2026 WooCommerce benchmark found that 72 percent of orders are now placed on mobile. On a small screen, deep category menus are slow to use, so the search box tends to carry more of the navigation, and a broken search costs more there.
Sort zero-result terms into four groups
A raw list of failed searches is hard to act on. Two questions sort it: do you sell what the shopper asked for, and could search find it?
Most zero-result searches fall into a handful of causes, and each has an owner:
| Cause | Example | Fix | Owner |
|---|---|---|---|
| Vocabulary mismatch | “hoodie” when the catalogue says “sweatshirt” | Synonym list or extra keywords in product data | Merchandising |
| Misspelling | “bluetoth speaker” | Typo tolerance in the search engine | Developer or search plugin |
| Attribute not searchable | “waterproof jacket”, “size 12” | Index attributes and descriptions, not just titles | Developer |
| SKU or model number | “XR-450” | Index SKUs; WooCommerce core search does not include them by default | Developer |
| Product you do not stock | “usb c charger” in a phone case store | Weigh demand; stock it or redirect | Buying |
| Not a product | “returns”, “tracking”, “gift card” | Redirect to the right help page | Customer service |
Magento has a built-in shortcut for the last two: under Marketing, SEO and Search, Search Terms, you can set a redirect URL for a query, so a search for “returns” goes straight to the returns policy.
Rank the list by what it might be worth
To decide what to fix first, estimate the revenue each failed term might be leaving behind: monthly searches, multiplied by your search conversion rate, multiplied by average order value for that category. It is a rough upper bound, not a forecast, because some of those shoppers would not have bought even with perfect results. Label it as an estimate. Its job is ordering the list, not predicting income.
| Zero-result term | Searches per month | Group | Rough monthly value |
|---|---|---|---|
| hoodie | 240 | Fix search first | 240 x 4% x $62 = $595 |
| waterproof | 130 | Fix search first | 130 x 4% x $88 = $458 |
| usb c charger | 95 | Buying decision | 95 x 4% x $25 = $95, if stocked |
| returns | 310 | Redirect | Not revenue; a support cost |
Then fix the page itself
Some searches will always come back empty. What the shopper sees next decides whether they stay. Baymard recommends a no-results page that offers related categories, alternative searches with a preview of the top products, recommendations based on browsing history, contact options, and popular products as a last resort, and notes that search tips on their own are not enough. Once your result counts are logged, you can measure the change: the exit rate from zero-result pages should fall after the redesign.
A 30-minute weekly routine
- Export last week’s zero-result terms with their counts (GA4 with the new dimension, Magento’s Search Terms report, or your own log).
- Normalise them: lower case, trim spaces, merge plurals.
- Sort each new term into one of the four groups and assign the owner.
- Check last week’s fixes: the same terms should now return results, and their exit rate should drop.
- Once a month, send the “buying decision” list with counts to whoever plans the range.
Watching the zero-result rate over time is also a cheap health check. A sudden jump after a theme update or a catalogue import usually means search has stopped indexing something. QuantumLayers explains how to separate that kind of break from normal variation in Anomaly Detection in Data Analytics.
Sources
- Baymard Institute, Search UX: 5 Proven Strategies for Improving “No Results” Pages (updated February 2025)
- Google Analytics Help, Enhanced measurement events
- Adobe Experience League, Manage search terms
- Magento Merchant Documentation, Search Terms Report
- WP Kama, woocommerce_redirect_single_search_result filter reference
- Metorik, Mobile vs desktop ecommerce statistics


