Use Google Analytics To Track Site Searches

When I re-launched Web Auctions Daily it was missing a way to search through the various auctions the site was collecting. I eventually got around to adding a really simple search form over the weekend. When I was finished I wanted to come up with a way of monitoring what people were searching for.

Before I sat down to add a home grown search monitoring feature to the site I remembered that Google Analytics has the ability to monitor local searching for you. Luckily it’s really simple to setup.

To activate site search tracking in Google Analytics you need to edit the Profile Information of your site. At the bottom of the Edit screen you’ll find this section:Google Analytics - Site Search

As you can tell from that screenshot, Google Analytics uses the query string of your search script to track what people are searching for on your site. In my particular case, the query string has two parameters: q and q_type. q contains the actual term the user is searching for and q_type is the category of auction to search through (either site, domain or template in the case of Web Auctions Daily.

Here’s an example of a typical search URL from the site:
http://www.webauctionsdaily.com/search.php?q=wii&q_type=site

Google Analytics - MenuThe only required parameter for this to work is the one that contains the actual search query. The second parameter for the category is optional. You can also have Analytics strip the parameters from the URL in its reports, if you’d like, by marking the appropriate radio button.

Once you have everything set correctly you can view all of the searches people make on your site by accessing your Google Analytics account and checking “Site Search” under the “Content” tab.

This is an excellent way to keep an eye on what people visiting your site are looking for and it’s almost painless to setup and get going. I’m a huge fan of Google Analytics because it offers you either a simple view of your site’s traffic or, with a little bit of work on your part, an in-depth analysis of visitor usage.

December 18th, 2007 | Traffic, Web Development | 4 Comments

4 Comments

  1. [...] I Am Jack shares an easy way to track what your users are searching for on your site through Google Analytics. [...]

    Pingback by Make It Up As You Go » Blog Archive » Use Google Analytics To Track Site Searches — December 18, 2007 @ 5:57 pm

  2. This seems pretty cool, I’m going to try it out. For awhile, I didn’t like Google Analytics but I’m getting used to it.

    Comment by A.J. — December 19, 2007 @ 7:50 pm

  3. Thanks for commenting. I’m a huge fan of Google Analytics. I think it crushes every other stat program online these days.

    Comment by Link — December 19, 2007 @ 8:03 pm

  4. Great Post! I just activated the site search tracking for my site. I never actually noticed that the feature was there to use…

    Comment by Zinni — January 8, 2008 @ 7:50 pm

Leave a comment...