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

Unable to Override distinct_id in Mixpanel After Calling identify #169

Open
sharifelshalabi opened this issue Oct 22, 2024 · 0 comments
Open

Comments

@sharifelshalabi
Copy link

I am encountering an issue with setting a custom distinct_id for Mixpanel events. Currently, Mixpanel defaults to using the device ID as the distinct_id. I am attempting to override this by explicitly calling identify with a custom user ID. My code is structured as follows:

instance
   .identify(user.id?.toString() ?? '')
   .then((_) => user.analyticParams.forEach(instance.getPeople().set));

The expected behavior is that Mixpanel should use the user.id provided in the identify method as the distinct_id for all subsequent events. However, it seems that Mixpanel still defaults to the device ID instead of the custom ID I've set.

Image

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

1 participant