Mobile app version of vmapp.org
Login or Join
Alves908

: Track exit link and ads with PHP I want to track exit links on my website and also exit ads like Google Adsense etc. I mean by exit ads is that when click on add I get ads dimension and

@Alves908

Posted in: #GoogleAdsense #Javascript #Jquery #Php

I want to track exit links on my website and also exit ads like Google Adsense etc. I mean by exit ads is that when click on add I get ads dimension and ads type like Google or other ads. In short I want this: Google Adsense 160x600 like in statcounter.com.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Alves908

2 Comments

Sorted by latest first Latest Oldest Best

 

@Alves908

i have made a script which works on links but not on iframe generated by google adsense. I have added click event on iframe but it is not working.

$('#aswift_0').click(function() {
var width = $(this).attr('width');
var height = $(this).attr('height');
var webid = "1";
new Image().src = "adds.php/?width=" + escape(width) + "&height=" + escape(height) + "&webid=" + escape(webid);
// new Image().src = "adds.php/?width=" + escape (width) + "&height=" + escape (height) + "";
});


It works when i change click to load

10% popularity Vote Up Vote Down


 

@Jessie594

Burhan,

I'm trying to answer this as short as possible. Click-tracking is something you cannot do with PHP on the click itself. It is possible to have the backend do the tracking (via unique IDs, $_POST and a simple tracking script).

It is also possible to do with Javascript, if you have your own tracking solution another way would be to trigger the clicktrack through Ajax via Javascript and have a PHP-script count the clicks.

For Google Adsense ads a clicktracking solution is also possible, but it will definately break the terms and conditions, since you are not allowed to change, alter or modify anything inside or over the ads.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme