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.

About reuben
SEO consultant from Columbus OH.

2 Comments 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.


  2. you don’t need to modify urchin.js and host it on your server

    Hi Tarmo

    I should have gone back and edited this post, I actually now use push() to append variables to the end of the SE list. If you view source you’ll see the new code.



Comments are closed.