How DO I put PHP tracking code on individual Wordpress Posts?
Finally this will be correct. My title above reflects that I need to learn how to add script that will affect individual wordpress posts (not globally).
This PHP tracking code below is what I want to put on this ONE page on my site EconomicCollapseSurvival.com/how-buy-silver
<?
$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!
-
johnnyN -
Thanks
{{ DiscussionBoard.errors[4611586].message }} -