Created
November 27, 2016 13:21
-
-
Save mobo12/115e6fd12a9791e1177fc5ddbab11a87 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment