How is user location tracked?
The Localytics SDK collects country information by default and will default to the most reliable data when it exists.
The logic is based on a waterfall approach:
- Latitude/Longitude Localytics will use when available. This information does not appear in the dashboard but can be available in raw data. You can report on GPS with Localytics if your app is collecting it. Localytics will not (and cannot) collect GPS information unless your app is both (a) authorized by the OS to collect this and (b) configured to hand it off to Localytics. Pass location to Localytics using setLocation.
- High-confidence IP (wired/Wi-Fi) / Low-confidence IP (mobile/wireless traffic)
- Network Country if Latitude/Longitude and IP are not provided. We will track down to the metro and city level for sessions that occur over GPS or Wi-Fi (high reliability). Localytics does not report more specific location data when there is a low confidence connection in order to ensure you have the most accurate information in your dashboard.
Location history can be found in your raw data. If you are a professional customer and do not yet have access to your raw data, contact Support.