Google Analytics Developers, Please Update urchin.js

I was looking through an overall keyword conversion report in Analytics and noticed some strange search phrases appearing. They looked like long strings of random numbers and characters. It turns out that AOL must be testing some new URL structure in the search results and changed the variable that identifies the search query. I took a look at the urchin.js and noticed that the new query variable (userQuery) is not included.

The urchin.js file currently has these variables to define AOL:

_uOsr[3]="aol"; _uOkw[3]="query";
_uOsr[4]="aol"; _uOkw[4]="encquery";

To track the new AOL search queries just place these 2 lines before the urchinTracker() function in your Google Analytics tracking code:


Update: I replaced the manual insertion of elements into the _uOsr and _uOkw arrays with the push() function which is a much better solution.

2 thoughts on “Google Analytics Developers, Please Update urchin.js”

  1. I always thought that was AOL encrypting search terms for privacy. No?

    Hi Bill

    It’s encoded if you use, but it’s in plain view when using Actually, I just tried a search and they’ve reverted back to using the query= variable. Here’s two examples:

    I guess they must have changed it again, sometime around the time when Google’s Universal search was launched.


Comments are closed.