Page 1 of 1

Affiliate Tracking

Posted: Fri Aug 18, 2006 12:03 pm
by SteveH
I'm relatively new to PHP and I was just wondering how most people go about programming an affiliate tracking system.

I've seen how people usually have affiliates sign up and then give them an affiliate referral link which looks something to the effect of: http://www.mysite.com/index.php?aff=myname. I understand how that works but how does it keep track of the referrer while the user browses other pages?

Posted: Fri Aug 18, 2006 12:11 pm
by feyd
by their session?

Posted: Fri Aug 18, 2006 12:39 pm
by s.dot
Some sites set cookies, as a means of "any visitor your refer is YOUR visitor for 30 days, even if they come back 3 weeks later!". That's how that is done.

Posted: Fri Aug 18, 2006 12:47 pm
by SteveH
Thanks a bunch, that helps :)