How to count the advertisement hits and stores it in database
We put 开发者_运维技巧our website advertisement in 2 other websites. We need to count the hits we are getting form those advertisement and like to store it in my database. Please give me an idea to do that.
Sorry, I din't understood at first place the question.
You can grab the referer using PHP or link the banners to a landing page instead of to the home directly (ex: http://yoursite.com/banner.php?id=N, you can identify the referer with PHP and with the banner ID and then redirect the user to your home.
The links to your website should have a parameter with some key that will allow you to identify the partner site.
Another approach would use the Referer http header but is less reliable.
精彩评论