The Most Active and Friendliest
Affiliate Marketing Community Online!

“Adavice”/  “1Win

How to ID referrals without cookies.

Graybeard

Well-Known Member
Caveat: this will only work on a desktop or a home wi-fi for mobile.
Wireless roaming off of the home/business router will not have the static IP needed.

PHP:
<?php

//$ip = ($_SERVER['REMOTE_ADDR']);

$ip = '208.199.84.123';
$seed= 99000000000000000000;
$ipv4address = sprintf("%u", ip2long($ip));
$cid=ceil($seed/$ipv4address);
echo "$cid";
added ** don't forget to use your own unique big number $seed
this outputs:

28263715272

28,263,715,272

Database that

INET_ATON(208.199.84.123), cid, affiliate, geo other

Then you have a lookup table for return visits without a cookie being used
 
Last edited:
Continuing, I came up with is simple substitution script to 'scramble' the postal code and/or some GEO location is the URL's query string as to not 'upset' the visitor's 'security'

PHP:
<?php
$zip = array("0" => "A", "1" => "B", "2" => "C", "3" => "D", "4" => "E", "5" => "F", "6" => "G", "7" => "H", "8" => "I", "9" => "J");
    $word = "05421";
        $zipVar= strtr($word,$zip);
            echo $zipVar . ":";
$code = array( "J" => "9" ,"I" => "8" ,"H" => "7" ,"G" => "6" ,"F" => "5" ,"E" => "4" ,"D" => "3" ,"C" => "2" ,"B" => "1" ,"A" => "0");
    $decode= strtr($zipVar, $code);
        echo $decode;


?>

output

AFECB:05421

for 05421 zip (postal) code

or &gpd=AFECB

You can track the results of segments of ad referrals this way
 
Caveat: this will only work on a desktop or a home wi-fi for mobile.
Wireless roaming off of the home/business router will not have the static IP needed.

PHP:
<?php

//$ip = ($_SERVER['REMOTE_ADDR']);

$ip = '208.199.84.123';
$seed= 99000000000000000000;
$ipv4address = sprintf("%u", ip2long($ip));
$cid=ceil($seed/$ipv4address);
echo "$cid";
added ** don't forget to use your own unique big number $seed
this outputs:

28263715272

28,263,715,272

Database that

INET_ATON(208.199.84.123), cid, affiliate, geo other

Then you have a lookup table for return visits without a cookie being used
This is pretty cool Graybeard. Really handy solution to the problem of conversion tracking with cookies. We mostly use server2 server postbacks for tracking these days but going to try this out with the odd client that doesn't have the tech for S2S.

Question: If the user is on a wireless connection but completes the action within a few seconds or max, a couple of minutes after clicking through, do think the chances are high that the IP address will be the same from click to conversion?
 
Last edited:
Question: If the user is on a wireless connection but completes the action within a few seconds or max, a couple of minutes after clicking through, the chances are high that the IP address will be the same from click to conversion?
Not sure really, depends on the carrier if we are talking 4G data --that is a proxy rotation (sometimes) The hostname and the device should be used.

PHP:
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
 
MI
Back