Reputation:
I am thinking to track all user clicks on the ads I have on my website (including adsense and other network)
Do you think this would be possibile maybe adding an event listener with jquery that sends an ajax call before the user can open the advertiser page?
Upvotes: 1
Views: 710
Reputation: 18979
Assuming you have all ads wrapped in a container with class ad
you could do:
$('body').delegate('.ad', 'click', function(){
//YOUR AJAX CALL HERE
});
I'm not quite sure, if this works with flash content, but you could give it a try.
Upvotes: 1