Reputation: 47
I'm looking for some resources on how to track the clicks of the links on different sites. E.g. I'd like to know how many clicks were made on google.com for the specific image/text link? I'd like to implement it for php framework. Thanks
Upvotes: 0
Views: 108
Reputation: 6051
Check the $_SERVER['HTTP_REFERER'], insert it to a database which will contain url | count In the next time that somebody will go on that link from the same address, you will see that the url exists on the db and you will increase the count row.
Good luck.
Upvotes: 0
Reputation: 14681
Why reinvent the wheel?
Google Analytics Campaign Tracking does exactly that.
Upvotes: 2