Category: Technology Author : Duncan Riley Posted: September 3, 2008
Tags : ,
Subscribe: Tech Feed, Email, Twitter

Is Google Analytics under-reporting your traffic?


    StumbleUpon Digg Reddit Mixx del.icio.us MySpace Fark Facebook TwitThis Propeller Wikio Yahoo! Buzz

A couple of weeks back I noticed that the figure being reported by Google Analytics representing our page views was less than our ad impressions. There is room for variance, for example the top leaderboard also appears on QBase, which isn’t in our overall traffic count, although I have access to figures for the site. Although QBase occasionally has some strong traffic, the gap wasn’t accounted for; it was clear that either our ad service was overcounting impressions, or Google Analytics was wrong.

Then it got weirder. We run Adsense units as remnant inventory, and on a couple of days Adsense was showing a higher page count than Analytics was. Something was clearly wrong. I did some digging and while there has been issues with Google Analytics in the past, nothing explained what I was seeing.

Then I worked it out. We may not have the quickest page load at The Inquisitr, but I’ve always been wary of not making the site bloated to load, like Mashable (which was up at one stage to 2mb on the front page) and TechCrunch (which has slimmed back, but was traditionally a heavy load). There are external factors I can’t control, the ad serving for one, and then services like Lijit and Outbrain do slow the site down, sometimes more than others. But still, the load isn’t horrible. And yet when I started the site, I was focused on delivering the content first, with the rest to follow. The header naturally leads with the content following, but the rest of the sidebar then eventually footer loads after that. Some times the load time can be seconds, other times (and depending on your connection and whether you’ve visited the site before) it can be out to 30 seconds or more. I realized that the difference, even between the post footer ad and the sidebar ad were that people were hitting the site and leaving it before the other things had loaded. And where was the Google Analytics code you ask? Last thing loaded in the footer.

Google recommends that you put the code for Google Analytics in the footer, and I’m not about to tell you to disagree with them, but a couple of days back I swapped the code from the footer to the header, and 2 days in all of a sudden my ads views are a close match to my Google Analytics page views.

There’s no rorting of the system in what I’ve done. In the early days, Google actually suggested you place the code up front. The down side is that running javascript up front can decrease your load times, but so far I’ve found the difference minor at best.

If you’re running a WordPress blog and thinking of trying the code up front, it must reside after the body tag, but if it’s in your header and that’s the first part of a page load, it’s a 99% bet that every page view will be counted.



You might also like



  • I assume it may be because people leave the page before the Analytics code is loaded
  • Moved to the head.... that's interesting and really kind of frightening. If you're right... good eye.
  • Hi, I recognized the same problem a year ago and since then I always put the tracking code into the page header if possible.

    There were a problem with tracking conversions:
    1. It took some time before the order was saved so user had to wait few seconds before Thank You page started loading.
    2. Users had no reason to stay longer on this page while there was just Thank You :-)... so they very often left before it has been tracked.
  • I am going to switch my code as well and see what the stats are.
  • Duncan something I have started doing is getting off the GA cool-aid by installing Piwik and running it in the header. This does two things it gives me a back up to GA and if I want in the future I can dump it, and secondly it gives me two stats I can average and feel the numbers are reliable enough.

    Hope the Ad network you were trying to build a month or so back is going well.
  • I will back this up. Having worked at a digital agency for a long while now, I always tags my sites with multiple different tracking methods - just to be sure and validate all results. Google is usually way under, Omniture gets good results, the most accurate method is always server side tracking and log analysis
  • hjk
    hkj
  • Hi Duncan,

    Publishers Union of Bloggers currently advise Publishers hold off installing any Lijit Software on their blogs pending promised transparency from Lijit concerning revenue (which you are cool with not getting and is duly noted), and more importantly, Lijit's current 'terms of use' which gives Lijit free reign concerning use of your content once our Publishers install Lijit Software into their blog.

    Any thoughts on these critical issues for Pub's, pass it on, all appreciate it.

    Barney
    Founder, P.U.B.
  • Duncan - great find.
    Looks like we have GA in our footer for Minti. However I seem to recall we may have moved it from our header to our footer due to page load delays.
    Anyway - thanks to you - i have added it to our review schedule to look into.
    Cheers
  • I found a lot of issues with Google Analytics and I can't wait for Yahoo to release its public version of Yahoo Analytics. What bugs me the most is the constantly missing data for MSN and Yahoo referrals.
  • Wael
    Hi

    Can you helo me with this weird case then. the OPPOSITE is happening to me. I have a leadreboard and my agency is telling me my Ad views for the past 6 days is 70,000. I checked google analytics to see how many page views I have for the targeted countries (I opened the Map details and for eact targeted country I multiplied Visits x Page/Visit) the number I got was around 200,000

    I dont't know why the Ad server is showing three times less views than the google page views

    If any oneknows please tell, I am trying to find out if a visitor visits around 10 pages in one visit, will the Ad be displayed from the Ad server eveytime this user goes to another page or it might be loaded once from the Ad server and the rest of the times cache until the visit is terminated

    Thanks
  • could it be that adsense is a dif time zone than your analytics? default for adsense is PST, if you're on east coast your analytics will be off.
blog comments powered by Disqus
King.com (Midasplayer.com Ltd.)