HomeCost Per Action (CPA )

Country Geo-Redirect & State Geo-Redirect Code Useful For CPA

Country Geo-Redirect & State Geo-Redirect Code Useful For CPA
Like Tweet Pin it Share Share Email

 

country-geo-redirect
  • Facebook
  • Twitter
  • Google+
  • Pinterest

When you drive traffic using paid ads or even free method like SEO and others you can’t control from where your users are coming (can do usually on paid traffic not always). Also sending an Indian user to us offer is no good in any way .So what to do?

Well I have this script which can help redirecting traffic to target offer/Landing Page .I always use this on my offers and landing pages .This is why all affiliate networks have catch all international traffic page. You should have one  too.As not every network have good offer for all Geo .

well here is script

<script src="//js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js" type="text/javascript"></script>
<script language="JavaScript">
var country= geoip_country_code();
if(country == "US")
{
window.location = "YOUR US OFFER"
}
else
{
window.location = "OTHER OFFER URL"
}
</script>
view raw georedirect.js hosted with ❤ by GitHub

this script is built using Max-mind Geo data .You can find Country code list here

 

This next script sorts by states. The default state code is the “USCA” for USA California. Change it to whatever state you want to target. For instance Florida it would be “USFL”. It usually have like country code+state code

<script language="Javascript" src="http://gd.geobytes.com/Gd?pages=US&ext=html&after=-1"></script>
<script language="javascript">
if(!(typeof(sGeobytesLocationCode)!="undefined"&&sGeobytesLocationCode.indexOf('USCA')==0))
{
// Anyone that is NOT from California will be redirected here:
document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=http://www.notcalifornia.com'>");
} else{
/ Anyone that is from California will be redirected here:
document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=http://www.california.com'>");
}
</script>
view raw geocityredirect.js hosted with ❤ by GitHub

 

Comments (1)

Leave a Reply

Your email address will not be published. Required fields are marked *

Pin It on Pinterest

Share This