Forum Moderators: martinibuster
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.
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.
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
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
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
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?