SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

Why is Mixpanel receiving geolocation data I didn't send?

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:

Have more questions? Submit a request
Powered by Zendesk