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?
How to track clicks on aparticular banner
Moderator: General Moderators
-
cpetercarter
- Forum Contributor
- Posts: 474
- Joined: Sat Jul 25, 2009 2:00 am
Re: How to track clicks on aparticular banner
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
Or, you know, change the banner link to go through your site first. Record the hit and redirect to the destination.