Adsense Click Pepper

My latest “spare-time” project has been creating an Adsense Click Pepper for Shaun Inman’s excellent Mint web stats package. A pepper is a plugin that can be used to extend the features of the base Mint project.

The pepper I have created will track hits on your Google Adsense ads from Internet Explorer and Firefox. The pepper will track the page that the click occured on, the ad unit number (if you have more than one ad unit on the page) and the size of the ad unit.

Download Adsense Click Pepper now!

Notes:

The clicks should be very accurate on IE as IE supports tracking of the focus event on iframe elements. Firefox is a different story as for Cross Site Scripting security reasons, FF does not allow events to be attached to iframes that have an off-domain source. For that reason, I am tracking clicks on the Adsense iframe by determining if the cursor location is over the iframe just before the page unloads. It seems to work pretty well, but misses every now and again.

I look forward to feedback and making some adjustments!

33 Responses to “Adsense Click Pepper”

  1. since1968 said on October 1st, 2005 at 6:16 am

    Nice work Jim.

    Would you consider giving your table a prefix unique to you? Also, you’ll want to change cfg() to getCfgValue() for future versions of Mint.

  2. Nick Toye said on December 4th, 2005 at 12:15 pm

    Hi Jim,

    Is this pepper going to be available for 1.23?

  3. Rene said on December 17th, 2005 at 2:22 pm

    i loved this tool, after i update my mint i can not use this fantastic plugin, please update the great tool :-)R

  4. Julian Schrader said on December 29th, 2005 at 10:38 am

    Hi Jim,
    great work - are you going to update this great tool to mint 2?

    Have a happy new year,
    - Julian

  5. Bruk Google Analytics til å tracke Adsense klikk - Søkebloggen said on January 5th, 2006 at 5:18 am

    [...]  http://www.digitalmediaminute.com/article/1715/adsense-click-pepper/ [...]

  6. Website Analysis Blog » Tracking AdSense Clicks said on February 16th, 2006 at 2:04 am

    [...] Here is another Google AdSense Hack which works well for Internet Explorer and FireFox. [...]

  7. Web Shopping Resource » Blog Archive » Google AdSense Secrets - Make money using High Paying keywords (Ultimate Adsense Guide) said on March 16th, 2006 at 1:23 am

    [...] Adsense Click PepperThe pepper I have created will track hits on your Google Adsense ads from Internet Explorer and Firefox. The pepper will track the page that the click occured on, the ad unit number (if you have more [...]

  8. Adsense Review :: Visitor Click Tracking in Adsense, Chitika and YPN with Google Analytics :: April :: 2006 said on April 17th, 2006 at 11:10 am

    [...] Shawn’s Javascript works only with IE browser. Aaron Wall released a modified version of Adsense Click Pepper script that seems to work with Firefox (Gecko), Safari, Konqueror browsers. The Adsense Click Pepper script uses mouse cursor position prior to page unload to help detect AdSense clicks in Firefox Cat:  Uncategorized | Time: 6:10 pm (UTC+8)  Comments » [...]

  9. Max said on April 25th, 2006 at 7:20 pm

    Thank you!!!!!!

  10. How To Track AdSense Clicks - Internet Findings said on May 12th, 2006 at 7:10 pm

    [...] Here is another Google AdSense Hack which works well for Internet Explorer and FireFox. [...]

  11. bioza said on August 31st, 2006 at 2:53 pm

    i`m a newbie in google adsense program can i get a tip how to install this script ?

  12. giviz said on September 7th, 2006 at 11:55 pm

    Good work ! Thanks !
    Just a little problem, if you put the mouse on a ads unit and then push F5 (refresh) on your keybord it count a click :/ (with FF, I dont know with IE).

  13. Jayakanthan said on September 16th, 2006 at 12:45 am

    I am totally confused, I like to track adsense clicks and I download the above zip file and how to install, where to install and where i will get the results???

    any help ?

  14. kiy said on January 21st, 2007 at 8:55 pm

    hi,there is an error

  15. Jeremy said on January 23rd, 2007 at 9:59 am

    I’d love to be able to pass additional data with the click event. for example, I keep the user’s original referer in a session object. if I could track that along with the adsense click event, then suddenly I know exactly how much revenue each referer has sent me.

  16. Molly said on February 9th, 2007 at 4:20 pm

    Hi Jim–

    I can install other peppers just fine, but for some reason with yours, I don’t get the “Install” link. Any idea why that might be?

  17. Anja Minkenberg said on February 14th, 2007 at 10:42 am

    Hi Jim, great work !

  18. Felegendoktor said on February 23rd, 2007 at 2:04 am

    Shawn’s Javascript works only with IE browser.

  19. MyBlogLog Tracks Your Visitors Ad Clicks - ShoeMoney™ said on February 23rd, 2007 at 10:23 pm

    [...] in the code? This is the piece that caught my attention. Notice that it’s ripped from a Mint plug-in that tracks ad click [...]

  20. Yahoo! Tracks AdSense Clicks via MyBlogLog - Modern SEO News Blog said on February 24th, 2007 at 6:09 pm

    [...] also put up some information regarding this exploit. Apparently the code was taken from a plugin, AdSense Click Pepper. She also found the MyBlogLog Privacy Policy to be rather “fishy” when they said: [...]

  21. Felgendoktor said on February 28th, 2007 at 1:46 pm

    Thank you, great!

  22. Tommy said on March 6th, 2007 at 5:21 am

    Here is another Google AdSense Hack which works well for Internet Explorer and FireFox.

  23. Openads Blog » Google Adsense click-tracking integration said on March 7th, 2007 at 9:20 am

    [...] Javascript techniques. Special thanks go out to Jim Rutherford for allowing us to integrate his Adsense Click Pepper script into [...]

  24. routura said on March 8th, 2007 at 10:14 pm

    We at Team Routrua have started a new blog and we are deeply concerned about the loss of adsense revenue. Is there anyway around this IE7 bug or we doomed to lose adsense revenue?

    http://blogs.routura.com/

  25. MyBlogLog tracking AdSense & YPN ad clicks on your site | Internet Marketing & SEO said on March 15th, 2007 at 11:39 am

    [...] what is worse is that the code in question seems to have been lifted from a well known AdSense tracker plugin. This seems to confirm that this part of the MyBlogLog javascript was included for the sole purpose [...]

  26. meor said on March 25th, 2007 at 1:13 am

    I have adsense in my side but earned very little. How tovget booost the traffic and get higher paid.

  27. Make Money Online » Visitor Click Tracking in Adsense, Chitika and YPN with Google Analytics said on April 7th, 2007 at 1:32 am

    [...] Javascript works only with IE browser. Aaron Wall released a modified version of Adsense Click Pepper script that seems to work with Firefox (Gecko), Safari, Konqueror browsers. The Adsense Click [...]

  28. mig said on April 10th, 2007 at 9:22 am

    This script can be improved for Firefox.
    The method to detect adsense click based on the mouse position does not work well, in particular when the page has been scrolled. A better method might be to attach event handlers to iframes for events mouseover and mouseout. That way, you know that the mouse is over an iframe. If you get a beforeunload event when the mouse is over an ad, chances are that this ad has been clicked.

  29. economics guide said on August 15th, 2007 at 11:59 pm

    Tracking click stats of Adsense ads accurately and elegantly, essential tool to improve ad performance and prevent click bombing.

    Great tool, Jim!

  30. Rowell said on October 11th, 2007 at 6:26 am

    Adsense click pepper..is plugin also compatible with wordpress blogs?

  31. Jonathan Dingman said on January 30th, 2008 at 12:33 pm

    Does this pepper work for the most recent 2.x release of Mint? I wasn’t able to get this working yet (the install button doesn’t appear).

    Thanks!

  32. Martin said on February 17th, 2008 at 10:12 am

    Hello, i don’t speak very good english. I download it and then… what??? What i can install both plugins? Please, help me (also i speak spanish)!!!! Well, Good Luck!!!

  33. Cecil said on February 19th, 2008 at 12:59 pm

    I’ve downloaded the tool but I’m not really sure about how to get it up and running. Do you think you could assist me in setting it up?
    Regards,
    C.