mixpanel / mixpanel-react-native

Official React Native Tracking Library for Mixpanel Analytics
https://mixpanel.com
Apache License 2.0
107 stars 48 forks source link

Issue with mixpanel dashboard and distinctId #196

Closed makarkotlov closed 1 year ago

makarkotlov commented 1 year ago

On the mixpanel dashboard the distinctId for the user is set to $device:551d5226-72ab-409f-b8bc-3c0f94815d87 but in the app the getDistinctId function returns a06e57b2-5fcf-43c5-8b11-73b80f28f949. The Distinct ID Before Identity field seems to be also incorrect since the distinctId before the call of the identify function was $device:551d5226-72ab-409f-b8bc-3c0f94815d87

image

STR:

  1. Open an app
  2. Identify a user
  3. Call the reset function (which generates a new deviceId which is then set as distinctId)
  4. Identify the same user

Lib version: 2.2.5 RN version: 0.69.9

marquina-abreu commented 1 year ago

Same

zihejia commented 1 year ago

hi @makarkotlov , It seems your case falls into the 'returning user' category. Please refer to the Mixpanel documentation on identifying users. This issue is unlikely to be related to the SDK. Could you please reach out to Mixpanel support? They will provide you with more details on user ID management.