You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
}
The text was updated successfully, but these errors were encountered: