|
|
 |
RE: FN-FORUM Visitor tracking
date posted 26th January 2001 09:48
Hi Gary,
>I've recently implemented something similar, basically every partner is
>assigned a unique id number,
>this id is then incorporated within the URL the partner uses to link to your
>site. When a user clicks on the URL you can determine where they are coming
>from and store/pass this id anyway you choose and log it along with the
>order details.
>
>I have this script in perl somewhere and would be happy to dig it out for
>you if required, but basically writing it off the top of my head it was
>something like:-
>
[EMAIL REMOVED] = split (/&/, $ENV{'QUERY_STRING'});
>$shop_id = $values[0];
>
[EMAIL REMOVED] /, $ENV{'HTTP_COOKIE'});
>
> foreach $pair [EMAIL REMOVED] { ($name, $value) = split(/=/, $pair);
>$cookie{$name} = $value; }
>
>$session = $cookie{'refer'};
>
>print "Content-type: text/html", "
";
>print "Set-Cookie: refer=$shop_id; path=/", "
";
>
>Not the best example but hope it points you in the right direction.
I'll probably try to put something together similar to this in PHP (cos
thats the only scripting language I know!) Where does your script go? On
the entry page to your site used by the referrer?
TIA
Ray McGinty
=======================================================
Ray McGinty Information Design
specialising in design for the web, e-commerce,
multimedia CD-ROM and print
Tel 0191 237 2816
Fax 0191 237 4774
[EMAIL REMOVED]
www.rmid.co.uk
=======================================================
|
 |
|