URL for search queries not compatible with Google Analytics Search Terms
Coveo's non-standard way of rendering search terms in the URL is causing us some difficulty in tracking search terms in Google Analytics. The only way to set up Google Analytics is to tell it what the argument string for search queries is. It's looking for something like:
However, Coveo uses a different anchor-based approach with a hash instead:
This is really quite unusual. The majority of systems out there append an argument string to the URL. Do you have a recommendation for how we could resolve this? Is it possible to switch Coveo to use argument strings? Or would we need to manually inject a faked page URL with Google Analytic's _trackPageview method?
We're using Coveo for Sitecore, FYI.
I think the
We're using arguments after the
So, you should attach an handler to the
querySuccess event and notify Google Analytics from there.