> Has anyone tried adding the ability to track incoming hits from an
affiliate
> site? My client wants to be able to track anyone who comes to his site
from
> a link on an affiliate's page. Then, the fact that the visitor came from
> that link should be recorded on the invoice so that when he does an
invoice
> dump, he can see which sales were generated by that link.
>
> I've tried using a redirect page that sets a cookie, but ran into some
> browser compatibility problems. Also, I I tried adding a field to the
> INVOICE table in the database for saving this information, but this caused
a
> bunch of problems with incomplete sales transactions.
Using HTTP_REFERER may not be exactly what you want. The referring ad
might have appeared on http://www.yahoo.com, but what you really want to
know is that the user clicked on ad number 12345, which features your
SuperWidget 5000. My experience is that you can set the exact URL where
ads take the user. In this case, send the user to a special screen, or
maybe
just include a GET variable, like:
http://www.mystore.com/index.php?ad=12345.
Then always look for that variable in page requests.
If you want to save this info forever, the least invasive thing would be to
create
a new table, keyed by the invoice table.
Leon
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]