1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Click tracker for chitika (like the Adsense one)

Discussion in 'Chitika' started by Noel, Oct 19, 2005.

  1. #1
    Hi all,

    I hope I'm at the right place here,

    I'm using a small extra code to log all the click (from IE users) on my Adsense ads

    
    <script type="text/javascript"><!--
    
    function hit()	{ 
    		window.focus(); 
    		if (window.status)	{ 
    					img = new Image(); 
    					img.src = 'log.php?ref=' + escape(document.location) + '&link=' + escape(window.status); 
    					}; 
    		}; 
    document.getElementById("google_ads_frame").onfocus = hit; 
    
    //--></script>
    
    Code (markup):
    Once a user clicks on an Adsense ad, the code will send the data to log.php.
    Log.php does the rest that I want it to do...

    Anyway..

    I've had a look at the 'http://scripts.chitika.net/eminimalls/mm.js' code, and it does look like they also use the getElementById and onfocus, so theoreticly the code should work (with some small changes).. (like Adsense)

    I've been trying to change the above code for some time now, but whatever I try I keep getting an 'Error: 'document.getElementById(...)' is null or not an object'

    Are there any good coders here who might be able to get this to work with the chitika's ads?

    Thank you....
     
    Noel, Oct 19, 2005 IP
  2. Johnburk

    Johnburk Peon

    Messages:
    777
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't get what the use of this is?
     
    Johnburk, Oct 19, 2005 IP
  3. Noel

    Noel Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    To see who (as IP) and on what (as link to the advertiser) add the user clicked on.
     
    Noel, Oct 20, 2005 IP