homepage Welcome to WebmasterWorld Guest from 54.166.173.147
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
Forum Library, Charter, Moderators: Receptional & mademetop

Website Analytics - Tracking and Logging Forum

    
G Analytics Site Search Query Parameters
flyerguy




msg:3925827
 6:09 pm on Jun 3, 2009 (gmt 0)

I use friendly URL's throughout a site in the format of www.site.com/page/subpage/queryparameter/queryvalue/

The search page itself URL is something like www.site.com/tag-results/tag/purple widgets/

I have "Do Track Site Search" on in Google Analytics, with the word "tag" as the query parameter, but, no data is showing up.

Is it possible that the friendly URL is causing the "tag" phrase to be considered to be a directory instead of a query parameter? How can I get around this?

 

epistable




msg:3925893
 7:41 pm on Jun 3, 2009 (gmt 0)

I'm pretty sure that what GA is looking for is "tag=keyword" in the URL, instead of tag/keyword. You could try creating a filter (on a test profile of course! [analytics.blogspot.com...] ) that replaces tag/ with tag= in hopes that GA will process this filter before processing the site search data, I'm not sure if that's the case though.

The most fullproof way to make get this to work may be to use a custom version of the tracking code on the search results page. I would use javascript to pick up the URI, do the replacement of tag/ with tag= in javascript, and then send a track pageview with the newly constructed URL. It's a bit more work, but it should get you some data in the site search report.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved