« Lights... Camera... Action! | Main | A Rudderless Ship? »

April 21, 2008

Problem with Google Analytics and Urchin

In December, Google released a major upgrade to their Google Analytics tracking code, switching from the old urchin.js code and migrating to ga.js. While Urchin can still be used; the new ga.js code will have support for newer functionality.

Shortly after the new Analytics version was released we noticed that we were having poor reporting results from a website that was using Google Analytics. Using Apache's mod_proxy and Firefox's Live HTTP Headers tool we were able to see that the calls to Google Analytics were not being sent. When working properly you should see a GET request to google-analytics.com in the access logs or headers, something like:

 

http://www.google-analytics.com/__utm.gif?utmwv=4.1&...
GET/__utm.gif?utmwv=4.1&utmn... HTTP/1.1
Host: www.google-analytics.com

Debugging this problem was difficult until we discovered, as have others, that accessing the development website via a "localhost" URL caused the Google Analytics call to be suppressed.

With the "localhost" problem behind us we discovered that several of our analytics calls that had been working when we built the web application had silently stopped sometime over the past couple of months. We spent some time head scratching and trying to figure out what was happening in the Urchin code to prevent the calls from happening at all.

We finally decided to give up and just switch over to using the new ga.js code. That proved to be an easy transition and completely fixed the problem.

What actually caused the Urchin Analytics calls to stop working is still unknown, but if you are having unexpected problems with Google Analytics using Urchin, it might be worth it to upgrade to the new ga.js tracking mechanism.

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00e39338b2e4883400e551df3e8a8834

Listed below are links to weblogs that reference Problem with Google Analytics and Urchin:

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Comments are moderated, and will not appear until the author has approved them.


Privacy Policy| Sitemap| Contact Us

Copyright 2002-2007 Codesta LLC. All rights reserved.