Enabling Site Search tracking for Drupal site search in Google Analytics

Posted Oct 20, 2009 // 2 comments
Kelly:

These instructions assume that a Google Analytics account is set up, the Google Analytics Drupal module installed, and site search enabled on the site.

Open the Google Analytics configurations. On most sites this is found in the Site Configuration section of the admin menu. Scroll down to the advanced settings group and select the track internal search option.

 

 

 

 

 

 

 

Save your configuration settings and open your google analytics account.

Access the Analytics Settings link in the top left corner of your analytics account. Select edit under the actions column for the website you want to track search terms for.

Under the Main Website Profile Information you will see an item for Site Search. In the top right corner of this box select the edit link.

Select the Do Track Site Search option and enter the term search in the Query Parameter

 

 

 

 

 

   

 

You should now see the Do track site search enabled in the profile information.

Now access your site statistics from the View Reports link for your site. The site search statistics are found in the Content section. From this point on, you will be able to track the terms that users are entering to find content on your site.

About Kelly

Kelly Phong is a business analyst at Phase2 Technology. She excels at translating clients ideas into plans of action. She is also an active facilitator in the open source community.

Previously, Kelly was a project manager at ...

more >

Read Kelly's Blog

Comments

by Alessandro Canepa (not verified) on Thu, 03/04/2010 - 07:03

Are you sure that it works with clean URLS activated

I noticed that if you activate clean-urls in Drupal (which is a necessary best-practice), search URLs become /search/node/KEYWORD. I doubt that Google Analytics will work in this case. Have you tried?

Alessandro

by Jeroen (not verified) on Thu, 04/08/2010 - 06:56

Works great !

Thanks Kelly for the clean and simple explanation. Works perfect !

Jeroen

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • Allowed HTML tags: <a> <strong> <code> <p> <img> <ul> <ol> <li> <h2> <h3> <h4> <b> <u> <i>
  • You may insert videos with [video:URL]

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.