Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Tracking script for AdSense

Thread Tools

Tracking script for AdSense

Posts: n/a
Hi all,

I'm using the following code to track clicks on one of my sites that is
running AdSense.

<script type="text/javascript"><!--

function hit() {
if (window.status) {
img = new Image();
img.src = 'log.cfm?ref=' + escape(document.location) + '&link=' +
document.getElementById("google_ads_frame").onfocu s = hit;


All is working fine in IE (The log.cfm file keeps track of everything), but
NOT in Opera and Mozilla Firfox (and I guess some other browsers)

The problem is I think the "onFocus" event handler.

Any suggestions on how I can get this small bit of code to work with more

Small note. The code you see is placed right after the AdSense code itself
and there are no changes made in the AdSense code itself.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adsense within script Javascript 6 04-28-2006 06:22 PM
Tracking Someone Tracking Me Edw. Peach Computer Security 4 07-07-2005 05:50 PM
Web site hosted using ASP.Net .... And AdSense Faruk Malik ASP .Net 2 02-17-2005 12:15 AM
Adsense Preview Tool: See what adsense shown on any URL Looking HTML 15 09-20-2004 10:49 PM
Google Announces Adsense Trevor HTML 5 06-26-2003 11:10 AM