Follow me on LinkedIn - AI, GA4, BigQuery

Through the GA4 site search tracking (also known as ‘Internal Site Search Tracking’) feature, you can determine the search terms used by your website visitors to find information on your website:

website search

Once you have implemented site search tracking in your GA4 property, you can see the list of keywords (called ‘Search terms’) used by your website visitors to find information on your website:

search terms

The ‘view_search_results’ event

Once you have enabled/setup site search tracking in your GA4 property, whenever a user inputs a query and clicks on the search button on your website, GA4 fires the ‘view_search_results’ event.

You can see the ‘view_search_results’ event in your GA4 property via the ‘Events’ report:

the ‘view search results event

You should check how the ‘view_search_results’ events are being recorded in the GA4 BigQuery data table and what event parameters are being passed along with this event type.

Check how the ‘view search results events are being recorded

Take a close look at the various event parameters which are sent along with the ‘view_search_results’ events:

  1. search_term
  2. ignore_referrer
  3. engagement_time_msec
  4. session_engaged
  5. ga_session_id
  6. page_referrer
  7. engaged_session_event
  8. unique_search_term
  9. content_group
  10. page_location
  11. batch_ordering_id
  12. batch_page_id
  13. ga_session_number
  14. page_title

While creating a text prompt, we will refer to these event parameters (esp., ‘search_term’).

Creating Site Search Tracking report in GA4 BigQuery.

Here is how you can create an ‘Internal Site Search’ report in GA4 BigQuery to track what users are searching on your website.