Skip to content

Disabling Location Updates for User Profile Not Working #178

@ghost

Description

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions