Tracking repository searches from the inside

One of the many great features of Google Analytics is that it can shown the search terms that visitors to your site have used in search engines. This is a great tool for finding out what brings users to your repository.

Seven months ago Google launched a new feature in Google Analytics that also allows you to track the search terms used by visitors within your repository. Its very easy to set up, all you need to do is enable the feature and set the query parameter used by your repository. Follow these rules from the help pages:

  1. Log in to your Google Analytics account.
  2. Click ‘Edit’ under Website Profiles for the profile you would like to enable Site Search for.
  3. Click ‘Edit’ from the ‘Main Website Profile Information’ section of the Profile Settings page.
  4. Select the ‘Do Track Site Search’ radio button in the Site Search section of the Edit Profile Information page.
  5. Enter your ‘Query Parameter’ in the field provided. Please enter only the word or words that designate an internal query parameter such as “term,search,query”. Sometimes the word is just a letter, such as “s” or “q”. You may provide up to five parameters, separated by a comma.
  6. Select whether or not you want Google Analytics to strip out the query parameter from your URL. Please note that this will only strip out the parameters you provided, and not any other parameters in the same URL. This has the same functionality as excluding URL Query Parameters in your Main Profile – if you strip the query parameters from your Site Search Profile, you don’t have to exclude them again from your Main Profile.

Google Analytics Site SearchFor DSpace you need to set the query parameter to query and with EPrints set it to simple.

To view the results, follow the links shown in the image (Content -> SIte Search) and explore the results. 

Here is some interesting statistics from our repository as an example of the extra stats it can provide:

Bookmark and Share
Posted on June 6, 2008 at 6:55 am by Stuart · Permalink
In: Uncategorized · Tagged with: , , ,

2 Responses

Subscribe to comments via RSS

  1. Written by Jenny Delasalle
    on September 17, 2008 at 10:57 am
    Permalink

    I’m going to try this for my repository… which is an E-Prints one. If I set the parameter as simple, as you instruct, presumably I only get it to track simple searches within my repository? So, I can put up to four other parameters in, to get G.A. to look at other types of search. Would I want to ask G.A. to monitor other search parameters, or would that just muddy my statistics?
    By the way, I didn’t know how to find the search parameters in E-prints, but I found out a simple way: if you do a search in your repository, you’ll get a URL for the results page that will contain the search parameters you have used. I think the bits you can use are the labels that appear between an ampersand and an equal sign. Wierd that the full text parameter appears to begin with an underscore…

  2. Written by stuart
    on September 17, 2008 at 11:45 am
    Permalink

    Is there another search option in EPrints? The repositories I’ve tried all use /search/simple regardless of if they are performing a simple or more advanced search.

    I’ve never tried monitoring other search parameters, but it might be an interesting thing to do. Assuming it works well, it might tell you what types of searches people are performing. For example are they just doing a free text search, or using filters to refine the search.

Subscribe to comments via RSS

Leave a Reply