How To Get Site Search Tracking Stats in WordPress Dashboard — Documentation page title
Site search tracking tells you what your visitors are searching for on your site. When someone uses your WordPress search bar, that query is captured as a GA4 event and shown in both Google Analytics 4 and your Analytify dashboard.
This guide walks you through enabling site search tracking in GA4 and viewing the data inside Analytify.
You have Editor or Administrator access to your GA4 property.
Step 1: Open Your GA4 Data Stream Settings
Log in to Google Analytics and click the Admin gear icon in the bottom left corner.
Under the Property column, go to Data Streams and click on your web data stream.
GA4 data streams
Step 2: Open Enhanced Measurement Settings
Inside the data stream details, find the Enhanced Measurement section and click the settings (gear) icon next to it.
GA4 Enhanced Measurement
A panel will open showing all Enhanced Measurement options.
Step 3: Enable Site Search
In the Enhanced Measurement panel, find Site search and toggle Enhanced Measurement button on.
GA4 will now track an event called view_search_results every time a visitor uses the search bar on your WordPress site. The search query the user typed is captured in a parameter called search_term.
WordPress search query parameter: WordPress uses s as its default search query parameter. For example, when a user searches for “analytics,” the URL becomes yoursite.com/?s=analytics. GA4 Enhanced Measurement detects this automatically for most WordPress sites.
Note: If your site uses a custom search plugin with a different query parameter, confirm the parameter name and add it to the Enhanced Measurement settings under “Query parameters.”