How to access geolocation country, city and zip in client javascript code from Target?

Avatar

Avatar

WwHG10

Avatar

WwHG10

WwHG10

26-01-2021

If a user has location access turned off in their browser, how can I leverage Target geolocation as a fallback to get their city, country or zipcode?

 

Thanks,

 Walter

Replies

Avatar

Avatar

Singaiah_Chintalapudi

MVP

Avatar

Singaiah_Chintalapudi

MVP

Singaiah_Chintalapudi
MVP

26-01-2021

Generally, organization use some vendors to identify the user's geo-location like DemandBase, ZoomInfo, KickFire, Terminus...

 

Avatar

Avatar

WwHG10

Avatar

WwHG10

WwHG10

03-02-2021

Thanks for your response.  

I ended up creating an activity in Target which would set an element attribute with the latitude and longitude, then had some JS make an Ajax call to our Bing API to get the approximate location.