Tagged: server2server

Firing a S2S tracking url from an image conversion pixel 0

Firing a S2S tracking url from an image conversion pixel

Use this on your landing page: setcookie(“cid”, $_GET[‘accid’], time()+7*24*60*60, ‘/’, ‘.mydomain.com’); This sets up a cookie so you can track a click id in www.mydomain.com?accid=123 You could also set this up track any other data you want, subid, affiliate id etc. Then setup your conversion image pixel as <img src=”http://www.mydomain.com/conversion.php” height=”1px” width=”1px” /> This code goes in conversion.php if (isset($_COOKIE[‘accid’])) { $url = ‘http://www.trackingdomain.com/server2servertracking/conv.php?cid=’.$_COOKIE[‘accid’]; $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL,...