First Glance Comparing New vs Old Google Analytics Tracking Codes

January 20, 2008 by reuben | Filed under Google Analytics.

I installed the new ga.js tracking script on this blog a few weeks ago and decided to take a look today to see if there are any reporting differences. Here’s what I found for the same time period:

Google Traffic
 OldNew
Total Visits:12931047
Pages Per Visit:1.281.57
Avg Time on Site:00:00:2300:01.01
Unique Referring Phrases:783765

Here’s a couple of screenshots of the top referring phrases. You can clearly see the differences.

Old:
Google Analytics Referring Phrases (Old)

New:
Google Analytics Referring Phrases (New)

So as you can see, there’s quite a discrepancy, even for my site which doesn’t get a lot of traffic at all. I think I’m going to have to dig into this further and compare these stats with log files to see which is more accurate. I also want to make sure that the tracking codes really do appear on every page, to make sure that isn’t skewing the stats somewhat.

I’ll post back again when I find more info. If anyone else is doing a similar test, what are you finding?


11 Responses to “First Glance Comparing New vs Old Google Analytics Tracking Codes”

  1. Bruno says:

    Did you use old and new code on same page?

  2. reuben says:

    Hi Bruno, yes absolutely. I pasted both old and new code into the footer include on this blog, so it should appear on every page.

  3. Bruno says:

    But you can’t do that, they say that both code, old and new, will not work right on same page.

  4. reuben says:

    Ugh… I missed that in the original post. I guess this test is invalid. So if you cannot run both codes on the same site, there’s no way to compare them, unless you have a private test site and can drive controlled test traffic to it.

  5. lisa says:

    yups, its not working on the same page, the old code and the new one both.

  6. Harrison says:

    Hi,In this article explain very good way.

  7. I start use a new analytics today.. i will check it! ;)

  8. Brian says:

    You should be able to use both if you effectively clear out the variables and use two analytics accounts.

    After the first code, try clearing out all of the variables. Use a tool like firebug to identify all of them. utmr, utmp, etc… This should include ALL JavaScript storage variables that are set by GA.

    If they’re all clear and you’re second code points to a separate account, you should be good. (I think)

  9. Brent2 says:

    Has Google released any info on why gs.js is better?

  10. I find analytics are not that great for tracking visitors who visit then leave immediately. The javascript code needs to load before it can log a visitor. if a visitor leaves before it loads, then it wont count this visitor. So you get discrepancies.

  11. Deb George says:

    Great post! This is some serious data and tracking. I’ve been looking for a way to learn where my traffic is coming from. Thanks a bunch. Keep us posted.