Re: $_SERVER['HTTP_REFERER']

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, October 8, 2006 1:05 pm, Peter Lauri wrote:
> I am trying to track where the people entered a unique page from
> (developing
> an affiliate system).
>
> I have been using the $_SERVER['HTTP_REFERER'] to track this and
> record it
> on a affiliate entrance of the web site. However, that is not tracking
> all
> clicks. Only some of them have. I assume some of the links are not
> from a
> traditional <a></a> link.

Your assumption is incorrect.

Some browsers do not provide HTTP_REFERER.
Some users configure their browser not to.
Some proxy servers mask or alter HTTP_REFERER

Pretty much, in all respects, HTTP_REFERER is about the least reliable
thing you could have chosen, except maybe IP address.

> Is there any other way to do this?

Sure!

Just have your affiliates include a unique code in their URLs and use
$_SERVER['PATH_INFO'] to find it.

See my .sig for a very nice example. :-)

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux