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 ... .sisx.html?affil=1234
XFileSharing Pro - tracking referrals
- PilgrimX182
- Posts: 2187
- 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');
}
and add below:
Code: Select all
if($ENV{REQUEST_URI}=~/affil=(\d+)/)
{
$ses->setCookie("aff",$1,'+14d');
}