How to put PHP tracking code on individual Wordpress Posts
<?
$referrer = urlencode($_SERVER['HTTP_REFERER']);
$referrer = str_replace("http://","", $referrer);
$referrer = str_replace("https://","", $referrer);
if(!$_GET['apflag']) header("Location: http://www.ourkangen.net/affiliateprophetscript/go.php?uid=1&cid=1&apflag=1&referrer=$referrer&".$_SERVER["QUERY_STRING"]);
if(!$_COOKIE['apid']) setcookie("apid", $_GET['apid'], time()+300000000);
?>
Thanks!
AdWork Media » Global Affiliate Network & Content Locking Solutions
Custom Platform, Flexible Lockers, Offers For Every Country