4.6K members online now
Understand information in your reports and troubleshoot reporting issues such as self-referrals, (not set) data, and inaccurate information
Guide Me

Site search tracking when using predictive search results

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Like many websites my site search now offers results in a drop down list whilst the user is typing their search term. If the user clicks on an offered result and never gets to the point of pressing enter after entering a search term the query is never logged as a search within Google Analytics.

Is there anyway to track the entry of search terms if a search url is never generated?

1 Expert replyverified_user

Site search tracking when using predictive search results

Rising Star
# 2
Rising Star

Hi Becky,


If the clicks on these predictive results do not pass a query parameter in the URI, then you need to pass a query parameter using a virtual pageview.  That will require a developer or GTM to do this dynamically. 


More on Virtual pageviews here:


And a method by Simo Ahava to do it in GTM:




Theo Bennett

Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn