Help with GeoRedirection script

9 replies
If someone can please help me with this and tell me why it's not working I would really appreciate it. This is on my tracking server to hand off to Prosper for tracking traffic and routing to different CPA offers. Traffic coming from Facebook for testing.

PHP Code:
<?php

$CountryCode 
geoip_record_by_name$_SERVER["REMOTE_ADDR"] );

// ****DO NOT TOUCH ABOVE THIS LINE.******
// link destination for creatives *****track.info/track/ayiau/index.php?

$t202id $_GET['id'];
$t202kw $_GET['kw'];
$country $_GET['c1'];
$c2 $_GET['c2'];
$c3 $_GET['c3'];
$c4 $_GET['c4'];

if(
$CountryCode=="AU")
{
header('Location:   http://*****ftrack.info/tracking202/redirect/dl.php?t202id=3227'.$t202id.'&t202kw='.$t202kw.'&c1='.$country.);  
}
else if(
$CountryCode=="US")
{
header('Location:  http://******ftrack.info/tracking202/redirect/dl.php?t202id=7214'.$t202id.'&t202kw='.$t202kw.'&c1='.$country.);
}
else if(
$CountryCode=="UA")
{
header('Location: http://foto.ua');
}
//Change this to reflect your international offers for country codes not listed above. This is for the US offer
else
{
header('Location:   http://******track.info/tracking202/redirect/dl.php?t202id=7214'.$t202id.'&t202kw='.$t202kw.'&c1='.$country.);
}
?>
Thank you for any help.
#cpa #georedirection #php #prosper #script

Trending Topics