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

About the Author

Alex Centeno MBA., is an international creative director and digital media strategist. Currently residing minutes away from the Research Triangle Park (RTP) - North Carolina, and with over 10 years of interactive marketing training and experience, Alex leads Merkados' international clients to maximizing their online business strategies. One of Alex's biggest strengths is his world-class capacity to effectively combine interactive marketing, digital media design and web development.

You may find further information about Alex Centeno MBA. at: and Twitter.

Sobre el Autor

Alex Centeno MBA., Es un director creativo y estratega de medios digitales reconocido internacionalmente. En la actualidad reside a tan solo minutos del Research Triangle Park (RTP) - Carolina del Norte, y con más de 10 años de entrenamiento y experiencia en marketing interactivo, Alex lidera a los clientes internacionales de Merkados™ para maximizar sus estrategias de negocios en línea. Una de las mayores fortalezas de Alex es su capacidad global de combinar de manera efectiva, mercadeo interactivo, diseño de medios digitales y desarrollo web.

Para más información sobre Alex Centeno MBA. puede visitar: y Twitter.