AdSense + Analytics
After Google Analytics came out, I've been having fun playing with the, admittedly sparse for my site, statistics it generates. One thing that's missing, though, is the ability to see how many Google Adsense clicks are being generated. This is actually what Analytics is ideal for - it's oriented more toward marketing than toward raw stats (IMO), and, the only even remotely marketing related function of this blog is occasionally distracting visitors to ads for the joy of sponsoring most of my VoIP experiments.
Searching around the web, I found that the answer had already been solved. This post at SEO Book describes how, except that it needs a tweak (not to mention that the code is gross, needing to track mouse locations because of a bug in Mozilla-based browsers). Unfortunately, it will record an ad click whenever any iframe content click causes a page change. I added the one line that makes it only do so when a Google iframe is clicked. My updated astrack.js is here.
Technorati Tags: adsense, googleanalytics