Accessing a User's Location

In some cases, brands would like to know the location of a user so they can push it throughout the rest of their site. Locally’s Store Locator emits event information that can be utilized for this purpose.

How to access the user’s Locally location

  1. Add an event listener to your site that listens for LOCALLY_region_update event
  2. In the event, you should see a payload like this:

  3. You can use take the emitted event information and use as needed.


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.