Expand my Community achievements bar.

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

Avatar

Level 1

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

2 Replies

Avatar

Community Advisor

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

 

Avatar

Level 1

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.