In addition to the above, it's generally advisable to strip query parameters in your main view as it cleans up the site content report.
The check box above will only strip the parameters that you have specified here. The main benefit of this feature is to remove duplicates so that it is easier to report on the search results page; the duplicates here are generated by the changing parameter.
If your site uses categories to follow the search, the same principles apply to this too.
But what if your site doesn't provide a Query Parameter?
You can get around this if that's the case - it depends whether you have Classic or Universal Analytics (alterations only need to be made on site search pages).
For Universal Analytics….
UA is the platform for GA code now so if you are up to date this will be the section for you. Within your GA site code you will find:
Which you will have to change to include the search term (stored in the variable 'search_keyword'):
ga('send', 'pageview', '/searchlandingpage?search_text='+ search_keyword);
Now all you need to do is go back to the GA interface and insert the query parameter.
For Classic Analytics….
Virtual Pageviews can be implemented in this situation to allow analytics to track these searches by appending the query parameter to each search. This can be done by adding the virtual page view name directly into the _trackPageview function.
So, if your search bar's landing page is something like:
Then you need to change the code on the search results page from:
To include the search term (stored in the example variable 'search_keyword'):
_gaq.push(['_trackPageview', '/searchlandingpage?search_text='+ search_keyword]);
This method will also allow you to see how the search results page is performing and which search terms are causing users to either leave the site or conversely going on to engage well with your site.
Now all you need to do is go back to the GA interface and insert the query parameter!
Now that you have the data coming though it will be important to monitor the searches coming through regularly.
This can give you ideas for new Ad Groups that haven't yet been implemented; there may be new popular product lines that you can spot here too and feed back to your client.
Spotting similar themes here can also highlight issues with site navigation which you can flag up as something to your client to improve website navigation.
If you realise that searches are initiated on certain pages more so than on others, this could be an issue with the content or messaging on those pages. Keeping track of this in conjunction with other GA metrics like bounce rate of webpages can really enhance your campaigns.