Hello, I'm actually using a modified version of Shawn's code, that works for Firefox too: http://www.seobook.com/archives/001370.shtml I'm a programmer and I know JavaScript, but I'm unable to spot any problem or leaks in that code. My analytics shows for the month of July for one of my websites 961 conversion (read adsense clicks) while the Adsense reports show 659 clicks. Also Analytics reports 66,828 pageviews for the month of July, while Adsense only reports 47,747 pageviews. Let's say that Analytics includes in those pageviews the bouncers (people that spend less than 5 seconds on the website) at a 40% bounce rate Ok, how about clicks then? I believe the difference can come from 2 sources: 1. duplicate clicks which analytics track, but adsense doesn't (or at least doesn't present any report on it) 2. Adsense might not consider a click valid unless you spend at least 5 seconds on the target site (not on my sites, so that would be due advertiser's bounce rate) If you guys have any clues about this, or similar experiences I'd sure like to hear about it. Thank you for your time.
I am not sure about it. But I read the article from your link. very useful. We can optimize adsense using this technique. I will use it and let you know.
I set this up on my site when I found this thread, and my results so far are actually the opposite. Analytics only shows about half the clicks that Adsense reports. I noticed that at least under Firefox, the script counts a click by determining the mouse position when the page unloads (when you leave the page) right? But if someone opens the link in a new tab, they wouldn't leave the page, and it wouldn't be counted. At least, that's the way I see it, and would partially explain under-reporting. I think both these points are the same thing, since we really don't know how Google determines invalid clicks. For example, what happens if one person clicks the same ad, but two hours apart? Also, there's a lot of comments all over the place about how the script stopped working when Google made changes, but I couldn't find anybody to actually confirm this. So, can anybody here confirm whether this script still works?
Hello, This script still works, however it is only limited to tracking clicks and nothing else (like the URL of the landing page or whatever) Although the script will not track a click correctly if the user opens the link in a new tab/window for FF all my sites show in analytics more clicks than in adsense I think i'll try to write a piece of code that launches at the same time with the tracking part and try to eliminate the duplicate clicks. However, I don't believe that I have that many duplicate clicks.
I'm using that approach (a selfmade javascript tracking script + Google Analytics), and my stats are similar to Adsense Stats. Really AdSense Clicks are 15% greater that Analytics clicks. Note: I don't know what code is Shawn's code, but I was checking at Javascript code using on AdLogger, and I don't like it because it's using cursor position and iframes positions with several events.
can u show us the source of your selfmade script? maybe you have a new approach at the problem that would fix some issues.
I'm using a variation of the script listed on this page: Tracking AdSense clicks with Google Analytics