is it possible to track referrals based on unique token added at the end of download file link
ex:
http://mysite.com//bd0d24183997/opera-s ... affil=1234[/b]
XFileSharing Pro - tracking referrals
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
Try this out: in index_dl.pm find
and add below:
Code: Select all
if($file->{usr_id})
{
$ses->setCookie("aff",$file->{usr_id},'+14d');
}
Code: Select all
if($ENV{REQUEST_URI}=~/affil=(\d+)/)
{
$ses->setCookie("aff",$1,'+14d');
}