Hey guys, I need a rotator script using geotargeting that will send top tier traffic (say US, GB, AUS etc.) to "landing page 1" and all other traffic to "landing page 2". I'm not worried about sub id's or anything like that.
RE: PHP rotator script
6
Hey guys,
I need a rotator script using geotargeting that will send top tier traffic (say US, GB, AUS etc.) to "landing page 1" and all other traffic to "landing page 2". I'm not worried about sub id's or anything like that.
I used to use this for CPA:
<?php
//country code redirect
require_once('geoplugin/geoplugin.class.php');
$geoplugin = new geoPlugin();
$geoplugin->locate();
$country_code = $geoplugin->countryCode;
switch($country_code) {
case 'US':
$url = "AFF_LINK&aff_sub=" . $_GET['a'] . "&aff_sub2=" . $_GET['b'] . "&aff_sub3=" . $_GET['c'];
break;
default: // exceptions
$url = "HOMEPAGE";
break;
}
header("Location:$url");
die;
?>
Can this be modified to do what I need? I understand basic html but this is above my head. Thanks.
Michelle
I need a rotator script using geotargeting that will send top tier traffic (say US, GB, AUS etc.) to "landing page 1" and all other traffic to "landing page 2". I'm not worried about sub id's or anything like that.
I used to use this for CPA:
<?php
//country code redirect
require_once('geoplugin/geoplugin.class.php');
$geoplugin = new geoPlugin();
$geoplugin->locate();
$country_code = $geoplugin->countryCode;
switch($country_code) {
case 'US':
$url = "AFF_LINK&aff_sub=" . $_GET['a'] . "&aff_sub2=" . $_GET['b'] . "&aff_sub3=" . $_GET['c'];
break;
default: // exceptions
$url = "HOMEPAGE";
break;
}
header("Location:$url");
die;
?>
Can this be modified to do what I need? I understand basic html but this is above my head. Thanks.
Michelle
- sbucciarel Banned
- WillR
- magnus1
- kpmedia
- [1] reply
- magnus1
Next Topics on Trending Feed
-
6