Skip to content

Get Geo

The getGeo function is used to retrieve the geographical location of a user based on their IP address.

window.htag
.api('1')
.getGeo()
.then((geo) => {
console.log(geo);
});