We have a site on which we recently started using Google Tag Manager for all our tracking needs.
Before this we had Google Analytics (now upgraded to Universal Analytics) Site Search activated.
We had _ga.push
-statements with the search parameters sent to Google Analytics, the terms
we used was the search string and the number of products found which was sent in an event like:
_gaq.push(['_trackPageview', '/search?q=[SEARCH STRING]&cat=[NUMBER OF RESULTS]']);
Google Analytics received these parameters and used them in Site Search.
Now that we have GTM set up I feel we really should be able to skip this step, many events and other Google Analytics stuff is already integrated in GTM in a good way.
In our dataLayer to GTM we have searchString as well as the number of results and much more information that could be used for site search by Google Analytics.
The question is HOW should you send the information to Google Analytics and HOW should you setup GA to receive it in the best possible way?