Updated my Google Analytics plugin to track AdSense clicks

Iwan Uswak from the Data Mining Blog requested that I added Aaron’s AdSense Google Analytics tracking to my Google Analytics for WordPress plugin. I emailed Aaron to ask if he had any objections to me doing that, and as expected his answer was “of course not.”. So I’ve just updated my plugin to version 2.0, and it can now track all the AdSense clicks on your site as well.

It uses /outbound/asclick to track the clicks to, instead of just /asclick as Aaron’s script originally did. It’s not possible to change that other than by changing the file at the moment. Just download the latest version, and upload the entire gapp folder to your wp-content/plugins folder, activate the plugin and enable AdSense tracking, and you’re done!

Tags: ,

Yoast.com runs on the Genesis Framework

Genesis theme frameworkThe Genesis Framework empowers you to quickly and easily build incredible websites with WordPress. Whether you're a novice or advanced developer, Genesis provides you with the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go.

Read our Genesis review or get Genesis now!

15 Responses

  1. Mathieu BeeBy Mathieu Bee on 20 November, 2007

    Sweet! Thank you very much.

  2. ManishBy Manish on 21 November, 2007

    Hi, I have added this plugin (2.0) on my website www. TopIndianModels. com running on wp2.3.1 but I don’t see analytics data on google.com/analytics its showing 0 hits. The traffic to this site is around 400 uniques. Can you help.

  3. Joost de ValkBy Joost de Valk on 22 November, 2007

    Manish: it doesn’t track you when you’re logged in as admin, I see the analytics code is on there just fine.

  4. Dudu PBy Dudu P on 22 November, 2007

    Hi, Joost!

    Thanks a lot for your great work! I love the elegant way you extended Analytics funcionalities.

    However, I have a little issue with it, which I tried to solve myself, but was unable to: how can I remove access of user roles other than admin to the GAPP menu on WordPress?

    Thanks in advance

  5. Joost de ValkBy Joost de Valk on 22 November, 2007

    Hi Dudu: I’ll check into that tonight!

  6. Dudu PBy Dudu P on 22 November, 2007

    Thanks a lot! :D

  7. Data Mining BlogBy Data Mining Blog on 26 November, 2007

    A hell of a hard working, wordpress extending seo! ;)

  8. kamellBy kamell on 6 December, 2007

    I cant understand how to track adsense through analytics until now , pls any one explain this clearly

  9. PettersonBy Petterson on 7 January, 2008

    My question is what are the benefits of adsense click tracking?

  10. Joost de ValkBy Joost de Valk on 7 January, 2008

    @Petterson: Read this.

  11. FloraBy Flora on 11 March, 2008


    Is this applicable for new .js version of google Analytics?

  12. Gustavo LeigBy Gustavo Leig on 12 April, 2008

    Hi Joost,

    thank you for the GA plugin and all tips. I checked your page and you track with GA your subscribers (email and Rss I believe).

    What is the best method to do this? Im using your plugin, by the way…

    thank you again.


  13. Adsense traningBy Adsense traning on 23 April, 2008

    Google’s Adsense advertising program is the world’s most well-known Internet Marketing advertising program today.

  14. Gustavo LeigBy Gustavo Leig on 29 April, 2008

    It stopped tracking my clicks since last plugin update… very strange…

  15. carbookvalueBy carbookvalue on 29 October, 2009

    I have been looking for a way to do this! Thanks very much