Mobile app version of vmapp.org
Login or Join
Martha676

: Capturing site search parameters from the URL hash in Google Analytics We want to capture aggregated, anonymous search query history for analytic purposes to improve our internal search engine

@Martha676

Posted in: #GoogleAnalytics #SiteSearch #Url

We want to capture aggregated, anonymous search query history for analytic purposes to improve our internal search engine performance and metadata practices.

I found this article: support.google.com/analytics/answer/1012264?hl=en
Unfortunately, our search engine uses a hash tag instead of a question mark (nonstandard query string).

For example: www.example.com/search#q=search%20term
Is there a way to configure Google Analytics to recognize hash tag values in the URLs and capture these given a defined pattern?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Martha676

1 Comments

Sorted by latest first Latest Oldest Best

 

@Hamaas447

I'm not certain about the # aspect but under the admin settings find the "track internal site search" setting and enable it. It won't allow you to enable it without including the query parameters and I assume you can just specify them there (up to 5).

I believe this is true in ga.js and analytics.js (aka 'Universal Analytics' which is now in public beta...for sure it is in Universal, but I think it's in ga.js as well)

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme