Page 1 of 1

How to track clicks on aparticular banner

Posted: Tue Apr 20, 2010 2:07 am
by phphunger
Hi,

I just want to know that in my website i want to track the clicks on a particular banner when the user clicks. Can anyone tell me how to track the clicks?

Re: How to track clicks on aparticular banner

Posted: Tue Apr 20, 2010 2:56 am
by cpetercarter
You need to use Javascript - define an "onclick" event handler, which sends an Ajax call back to the server to increment a counter. You would need somewhere to store the accumulated count of clicks - normally in a database. In other words, there isn't a simple php answer.

Re: How to track clicks on aparticular banner

Posted: Tue Apr 20, 2010 3:53 am
by requinix
Or, you know, change the banner link to go through your site first. Record the hit and redirect to the destination.