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

Disabling Location Updates for User Profile Not Working #178

Open
ghost opened this issue Feb 13, 2025 · 0 comments
Open

Disabling Location Updates for User Profile Not Working #178

ghost opened this issue Feb 13, 2025 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 13, 2025

Description:
I am trying to prevent Mixpanel from updating the user’s location when modifying their user properties and sending backend events related to their profile. I attempted to use the following command:
mixpanel.setUseIpAddressForGeolocation(false);
However, this does not seem to work as expected. Despite calling this method, Mixpanel continues to update the user’s location in their profile.

here is my code:

// Import Mixpanel
import 'package:mixpanel_flutter/mixpanel_flutter.dart';

Future mixpanelTest(
String token, String userid, String userPropertyValue) async {
final mixpanel = await Mixpanel.init(token, trackAutomaticEvents: false);

mixpanel.identify(userid);

// Disable geolocation from IP parsing
mixpanel.setUseIpAddressForGeolocation(false); // Disable geolocation

mixpanel.getPeople().set('Test User Property', userPropertyValue);

// mixpanel.setUseIpAddressForGeolocation(
// true); // Re-enable geolocation for future events
}

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

No branches or pull requests

0 participants