Why is country data (not set) for specific events?
Hi Kendrick P., Please stand by as I search the Mixpanel knowledge base for an AI-powered answer. I normally take about 15 seconds or so. In case AI cannot answer your question, feel free to reach out to Mixpanel support at mixpanel.com/get-support. If you have follow-up questions for this thread, please tag me again with your question: @kapa.ai <follow-up question> đź‘‹
Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai
Country data may appear as "(not set)" (or "undefined") for specific events in Mixpanel for several reasons: - Missing or Unmappable IP Address: Mixpanel uses the IP address of the event sender to determine geolocation properties like country, region, and city. If the IP address is not included with the event, or if the IP address cannot be mapped to a location using Mixpanel’s geolocation database, the country property will be "undefined" (displayed as "(not set)" in the UI) Supported Properties Data Type.- Geolocation Disabled: If geolocation enrichment is disabled in your SDK or API configuration, Mixpanel will not attempt to derive country data, resulting in "(not set)" for those events Protecting User Data: Disabling Geolocation.- Manual Override or Omission: If you manually set the ip
property to 0
in your event payload, Mixpanel will skip geolocation parsing for that event, leading to missing country data Ingestion API: GeoIP Enrichment.- Server-Side Tracking: For server-side implementations, if the event is sent from a server and the server’s IP is used (or no IP is provided), the country may not reflect the user’s actual location, or may be missing if the IP is omitted Geolocation: IP address and location properties.In summary, "(not set)" country data typically means Mixpanel could not determine the country for that event due to missing, unmappable, or intentionally omitted IP address information.
kapa.ai is still learning and improving, please let me know how I did by reacting below.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.