Google AdSense and Google Analytics Integration Guide

Google Analytics is a free service that lets you gather and analyze website traffic statistics. Answers to questions like Where does most of my traffic come from?, Which keywords are generating the most traffic? and How long do visitors stay on my site? can be answered using Google Analytics.

Not that long ago, Google allowed you to link your AdSense account with your Analytics account. (Note that you can only link single accounts together. If you have multiple AdSense accounts, you’ll need to create multiple Analytics accounts.) You can do this right from your AdSense management console — it’s very simple to link the two accounts. (See here for more details.)

Assuming you’ve added the Analytics tracking code (see here) to your AdSense pages, you should see AdSense earnings appear in your statistics within a day or so. Here are some sample stats:

adsense-analytics-sample

The great thing about these stats is that you can do page-by-page earnings analysis without having to create separate AdSense channels for each page. This is especially useful if you have more than 200 pages of content, since you’re limited to 200 channels per AdSense account.

If you have multiple sites, though, there’s an extra step you need to take to do a proper integration. AdSense earnings are only collected for the primary domain in your Analytics account. If you don’t see a section labeled “AdSense Performance” in the per-page stats then you know AdSense data isn’t being collected:

No AdSense data in Google Analytics

Why can’t you see the AdSense earnings for this site? The likely cause is that you forgot to include the AdSense Analytics Code (ASAC) at the top of each page that displays AdSense ads. The ASAC is a small bit of JavaScript that should be inserted into a page immediately after the <body> tag and before any AdSense code:

<script>
window.google_analytics_uacct = "UA-99999-3";
</script>

Replace the tracking ID above with the ID for your site — you’ll find it in your Analytics account by clicking on “Analytics Settings” to access the account overview page. Do this for each site you want to track.

That’s all you need to do to integrate your AdSense earnings into your Analytics account. Give it a few days to collect some information and start your analysis!

Comments

34 Responses to “Google AdSense and Google Analytics Integration Guide”

  1. Kathleen on April 2nd, 2009 2:20 pm

    I love your blog. The information is golden. And the new look is beautiful.

    **But** the text is gray. It hurts my eyes to try to read it. **Please** make the text black so that it is readable.

    Yes it is *legible* now, but it is not easy to read; i.e. readable. Why should I have to pump up the size two notches to be able to read it? (which is what happens with gray type)

    Again, please change the text to black. Less stylish, more readable.

    Thanks.

  2. Eric Giguere on April 2nd, 2009 9:29 pm

    Kathleen, I’m fooling around with some different themes to see what works and what doesn’t. Don’t worry, I will definitely change back to the old colour scheme, but I’m still playing with things…

    Eric

  3. Jimmy on April 2nd, 2009 10:39 pm

    This is an excellent tip expecially like you said for sites with more than 200 pages. Thanks and I’m bookmarking your blog.
    Thanks!!

  4. Kursus Adsense Online » Blog Archive » Google AdSense and Google Analytics Integration Guide on April 3rd, 2009 4:18 am
  5. Victor on April 3rd, 2009 11:20 am

    Thanks, Eric, Your advice is more than helpful to me, since I’ve been looking to integrate Google Analytics to my newly created site which will hopefully be able to be powered with adsense :-)

  6. Erwin Sigterman on April 4th, 2009 6:18 am

    I didn’t grasp this problem either in Google Analytics. Now I finally got hold of the solution.

    THANKS!

  7. Paukenerguss on April 5th, 2009 2:21 pm

    Nice and interesting article with useful information in it, thanks. Analytics is a very useful tool to analyse site stats.

  8. atul kumar on April 6th, 2009 10:25 am

    This guide will be very useful and informative for google analysis.thanks to sharing it.i will follow it.

  9. Calzro on April 6th, 2009 11:14 am

    I agree that the grey was hurt my eyes too. but i love your blog and idea.

  10. Lucy on April 7th, 2009 6:18 am

    Hey there! Awesome blog (but you don’t need me to tell you that). When are you going to put an updated version of your siloing Wordpress plugin? http://www.memwg.com/seo-siloing-taxonomy-update/

  11. pharmaceutical recruitment on April 7th, 2009 6:52 am

    Hey, I didn’t know you could track Adsense in Analytics. This is going to make it a lot easier to identify which traffic sources are generating Adsense revenue. Thanks for the post.

  12. Trent Wood on April 7th, 2009 9:28 am

    Eric,

    $5 is better than nothing, but do you think a company sponsor will create a much larger return if you hold out? I’m debating whether or not to add AdSense to my page and I’m torn. I’m in the building process and I haven’t started pumping out content yet, but when I start to garner a following, I’m afraid that AdSense will cheapen the quality of the page in the eyes of the viewer. What’s your take on the balance between trying to create revenue and grow traffic and followers?

    Thanks,

    Trent Wood

  13. I Need Money on April 8th, 2009 5:33 am

    I can actually read everything fine. Did you change everything back to black? Or is it still gray? I’m semi-color blind so I can’t really tell lol.

  14. Kathleen on April 8th, 2009 6:20 pm

    Thank you so much for making the type black! Now I can read it with ease! And it is beautiful. And thank you for all the wonderful information and other goodies that you provide.

    The Google Privacy plugin really saved my life! I even used the text from the generated page to create pages for HTML sites. Otherwise, I would never have made the deadline.

    As it is, because I have a lot of PHP-script-generated sites that I could only add links to, not pages (at least not and meet the deadline), I have made links from all of them to a privacy policy my main publishing site and slightly amended the wording to say that the policy applies to all of my sites that link to it.

    I’m hoping that satisfies Google. If not, I’m sunk. I just finished putting in the last links!

    Do you think that linking to a central policy page on one main site will meet Google’s requirements?

  15. puppy77 on April 9th, 2009 3:30 am

    hey, great post. I have long been waiting for adsense to link to analytics. Thanks for the providing the Javascript code also – this will come in handy if i get into any difficulty trying to link them!

    Thanks again

  16. smartvergin on April 9th, 2009 10:21 pm

    Thanks for the information

  17. Tienod on April 10th, 2009 7:57 am

    Oh, thanks!
    I always had multiple accounts and is was a real pita to cross-reference the statistics.
    *thumbsup*

  18. Ivan Kristianto on April 10th, 2009 12:13 pm

    Thanks for the great information. I really like your themes btw. Simple is beautiful.
    Cheers..

  19. Adsense Niches on April 10th, 2009 11:19 pm

    I’ve been using Google Analyics and Adsense for a while now and simply love both tools that Google has created for us. It’s provided a level of wealth I never imagined.

  20. Leoslab on April 11th, 2009 7:02 am

    What a great article, thank you so much for sharing. That will help me so much when read the GA report. thx

  21. Sign Makers on April 15th, 2009 6:26 am

    Wow, what a great insight to linking adsense to analytics. I am starting right away. I always used analytics but never thought about adsense…time to start! Thanks ;-)

  22. Thomas on April 15th, 2009 1:26 pm

    I can’t help myself not to like Google Analytics. I just want traffic statistic for current day, but by default analytics show all traffic and refuse to be reconfigured. I hoped I would find some alternative that would suit me.
    http://www.pcterritory.net

  23. Michael on April 17th, 2009 10:06 pm

    Where do I add this snippet of code on the prosense theme you have on your blackberry site. I am having trouble locating the body tag.

  24. Eric Giguere on April 23rd, 2009 5:22 am

    You’ll usually find the body tag in the header.php file in most themes…. so that’s where you would put it.

  25. Falco on April 25th, 2009 7:19 am

    Incredible … some time has passed since its launch and still can not integrate adsense in Analytics… if I contact google could speed up the integration?

  26. Jack Smith on April 25th, 2009 2:09 pm

    It was great to go through the stuff posted on your blog. Look forward to more useful posts in future.

  27. SEO Optimizer on April 25th, 2009 2:10 pm

    Useful information. Helped me figure out few things. Keep up the good work.

  28. Rhycel on April 30th, 2009 7:05 am

    Great site, I’ve also decided to integrate adsense and analytics but still have to see the benefits :)

  29. Inchirieri Brasov Bucuresti on April 30th, 2009 2:09 pm

    Do you make any money withh this Adsense program because for my car rental site it doesn’t work

  30. Falco on May 6th, 2009 6:22 pm

    Yesssssssss the integration is finally coming in my account after all this time.. :)

  31. Social Media on May 9th, 2009 8:03 pm

    For a free resource, you can’t deny Google analytics – Nice to finally see the integration.

  32. Sandeep Bali on June 9th, 2009 5:03 am

    There is a plugin in Wordpress which help integrating Google Tools in Wordpress easy… http://wordpress.org/extend/plugins/google-integration-toolkit/

    However am wondering if there is an easier way to make Google Apps account.. its damn tiring to follow the long process of verification and all for every new site I make :(

  33. Preda Ioana on August 29th, 2009 5:36 pm

    there is also a statcounter plugin for WP

  34. Udegbunam Chukwudi on January 28th, 2010 2:57 pm

    Thanks for the tip man. I’ll sure be linking to this post come next week Friday.

Leave a Reply




Comments will be closed on January 28, 2011.

Subscribe without commenting