Hi,
We are sending out an e-shot to some old clients.
In this email shot will be some links to our agent's website. Our agent's website uses the $_SERVER["HTTP_REFERER"] function to log any new business sourced from us.
Now because the link will be coming from an e-mail, it will need to be redirected from our webserver so the correct referrer is logged.
I was initially using the
header("Location: $link");
to redirect which wasn't being logged, I presume because no headers were sent to the browser before forwarding the visitor to the correct page.
I then tried using javascript
location.href = "<?php echo $link; ?>";
so that headers would be sent but this still didn't work.
I was wandering whether you guys might have any suggestions. Would a meta re-direct send the correct referrer info?
Thanks
Will.