Content Personalisation
// Getting the country name from the user's IP
$.get("https://ipforensics.net/api/v1/origin?apikey=APIKEY", function (response) {
if (response.meta_data.geolocation.code == 'NG') {
alert("Special offer for all our users from " + response.meta_data.geolocation.name + "!");
}
}, "jsonp");PreviousRedirect by Country and Location OffersNextGet the location from an IP Address in Javascript
Last updated