# Analytics - Tracking Search Querries

**URL:** <https://forum.kirupa.com/t/analytics-tracking-search-querries/319605>\
**Category:** flash\
**Created:** [February 25, 2011, 11:17pm UTC](https://forum.kirupa.com/t/analytics-tracking-search-querries/319605 "2011-02-25T23:17:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lletdownl](https://avatars.discourse-cdn.com/v4/letter/l/6a8cbe/32.png) [@lletdownl](https://forum.kirupa.com/u/lletdownl)\
**Post date:** [February 25, 2011, 11:17pm UTC](https://forum.kirupa.com/t/analytics-tracking-search-querries/319605/1 "2011-02-25T23:17:46Z")

</div>

Hi!

I use google analytics to track viewed content on my site using tags like this…

```auto
getURL("javascript:pageTracker._trackPageview('/MAIN/WORK/SEARCH-ENTER.html');");

```

Im wondering how i can however track search queries using a similar method.

Conceptually, im looking for a way to do this

```auto
getURL("javascript:pageTracker._trackPageview('/SEARCH-ENTER-"+search_fields.query_txt.text"'.html');");

```

This tag is located within the portion of the search function where the query text is checked against the XML file. Is there a way to create a new pageview for each search thats entered?

Any help on this would be really appreciated… Thanks everyone
