homepage Welcome to WebmasterWorld Guest from 54.198.42.105
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Google / Google AdSense
Forum Library, Charter, Moderators: incrediBILL & jatar k & martinibuster

Google AdSense Forum

    
connecting adsense and analytics
vampke




msg:4470084
 1:41 pm on Jun 27, 2012 (gmt 0)

Hi guys,

I have tried this a dzillion times but still without any luck.
I want to link my adsense to my analytics account.
There was a time when the income of my website would be shown in analytics. For some reason it did not anymore after I set new adsense blocks.
I keep reading about clicking the lin nk to analytics button, but this is not available in my adsense account. The video shows the old interface, not the new.
Anyone any ideas on how to do this in the new interface?


v.

 

netmeg




msg:4470105
 2:32 pm on Jun 27, 2012 (gmt 0)

It's been so long I don't remember. Do you have your Analytics check box ticked to show Google AdSense?

levo




msg:4470123
 3:08 pm on Jun 27, 2012 (gmt 0)

I think it was a link to the analytics page that you can link them. Go to your Analytics account, click Admin, Click All accounts, select the Account Name, click Data Sources > Adsense. You can link your accounts there.

Second, if you're using async analytics code or '_setDomainName' to restrict cookie to a single domain, you have to have following code before every ad code.


<script>
window.google_analytics_uacct="UA-0000000-0";
google_analytics_domain_name="www.example.com";
</script>

vampke




msg:4470353
 7:57 am on Jun 28, 2012 (gmt 0)

@levo: Thank you very much! It is incredible how well google managed to hide this option!
I never found this and there is no info on this available (that can easily be found ... googling for it anyway).
Thanks a lot!

edit: I celebrated too early...
The integration seems to be possible for one account only. Another account in analytics does not seem to be linked. I get the request to link it in adsense, but I can't find where to do this in the adsense page.
any clues?

netmeg




msg:4470529
 4:49 pm on Jun 28, 2012 (gmt 0)

Did you put the extra code in your second site?

vampke




msg:4470532
 4:58 pm on Jun 28, 2012 (gmt 0)

it is not a site, it is an account.
I managed to add the code to all the sites of the 1st account,
but i cant for this 2nd account because google asks me to link the account with adsense first

netmeg




msg:4470767
 4:25 am on Jun 29, 2012 (gmt 0)

I'm unclear whether you're trying to link two analytics accounts to one adsense, or two adsense to one analytics, but I don't think either one is possible. The Analytics account and the AdSense account are usually the same Google account.

zarathustra2011




msg:4470789
 7:01 am on Jun 29, 2012 (gmt 0)

I've a similar problem. When I first joined google long, long ago it would not allow me to use the same email for Adsense and Analytics - I have one email for Adsense and then another for Webmaster Tool, Merchant Centre, Analytics etc.
It's a pain and ideally I'd love to merge the two together.

vampke




msg:4471892
 7:20 pm on Jul 2, 2012 (gmt 0)

ok thanks, looks like not all my sites can have the integration.
A few other questions: I have set this up for a couple of sites now, but after 4 days I have noticed that estimated income in analytics is less than half then income in adsense. When clicking the button in analytics where the differences are shown, they still do not match up with the real adsense earnings
I have checked support.google.com/adsense/bin/answer.py?hl=en&answer=55613 but none if the items seem to be relevant to my case or can explain the size of the discrepencies.
Anyone any thoughts on this?
Is there a way I can check on which pages my adsense code for a certain link block is being shown? I am pretty sure it doesn't appear on any other site, but you never now...

4 days into this I only seem to be having 1 site were the integration was succesfull, the other sites still show that I should link adsense and analytics. The site that does show it is my biggest site in earnings. Could this be the reason?

levo




msg:4471910
 7:39 pm on Jul 2, 2012 (gmt 0)

Are you using the extra code I've posted. If you've 2-3 ads on page, you have to add the code before each adsense code. Each adsense code nulls 'window.google_analytics_uacct'

vampke




msg:4471914
 7:45 pm on Jul 2, 2012 (gmt 0)

oh! did not realize this, but the instructions clearly stated that the code should go just before the closing header tag?

levo




msg:4471950
 10:41 pm on Jul 2, 2012 (gmt 0)

Not the analytics code itself, but you should add 'window.google_analytics_uacct' and 'google_analytics_domain_name' in front of every adsense unit. Instructions say to put them once, but then it only tracks the first ad unit, and you end up with discrepancies.

vampke




msg:4472698
 7:39 am on Jul 5, 2012 (gmt 0)

@levo: thank you very much for your help! it seems to be working as it should now.
It is unbelievable that this information is nowhere available on google's own website (I could not find it anyway), so I am wondering how you figured this out.

Unofortunately also is that only 1 domain is showing the ads in analytics, the other ones I linked are still showing I should link them.

edit: after rereading your previouus post

Second, if you're using async analytics code or '_setDomainName' to restrict cookie to a single domain, you have to have following code before every ad code.
<script>
window.google_analytics_uacct="UA-0000000-0";
google_analytics_domain_name="www.example.com";
</script>


I am wondering if I should always also add the domain name, or only when I use url channels?
At the moment i only have the UA code, could this explain why only one domain is showing?

levo




msg:4472923
 6:33 pm on Jul 5, 2012 (gmt 0)

It is unbelievable that this information is nowhere available on google's own website (I could not find it anyway), so I am wondering how you figured this out.


I too had the discrepancy problem between Adsense and Analytics. There were a couple of mentions of adding extra code just before the Adsense code, so I figured maybe I had to add them before each one... and it worked. I've also tried many combinations, and I suggest to just add that code before each adsense code and it will work.

AFAIK, google_analytics_domain_name is required when you're using _setDomainName in Analytics code, window.google_analytics_uacct is required when using the async Analytics code. I use both of them for each adsense block.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google AdSense
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved