Do you want to track your internal search queries with Google Analytics?

December 21st, 2006 admin Location: Raleigh, NC, Topic: Web Design | Digital Media

if you are in the look for an easy way to track internal search queries with Google Analytics here is how to do it setting up the __setVar()
javascript code.
Step 1. In your form tag:
action=”actionname”
onSubmit=”javascript:__utmSetVar(document.formname.searchboxname.value);”>
2. Everytime that someone searches for anything in your search form
they will be segmented according to their search query. Now, what if you want to track more than 1 query per visitor? In this case what you would do is set the urchinTracker() javascript call instead of the utmSetVar(). Assign a unique name to the page view and exclude that name from your profile to avoid “inflating” your stats.
In Google Analytics in the first case the information will appear under: VISITOR SEGMENT PERFORMANCE > User Defined Segment or by cross segmenting any report with the user-define tab. In the second example each query would represent a separate pageview.That is it.

Simple, Easy and Powerful.

LinkShare  Referral  Prg

Related posts:

  1. Track Scrolling in a Page (Engagement) with Jquery and Google Analytics
  2. Google Analytics and Google Sitemaps combined
  3. Need the IP address of your visitors in Google Analytics Reports? Is it possible?
  4. Avoid Content Duplication because of Google Analytics
  5. VideoCast: Retrieving IP Addresses with Google Analytics
  6. 10 Easy Tips to Get Visibility on Google Search, Yahoo and MSN
  7. Search Spiders or Search Spy-ders?
  8. The Google Analytics Cheat Sheet
  9. New Google Analytics Interface
  10. The secret of high return keywords with Google Analytics