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

The Mixpanel dashboard shows a different Distinct ID than what I passed in .identify() function. #207

Open
vishaledkey opened this issue Jul 7, 2023 · 4 comments

Comments

@vishaledkey
Copy link

Our backend sends the User ID in the login API. As soon as we receive the User ID, we’re calling the .identify(userId) function to set the DIstinct ID. But the events that trigger after login shows different Distinct ID on the Mixpanel dashboard. This is very inconsistent behavior and happens mostly on some Android devices. I’m not sure if it has anything to do with the manufacturer or the Android version itself. Also, I’m using both the react-native and Android Mixpanel libraries in my project (both have individual implementations but are identical). FYI, a single user can log in to multiple devices and can use the app simultaneously. I checked this in the documentation, Not exactly sure what is going wrong. https://docs.mixpanel.com/docs/tracking/how-tos/identifying-users#returning-user

Please refer to the below screenshot:
distinct id issue

When I call the below function in the code, I’m seeing the right Distinct ID (that I passed in the .identify() function)

const distinctId = await mixpanel.getDistinctId();
//Vishal: distinctId:::: 366

Library version I’m using:

"version": "2.2.5" //react-native
'com.mixpanel.android:mixpanel-android:7.+' //android
@knightmate
Copy link

knightmate commented Jun 7, 2024

@vishaledkey @linmic I'm facing the same issue: when my distinct ID has a number at the end, it's not working. For example, meghraj.des123 does not work and the device ID is shown on Mixpanel as the distinct ID. However, meghraj.des123github works fine, meaning it shows the distinct ID as meghraj.des123github.

@cuonglt8
Copy link

I'm also facing the same issue when identifying user with my own id

@mrdanielm
Copy link

Also get this issue, just isnt getting set at all

@grrrlikestaquitos
Copy link

Thanks for bringing this to light, I was working on setting up a new project and noticed some inconsistencies when I was setting a UUID into the identify function from Mixpanel. However, if I remove the call altogether it will instead generate it's own uuid.

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

5 participants