Question
Why is Mixpanel receiving geolocation data I didn't send?
Product
Twilio Segment
Environment
Segment Console
Answer
If an ip property is passed to Mixpanel, the value will be interpreted as the IP address of the request and therefore automatically parsed into Mixpanel geolocation properties (City, Country, Region). After that IP address has been parsed, they will throw out the IP address and only hold onto those resulting geolocation properties.
So even if you're not explicitly sending location data, Mixpanel will still derive it as long as an ip field is present.
If you want to keep the IP address visible as a normal event property, you'll want to rename it to something Mixpanel won't treat as a real IP address - for example, user_ip or IP Address. This prevents Mixpanel from auto-parsing it and ensures the value is stored as-is. You can read more in Mixpanel's Import Events documentation.
If you want to prevent IP addresses from being sent entirely, you can override ip to 0.0.0.0 when firing events. You can also do this using Mappings or Insert Functions, if your destination supports them.
Additional Information
More information can be found in the docs below: