Welcome to WebmasterWorld Guest from

Forum Moderators: DixonJones & mademetop

Message Too Old, No Replies

G Analytics Site Search Query Parameters

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

Full Member

10+ Year Member

joined:Aug 16, 2004
posts: 293
votes: 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?

7:41 pm on June 3, 2009 (gmt 0)

Junior Member

10+ Year Member

joined:Sept 12, 2008
votes: 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.