Home » Traffic

How To Activate Internal Site Search In Google Analytics

10 April 2010 423 views No Comment

Internal site search is when a visitor of your website is using the search box on your website to find information. Tracking this information is very useful because every time your visitors are searching for something, they literally tell you in their words what they are looking for. You can see their initial searches, the refined searches when they didn’t find what they were expecting and which pages they searched from.

Google Analytics is offering this feature and all you have to do is to activate it. Here is how to do that:

In Analytics Settings page, click Edit near your website and again Edit in the next page (on the same row with Main Website Profile Information text). You’ll see the Edit Profile Information page, scroll down to Site Search area:

Google Analytics Site Search

Check the option Do track Site Search and, for the required parameter, you have to check how exactly looks the URL of a search on your website: just insert a keyword in the search box of your website, hit Enter and check the URL in the Address Bar. Usually, this URL ends with ?q=keyword, ?search=keyword or ?s=keyword (for a Wordpress site it is ?s=keyword&x=0&y=0). The text between “?” and “=” represents the requested parameter (for Wordpress, this will be “s“). Insert this parameter in the field, check Yes, strip query parameters out of URL and No to Do you use categories for site search? Save changes and that’s it, you can wait for Analytics to gather data and start analyzing the reports.

In some cases, is possible that your website is not using that search parameters. What can you do? Simple: just add in the Google Analytics code inserted to your pages the following line:

pageTracker._trackPageview(‘/site search/?s=%searchterm’)

where “s” is the same parameter as above.

Related Posts

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.