How to access geolocation country, city and zip in client javascript code from Target? | Community
Skip to main content
January 26, 2021

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

  • January 26, 2021
  • 1 reply
  • 1579 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Singaiah_Chintalapudi
Level 7
January 27, 2021

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

 

WwHG10Author
February 3, 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.