I'm working on a site that deals with banner serving, so users sign up and trade banner impressions/clicks.
My problem is this: Say a user places my banner code on their site which displays random banners.
Then a visitor comes by, clicks on the banner on Site1 which takes him to Site2 through http://myexchangesite.com/linkout.php?bannerid
The problem lies when the webmaster of Site2 that is receiving the visit is seeing in his Google Analytics that the referral came from Site1 rather than from my banner serving site even though when a user clicks on a link they're actually clicking on http://myexchangesite.com/linkout.php rather than the direct URL to Site2.
In the file linkout.php, there is a server redirect:
header ("Location: $_GET[url]");
How do I change this so that the referring site becomes my exchange site rather than the site where they clicked the banner?
Thanks
|