When talking about site search reporting in Google Analytics I always refer back to the client we had years ago that had over 5 years of site search data but didn’t realise it was being collected. To their surprise they didn’t sell their top searched item but it was a product that was closely related to what they offer. The researched it further and found they could source it, ship it in and start selling it and have made lots of revenue on it since then.
Knowing what people are searching when they get to your site is important- visitors that search are normally searching for something that they can’t find on the site and this is generally content or products that you eitherdoordon’thave.
Whether it helps you expand your product range, add additional buttons or content to your site, or rename part of your navigation menu to better help people find what they need- site search is one of the less talked about reports in Google Analytics but one that can easily provide you with quick-win actionable insights.
Still using Universal Analytics and want to view how to set-up site search? You can follow the instructions on an older blog post hereTop Tips And Tricks To Using Google Analytics Better.
In this blog we are going to focus on how to set this up for GA4.
The first important step whether you are setting site search up for Universal Analytics or GA4 is identifying what your search query parameter is.
Not sure what your site search query parameter is? To get the query parameter perform a search on your own website, take a look at the URL, notedown the letters or sequence that appears justbeforethe search term or terms. Then perform another search and check the URL again to see if the same letters or sequence appears again before your search term. If it does and this is a common pattern, then you can take this as your search query parameter.
For example, in the case of GlowMetrics, when you perform a search on our website you will see asbefore the search term each time so this is our query parameter that Google Analytics can now use to identify that a search has been performed:

Next:
- Login to your GA4 property and click on the gear icon
- Under PROPERTY navigate to DATA STREAMS and select your WEB STREAM DETAILS
- Click the gear icon under ENHANCED MEASUREMENT
- Under the 4thoption down – SITE SEARCH – make sure this is turned on and select SHOW ADVANCED SETTINGS
- In here, add your SEARCH TERM QUERY PARAMETER and click SAVE.
The first 30 seconds of the video will demonstrate this:
You’ll want to check that this is working when you’ve set it up so go back to your site and perform a search. Then, go back to your real-time reports and under the ‘Event countbyEvent name’ widget, you should see at least 1 event against event name:view_search_result:
To be sure that your search term has come through- click on theview_search_resultsevent and you should see the event parameterkey search_term, clicking on this, you should see the value (your search term- in this case, I searched for ‘site search’). Note- it might take a few minutes for the key and value to appear as you drill down.
If you can’t see your search/search keyword- make sure you aren’t filtering out your IP!
Want to check your site search data going forward (not just in the last 30 minutes)?
You’ll be able to see this under your ENGAGEMENT reports under EVENTS under the event:view_search_results Our follow-up blog demonstrates how to do this: Exposing site search terms in GA4
Happy site search analysing!
Confused by GA4? Check out the Glow Analytics Academy for GA4
OurGA4 Training Courseis led by certified GA4 experts who have years of experience working with businesses of all sizes. We’ll teach you everything you need to know about GA4, from setting up your account and tracking your data to creating custom reports and using advanced features.
We’ve developed a schedule of 6 x 3-hour sessions across GTM for GA4, the GA4 Interface, Reports and Insights, and Looker Studio for GA4. By the end of the course, you’ll be able to confidently use GA4 to track and analyze your user data, identify areas for improvement, and make informed decisions to drive business growth.
Interested? We’ll be running courses throughout 2023. Check out ouravailable GA4 Training course dates in Belfast & Dublin.
Posted by
Joanne Kearney
Joanne has over 10 years’ experience working in digital analytics, executing and managing many large scale projects across the UK and Ireland. Joanne is also an experienced trainer, having developed many customised corporate training schemes and regularly speaks at digital and analytics events.
Learn more about Joanne KearneyBrowse by Category
- Social Media
- SEM
- SEO
- Google Ads
Digital Marketing
- Google Analytics
- Google Tag Manager
- Looker Studio
- Google Opimize
Digital Analytics
Optimise your website and marketing campaign performance with Ireland’s leading digital analytics agency
Sign up to our newsletterEnjoyed reading this article? Find more like it below…
Posted by
Hannah Magorrian
Mar 28th 2023
Google Optimize
5 min read
Alternatives To Google Optimize Post-Sunset
Goodbye Google Optimize! Google has recently announced they will be sunsetting Google Optimize and Optimize 360, effective from 30th September 2023. The announcement cited Google’s desire to provide a better...
Posted by
Kyle Crooks
Mar 4th 2023
Digital Marketing Insights
5 min read
Spot-on Advertising: 8 Things We Learned Running Spotify Ads
According to Spotify, around 1/3 of the global online population uses the platform, with at least 60% of users engaging daily – ranking Spotify as one of the top platforms...
Posted by
Nicola Bell
Mar 4th 2023
Web Analytics
5 min read
How Internal Links Can Improve Your Website’s SEO
Internal links are an important aspect of search engine optimization (SEO) as it helps search engines understand the structure of your website and the relationships between pages. In this blog,...
Leave a Reply