OpenX Blog

Google Adsense click-tracking integration

by Scott Switzer on January 4th, 2007

Google Adsense is an easy way to display Google text or image ads on even the most modest website. It’s popular among a large number of OpenX users and, since it is easy to set up, it’s a nice way to get into website advertising.

Until today, OpenX could not track Adsense clicks as we do with all other advertising campaigns. Without this, the only statistics about the performance of Google AdSense ads were the number of times ads have been displayed. Given the popularity of Google AdSense among OpenX users this has been a glaring omission which we were keen to resolve.

In latest release of OpenX 2.0 we’ve added a new feature which allows click-tracking of Google Adsense advertising.

All you have to do is to select “Alter HTML to enable tracking of Adclicks” when creating an HTML banner and OpenX does the rest. That check box is a little misleading. We don’t actually modify the HTML since that would be in violation of the Google AdSense terms and conditions. Instead, Google AdSense ads are automatically detected and handled as a special case using some clever Javascript techniques. Special thanks go out to Jim Rutherford for allowing us to integrate his Adsense Click Pepper script into OpenX.

As a result, you can monitor your Google AdSense advertising performance alongside other advertising campaigns within OpenX, and this is the first step to increasing the revenue you make through placing advertising on your website.


Related links:
Tutorial: Using Google AdSense with OpenX
FAQ: How to display Google AdSense ads using OpenX

8 Comments »

  1. [...] up the openads.org which is phpadsnow I think, and it says that you can integrate google adsense. Openads Blog Google Adsense click-tracking integration [...]

    Pingback by Rotating adsense with other banners - vBulletin Setup — December 9, 2007 @ 5:35 pm

  2. can you see what ad exactly got clicked on?

    Comment by Mark — March 25, 2008 @ 8:27 am

  3. Mark,

    There has been a patch created that does this (thanks Tobias!), but it has not been added to our core code yet. Here it is:

    https://developer.openx.org/jira/browse/OX-1844

    Scott

    Comment by Scott Switzer — March 25, 2008 @ 3:06 pm

  4. Hi Scott,
    We are using Openx 2.4. For me openx is not adding link tracking. I did whatever you have told. Am I missing something? [Sorry for cross posting as I have posted the query in openx forum as well.]

    Comment by Amlan — April 16, 2008 @ 8:31 am

  5. I don’t know

    Comment by vimal — June 21, 2008 @ 7:08 am

  6. I’m starting to see some problems… according to OpenX (after patching it with this file), I’m getting something around 74 clicks on my Google adsense on ONE day… but according to Google, I only got 25.

    Am I missing something? Is Google cheating (or not saying everything)? is OpenX tracking something else?

    Has anyone seen similar issues?

    Comment by Moises — February 11, 2009 @ 2:12 am

  7. Moises: same for me.

    Comment by Peter — February 25, 2009 @ 11:12 am

  8. I’ve got also problems with adsense click tracking. openx = 28 clicks, google = 0 clicks…

    some ideas?

    i’m using openx hosted.

    Regards

    Comment by Peter — November 3, 2009 @ 8:35 am

RSS feed for comments on this post. TrackBack URL

Leave a comment