How to Enable Search Tracking for Google Analytics WooCommerce?

Turning on Search Tracking sends the terms customers search for on your store to GA4, so you can see exactly what people are looking for and whether they're finding it.

Benefits

Enabling Search Tracking can help:

  • See what customers are actually searching for on your store
  • Spot products or categories customers expect to find but can't
  • Inform what new products, content, or navigation changes might be worth adding

How It Works

Whenever a visitor lands on your store's search results page with a non-empty query, the plugin sends a view_search_results  event to GA4, with the actual search term attached as a parameter.

How to Enable Search Tracking

Step 1: Open Core Tracking

Go to Ecommerce Tracking → Tracking Configuration and open the Core Tracking section under Tracking Configuration.

Step 2: Turn on Search Tracking

Turn on Search Tracking.

Step 3: Save your settings

Save your changes. From this point on, every on-site search with a search term is reported to GA4.

Viewing This Data in GA4

Go to GA4 → Reports → Engagement → Events and open view_search_results. Click into it and add Search term as a secondary dimension (or build an Explore report using this event and dimension) to see the actual terms customers searched for.

This replaces the old Universal Analytics Behavior → Site Search report, which doesn't exist in GA4. view_search_results  combined with the Search term dimension is the GA4 equivalent.

Example Use Cases

Spotting demand for products you don't carry: If customers repeatedly search for something not in your catalog, that's a signal worth acting on.

Improving product naming: If a search term doesn't match any of your product titles or tags, customers might be using different language than your store does.

Prioritizing content or FAQs: If you notice recurring searches for topics like shipping or returns, that's a sign to make that information easier to find.

Conclusion

Search Tracking shows you exactly what customers type into your store's search bar. Turn it on, then check the view_search_results  event with the Search term dimension in GA4 to see what your customers are looking for.

FAQs

1. Where do I see search terms in GA4?

Go to GA4 → Reports → Engagement → Events, open view_search_results, and add Search term as a secondary dimension.

2. Does the old Behavior > Site Search report still exist?

No, that was a Universal Analytics report and doesn't carry over to GA4. The view_search_results  event with the Search term dimension is the GA4 equivalent.

3. Are empty searches tracked?

No. The event only fires when a visitor submits a non-empty search term.

4. Does this track searches from third-party search plugins?

This tracks WordPress/WooCommerce's native on-site search results page. Searches handled entirely by a separate search plugin's own interface may not trigger this event unless they use the same search results page.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.