Solved

City name not mapped correctly.

  • 12 July 2023
  • 2 replies
  • 98 views

I am using any active events to identify the traffic, and a city metric for group by condition to track city wise traffic.
but numbers doesn’t seem to be correct as anonymous city names are getting captured,
any alternative for this. 

icon

Best answer by Saish Redkar 12 July 2023, 19:19

View original

2 replies

Userlevel 7
Badge +10

Hi @Ankit Navinkumar Jain 

Are you using any SDKs or the HTTP API for data ingestion?

Location user properties like City, Country, DMA, Region are determined by GeoIP captured/sent on your event. Amplitude uses the MaxMind database to look up location information from the user's IP address.

For client-side events, location properties can have (none) values if MaxMind returns null for that IP address. MaxMind’s accuracy and availability of city/region information can vary by country (more info here).

For server-side events, location property values are determined either by GeoIP or need to be explicitly defined in your API call.

Hope this helps.

Userlevel 4
Badge +8

Great response @Saish Redkar !
 

@Ankit Navinkumar Jain If you’d like to identify which data ingestion source(s) and/or specific events are resulting in null City values, you can build an event segmentation chart with Any Active Event, group by Library and/or Event Name, and 2 segments

  • City = (none)
  • City ≠ (none)

 

Sample chart in the Demo org: https://app.amplitude.com/analytics/demo/chart/qgu0tsuw

 

Then you can evaluate if any server-side or systematic / vendor generated events such as the Intercom events in the example above should be marked as inactive events to avoid this noise in future analyses that rely on Any Active Event.

Reply