GA4’s site search measurement records a view_search_results event when it detects a qualifying search parameter in the results URL. The value can populate the Search term dimension. Check both what the reader sees and what Analytics actually receives.
Find the result URL’s search parameter
Submit a term and note the results URL. In SEOWithJack’s article search, /search/?s=keyword+research supplies the term through s. The form updates results as you type, while the address changes on submission. You can open that results URL directly to test the URL-based path first.
In GA4, open Admin → Data streams, choose the web stream for your site and open the Enhanced measurement settings. Enable Site search if it fits your implementation. Google recognises q, s, search, query and keyword by default. For another query key, configure the key in the Site search advanced settings.
Test a matching search and an empty result
Use two harmless terms: one you know matches and one you choose to have no matches. Open both result URLs directly and note what the page shows. Then repeat the search using the actual form to see whether the same events arrive. Verify that the Analytics tag sends to the intended web stream. In that GA4 property’s DebugView, select your test device, then open each view_search_results event and check search_term. Follow the DebugView guide if the event never arrives.
| Observation | What to check |
|---|---|
| Two events for a single page presentation | Check for both Enhanced measurement and a manual tag sending the same site-search event. |
| Results update but the URL stays the same | Test what GA4 receives. If URL-based measurement misses the view, instrument the completed results render and avoid sending both implementations for that view. |
| A zero-result term appears in Analytics | The event can still record that the search page was shown. Collect a separate result count if you need to distinguish empty searches. |
Inspect what goes into Analytics before enabling either method. Keep identifiable input, including personal emails and phone numbers, out of both the captured term and collected URLs. If that can’t be ensured, leave automatic Site search off and prevent the raw query from being sent in page-view URLs.
Read the terms after reporting processes
In a GA4 exploration, add Search term as a row and Event count as a value. Filter Event name to view_search_results. Use the report to see which terms people searched for on your site. Use Search Console for the search queries that brought people there from Google.
Frequently asked questions
Where can I view site search terms in GA4?
Add the built-in Search term dimension to an exploration and limit it to the site-search event. Verify a single test term in DebugView before looking for it in processed reports.
Can I track search that changes results without a page load?
Yes. Use a deliberate event for a completed search results view if URL-based measurement doesn’t capture it. Keep the event definition consistent across mobile and desktop.
Does Site search report how many results appeared?
The automatic event gives you the term. A separate event parameter or analytics setup is needed to measure result counts.

