Skip to main content
Solved

City name not mapped correctly.


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. 

Best answer by Saish Redkar

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.

View original
Did this topic help you find an answer to your question?

Saish Redkar
Expert
Forum|alt.badge.img+10
  • Expert
  • 1380 replies
  • Answer
  • July 12, 2023

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.


JennRu
Community Manager
Forum|alt.badge.img+9
  • Community Manager
  • July 13, 2023

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings