Setting up Google Analytics Site Search

Step 1

Perform a search on your website and look at the URL.

In this example a search for 'analytics' has been performed.

This example shows a search for 'analytics', the resulting URL is http://www.example.com/search?q=analytics. Note that the Query Parameter is 'q'.

(Please note that your website's internal search may return a much longer URL, for example http://www.example.com/search.asp?site=example&area=products&term=analytics. Note that the Query Parameter is 'term'.)

Step 2

Log into Google Analytics and click 'Edit' on next to the website profile.

Step 3

Click 'Edit' for your Main Website Profile Information.

Step 4

Select 'Do Track Site Search'.

Step 5

Enter the Query Parameter from your internal search.

Selecting 'Yes, strip query parameters out of URL' will prevent your search from showing up in your Content reports, for example:

Selecting 'No, do not strip query parameters out of URL' will include your search results in your Content reports, for example:

Site Search also allows you to setup categories. This can be used if your internal search has the ability to segment results across different areas of your website. To setup categories you will need to know the parameter that returns results for the different areas of your website. For example if you are using a Google Mini or Google Search Appliance the Category Parameter would be 'site' on a default configuration.

If your search does not have categories do not enter a Category Parameter.