City Or Region Not Collected

Mixpanel’s client-side libraries collect user location data (city, region, country) as Properties by default. Mixpanel pulls the user’s IP address and runs it through a third-party IP geolocator (MaxMind). MaxMind then returns city, region, and country, and Mixpanel sets those as Properties.

Therefore, the granularity of these properties depends on the IP records obtained from MaxMind. And occasionally, MaxMind is not able to to provide location data all the way down to the city level, so you might find the country Property populated but not city or region.

Mismatched City and Region

From time to time, you may see city and region properties that don’t match the country property. This is a result of the aforementioned level of granularity available from MaxMind. For example:

  • You have a user profile whose city, region, and country properties are San Francisco, California, USA.
  • That user then travels for vacation and performs actions in Thailand. However, MaxMind is not able to map city or region where the user is, just country.
  • The user’s profile then will say San Francisco, California, Thailand - the country has been updated to their most recent location, but since city and region were not available for that location, they remained as the last known city and region properties.
Did this answer your question?



Article is closed for comments.