How to access geolocation country, city and zip in client javascript code from Target? | Community
Skip to main content
New Participant
Jan 26, 2021 7:12 PM UTC

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

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.

2 replies

Singaiah_Chintalapudi
Level 7
Jan 27, 2021 3:30 AM UTC

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

 

Translate
WwHG10Author
New Participant
Feb 3, 2021 12:22 PM UTC

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.

Translate