Hi @markjnor @MLePogam @irowley @MiaPV @SamAdler @Phil_Vallender ,
I recently enabled HubSpot site search for the exact same reasons most of you did - I wanted to know what our visitors were actually interested in/searching for so I could optimize content for those search terms.
And like most of you, I was shocked I couldn’t see the search terms in any HubSpot analytics/reports. Came looking in the community for answers and was crushed there was no easy free way to do this!
However, I’ve now discovered a way to easily do this with Google Analytics so you can see your HubSpot search terms in GA.
You need to have the GA tracking script on your site and Admin privileges in GA, but here’s what you need to do:
1) Go to GA Settings/View Settings (far-right column)/Site Search Tracking (scroll to the bottom)
2) Turn Site Search Tracking ON
3) In the Query Parameter field, enter “term”
4) Tick the box to “Strip query parameters out of URL”
My HubSpot search results URL looks like this (I think this is standard for HubSpot, but showing in case it’s not):
www.aaxisdigital.com/hs-search-results?
term
=digital+commerce&type=SITE_PAGE&type=LANDING_PAGE&type=BLOG_POST&type=LISTING_PAGE
In Step 3 above, you want to use whatever your query parameter is (the bold red "
term
" above)
In Step 4 above you’re telling GA to ignore all the other parameters that followed the search terms
One last note, don’t despair if you set this up and don’t see anything immediately. I had to wait 24 hours for my search terms to start showing in GA.
The Google site search setup steps can also be found here: [UA] Set up Site Search [Legacy] - Analytics Help
Happy optimizing!
Regards,
Andy

