Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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

WwHG10
Level 1
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

1 Reply
Singaiah_Chintalapudi
Community Advisor
Community Advisor

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

 

WwHG10
Level 1
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.