Log in

View Full Version : in an affiliate program , how i count visitors in the refered AFF ID in php



leonidassavvides
02-17-2009, 10:42 AM
in an affiliate program , how i count visitors in the refered AFF ID in php, for a rent-a-car program , get comission only upon booking(confirmed) ?

maneetpuri
02-18-2009, 12:22 PM
Hi,

The logic behind this: -

a) When someone has clicks on your banner on your affiliates website, bring that user to a page where you add a log for it with some status set to no. Plus create on cookie for the Affiliate ID
b) Now redirect the user to the shopping page of your website.
c) On the checkut page check if the cookie exists it means that the user placing the order came through the affiliates website and using the value of the affiliate ID update the status to yes after the payment has been made.

I hope this helps.

Cheers,

~Maneet