from where i can enable or disable IP address and in which type of access can i do that like admin, analyst or owner?
Hi Sakir, 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
To enable or disable the use of IP address for geolocation in Mixpanel, you need to configure this setting in your SDK implementation (e.g., JavaScript, iOS, Android, etc.), not from the Mixpanel UI. This is done by developers during the integration process. For example, in the JavaScript SDK, you can disable geolocation by initializing Mixpanel with the following option: LBKSmixpanel.init("YOUR_TOKEN", {"ip": false})LBKS
Similarly, for iOS Objective-C: LBKS[Mixpanel sharedInstance].useIPAddressForGeoLocation = NO;LBKS
Or for React Native: LBKSmixpanel.setUseIpAddressForGeolocation(false);LBKS
This setting is applied in your application's codebase, not through Mixpanel's web interface or project settings. Therefore, it is not controlled by Mixpanel project roles (Owner, Admin, Analyst, Consumer) within the Mixpanel UI. Any developer with access to your application's codebase can make this change, regardless of their Mixpanel project role. There is no mention in the knowledge sources of enabling or disabling IP address usage for geolocation via the Mixpanel UI or restricting this action to specific Mixpanel roles such as Admin, Analyst, or Owner.For more details, see the documentation on Protecting User Data: Disabling Geolocation and Geolocation Best Practices.
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.
Let me check the knowledge base for you again. One moment! 📚
Enabling or disabling the use of IP address in Mixpanel controls whether geolocation information (such as city, region, and country) is automatically attached to your events and user profiles.Why enable IP address? - When enabled, Mixpanel uses the IP address of the request to enrich your data with geolocation properties: - $city (City) - $region (Region/State) - mp_country_code (Country for events) - $country_code (Country for profiles) - This allows you to segment and analyze your users and events based on their geographic location, which can be valuable for understanding user distribution, targeting, and regional trends.What information do you get if enabled? - If IP address usage is enabled, Mixpanel will automatically parse the IP address (using the MaxMind GeoIP database) and add the following properties to your data: - $city: The city of the event sender - $region: The region (state or province) of the event sender - mp_country_code: The country code of the event sender (for events) - $country_code: The country code of the profile (for user profiles)Mixpanel does not store the IP address itself—only the derived geolocation properties are kept. If you disable IP address usage, these geolocation properties will not be set automatically, and you will not be able to segment or analyze your data by location unless you provide this information manually.Reference: Geolocation: IP address and location properties Default Properties: Automatically collected properties Protecting User Data: Disabling Geolocation
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.