How to enable site search in Google Analytics to track user queries?

Site search is the most important thing you should consider to add on your website. It is helpful to identify what the users are looking for and alternatively gives you a bunch of keywords.

If you have set up google analytics tracking id on your website you can see the search terms in your GA account. To track what users are searching on website you have to enable site search in your GA property view.

Follow the steps to enable site search in each reporting view

In your analytics account navigate to the specific view in which you want to enable site search

Next, click view settings


Under site search settings, switch on the site search tracking

In the query parameter box you can write searchQuery to identify the query url in your reports

Now your setup should look something like this

site search google analytics


Finally, save the changes by clicking the save button.

Once you enabled site search it may take upto 24 hours to generate search reports in your GA account.

To see the search reports in your analytics account you should navigate to Behavior >> Site Search >> Overview

You can also see the query parameters in Behavior >> Site Content >> All Pages

See the original question:


Author of this card: