Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IP flag to engage call #656

Merged

Conversation

codeflows
Copy link
Contributor

I noticed that setting <meta-data android:name="com.mixpanel.android.MPConfig.UseIpAddressForGeolocation" android:value="false" /> prevents IP geolocation data from being added to events, but it's still added to user profile data.

In the Mixpanel iOS library, setting useIPAddressForGeoLocation = NO prevents IP geolocation data from being added to events AND user profile. It seems that the ip parameter is added to all outgoing network calls.

This PR adds the IP flag to the engage call on Android as well which seems to prevent geolocation data from being added to new user profiles in my tests.

@patedit
Copy link
Contributor

patedit commented Dec 5, 2019

Thanks @codeflows for the PR. Looks great to me - merging it now!

@patedit patedit merged commit 62786cb into mixpanel:master Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants