Deaf Topics - Debt Consolidation - Debt Consolidation - Deaf Topics - Debt Consolidation

PDA

View Full Version : Referrer tracking and conditional content


kipling
Jun 22nd 2005, 3:02 pm
I'm looking for a way to track if visitors are coming from a site and then returning to it from another.

Ideally I would like to serve up very slightly different content depending on whether the referrer is this other site or not. What's the best way of doing this? PHP?

Thanks in advance

davedx
Jun 22nd 2005, 4:11 pm
If you want to alter the content then yeah PHP is the way to go.

Use $_SERVER['HTTP_REFERER'] to get the referrer URL. Bear in mind not all clients send referral information.

Good luck :)

kipling
Jun 23rd 2005, 8:47 am
Thanks davedx :)

Does anyone have any advise about the best way to code for this? I'm a bit of a PHP novice.

Good web sites would be useful too - I will look myself but I'm just wondering if anyone wanted to offer me the benifit of their experience/knowledge.