Sime Geo Targeting Script to Increase Amazon Sales

Here is the code

PHP:

 

<?php

$res=file_get_contents("http://freegeoip.net/json/".get_ip_address());

$arr=explode(":",$res);

$seventhparam=explode(",",$arr[8]);

$countrycode=trim($seventhparam[0]);

$countrycode=str_replace(‘"’,”,$countrycode);

$countrycode=trim($countrycode,"");

$asin=$_GET[‘asin’];

if($countrycode=="GB")

{

$amzurl="http://www.amazon.co.uk/gp/product/".$asin."/?tag=Your UK Tag Here";

header("Location:".$amzurl);

}

else if($countrycode=="CA")

{…

Sime Geo Targeting Script to Increase Amazon Sales

See original post by invalid@example.com (wannabeme)

Leave a Reply