LOCATOR_USER_LOCATION_SUCCESS

This event is supported on all of our templates!

Triggered after the LOCATOR_PAGE_LOAD event if our attempt to geolocate the user was successful.

If the locator has the enableLocationDetection value set to false then our geolocation process is not ran and this event will not be triggered.

Geolocation process

We use up to two different geolocation procedures to attempt to locate the user. First, we attempt to use a 3rd party service to geolocate based off their IP address. If this process fails we fallback to the “Navigator.Geolocation” process, which is built into most modern browsers. If both of the processes fail an error message will be displayed via window.alert and the LOCATOR_USER_LOCATION_UNSUCCESS event will be triggered.

Was this article helpful?
0 out of 0 found this helpful