Forum Moderators: martinibuster

Message Too Old, No Replies

Big difference between AdSense and Google Anayltics stats

Since some day, a big difference

         

jetteroheller

8:19 am on Dec 5, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I wonder about a big difference in Google Analytics and the numbers from Google AdSense.
_________AdS____Analytics
Nov 28 - 2561 - 2635
Nov 29 - 3357 - 2794
Nov 30 - 5502 - 4575
Dec 01 - 3965 - 3724
Dec 02 - 4786 - 3907
Dec 03 - 3792 - 2912
Dec 04 - 3870 - 1779

There is a 9 hours difference.
While all AdSense is at Google time, US west coast,
this Analytics account is MET - GMT+1 for Germany and Austria

At AdSense: Impression of an AdLink placed on every page of this site

The AdSense Code is very close to the start of the page.
In average, after 5 kB loaded, there is the AdSense code.

The Google Analytics code is at last on the page.

But there is no explanation for the increasing difference, less than half impression counted at Analytics compared to AdSense.

enigma1

12:06 pm on Dec 7, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I do not understand your question. Do you expect the analytics with the sense figures to match in some way? In other words if 100 visitors come in you see 100 records in GA, thus the adsense figure must be lower?

jetteroheller

12:24 pm on Dec 7, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It seems also a stat slowness.

The GA stats had been later changed to 3072 on Dec 4th.

The difference can be, because GA is loaded only at the end of the page, while AdSense is just near the start

<html>

load css

after 5..6 kB: AdSense Code

load all the pics in navigation
load the own javascript
load the background picture of the page
load all the pics for mouse over effects

load the Google Anayltics javascript

So it can happen, that a visitor has seen the content and Adsense, leaves the page, before Google Analytics is loaded.

jetteroheller

8:43 am on Dec 13, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I just compare the Analytics and AdSense data of a site,
where I changed November 29th the layout to a new design.

The average number of impressions from

November 1...November 28 is compared with
November 29..December 12

Google AdSense: 10,6% more impresssions
Google Anayltics: 11,3% less page views

This difference is not to explain for me.
Both systems just tell the opposit

AdSense tells me great new design, You have 10% more impressions
Analytics tells me terrible new design, You have 10% less impressions

jetteroheller

9:19 am on Dec 13, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Now I compare a domain changed November 13th to the new layout

In this case, I compare

October 1....November 12
November 12...December 12

Google AdSense: 11,2% more impressions
Google Anayltics: 4% less impressions

jetteroheller

8:38 am on Dec 19, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Now I have an even faster loading page.

My site has most visitors new by search engines.

So I try to improve the time between the click on the search result and the first visible content on the screen.

The total load time remains equal, the same amount of data has to be loaded. The difference is to give the browser the chance to render the first part of the page, the content area just with the first TCP/IP package delivered by the server.

So the time between
visitor sees content
Google Analytics loaded
increases much

Let's have an example with a very slow internet connection

Old layout
30 seconds: visitor sees content
35 seconds: Google Analytics loaded

1st generation new layout
10 seconds: visitor sees content
35 seconds: Google Analytics loaded

2nd generation new layout
5 seconds: visitor sees content
35 seconds: Google Analytics loaded

So, at the old layout, the visitor has only 5 seconds to click on a link, and the page view is not counted by Google Analytics, because Google Analytics is not loaded.

At the second generation of the new layout, this increases to 30 seconds in the slow internet connection example.

The Google AdSense code is placed complete different

Old layout
30 seconds: visitor sees content
30 seconds: visitor sees AdSense
35 seconds: Google Analytics loaded

1st generation new layout
10 seconds: visitor sees content
15 seconds: visitor sees AdSense
35 seconds: Google Analytics loaded

2nd generation new layout
5 seconds: visitor sees content
10 seconds: visitor sees AdSense
35 seconds: Google Analytics loaded

So for December 18th on one of my domains

3766 page views in Google AdSense
2835 page views in Google Analytics

jetteroheller

7:05 pm on Jan 1, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Now all becomes even more mysteriouse.

I change since October 26th my layout.
First at some small subdomains,
end of Nobember, I changed a major earner.

I implemented the code for AdSense for Analytcis December 17th

December 31th, I changed the second major earner to the new layout.

Big surprise, this domain has AdSense for Google Analytics data.
But only until I changed to the new layout

Now what is different between old and new layout?

Both have in general.

<html>
<head>

<script>
window.google_analytics_uacct = "UA-NNNNN-NN"
</script>
</head>
<body>

Google AdSens Code
Google AdSens Code
Google AdSens Code
Google AdSens Code

Google Analytics Code

____________

So now, why does the older layout work with AdSense for Analytics,
the newer not.

Now I tried on a test page

<html>
<head>

<script>
window.google_analytics_uacct = "UA-NNNNN-NN"
</script>
</head>
<body>

<script>alert(window.google_analytics_uacct)</script>
Google AdSens Code
<script>alert(window.google_analytics_uacct)</script>
Google AdSens Code
<script>alert(window.google_analytics_uacct)</script>
Google AdSens Code
<script>alert(window.google_analytics_uacct)</script>
Google AdSens Code
<script>alert(window.google_analytics_uacct)</script>

Google Analytics Code

The Alert box shows in both cases, new and old layout

UA-NNNNN-NN
null
null
null
null

So it seems, the variable window.google_analytics_uacct is deleted by the first Google AdSense code

IanCP

9:10 pm on Jan 1, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I implemented the code for AdSense for Analytcis December 17th

So did I and the difference is startling!

Thank God Analytics figures don't represent my earnings or I'd take another 70% hit.

true_INFP

10:15 am on Jan 2, 2009 (gmt 0)

10+ Year Member



[google.com...]

jetteroheller

7:10 pm on Jan 11, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



http://www.google.com/support/adsense/bin/answer.py?hl=en&answer=55613

Sorry, did not help

The only difference between old and new layout

OLD LAYOUT _________________________________

<head>
<script src=my-javascript.js></script>
<script>
window.google_analytics_uacct = "UA-NNNNNN-N";
</script>
</head>
<body>

Google AdSense Code
Google AdSense Code
Google AdSense Code
Google AdSense Code

Google Anylytics Code

NEW LAYOUT _________________________________

<head>
<script>
window.google_analytics_uacct = "UA-NNNNNN-N";
</script>
</head>
<body>

Google AdSense Code
Google AdSense Code
Google AdSense Code
Google AdSense Code

<script src=my-javascript.js></script>

Google Anylytics Code

Loading my onw javascript moved down from the head.
The reuslt: AdSense for Anylytics works with the old layout, but not with the new.

Any ideas?