wonderful-restaurant-97399
01/27/2025, 9:03 AMfresh-football-47124
fresh-football-47124
wonderful-restaurant-97399
01/27/2025, 9:06 AMwonderful-restaurant-97399
01/27/2025, 9:07 AMdevice_id
which will be the same before and after login. Unfortunately that would also mean that if the signed in user gets a new device_id
the variation will still change, which is what we don't want.wonderful-restaurant-97399
01/27/2025, 9:08 AMfresh-football-47124
fresh-football-47124
fresh-football-47124
wonderful-restaurant-97399
01/27/2025, 9:23 AMdevice_id
(or any session/browser kept attribute) difficult.wonderful-restaurant-97399
01/27/2025, 9:26 AMwonderful-restaurant-97399
01/27/2025, 9:27 AMfresh-football-47124
fresh-football-47124
fresh-football-47124
wonderful-restaurant-97399
01/27/2025, 9:30 AMwonderful-restaurant-97399
01/27/2025, 9:33 AMdistinct_id
is what we are already using for the id
attribute (which is also used during assignment). This value will still change if the user signs in though.
This is what our code comes down to:
GrowthBookSdk.setAttributes({id: mixpanel.get_distinct_id()});
fresh-football-47124
wonderful-restaurant-97399
01/27/2025, 9:55 AMwonderful-restaurant-97399
01/27/2025, 9:59 AMIf your project does not have ID Merge enabled, identify will change the user's local distinct_id to the unique ID you pass. Events tracked prior to authentication will not be connected to the same user identity. If ID Merge is disabled, alias can be used to connect pre- and post-registration events.
wonderful-restaurant-97399
01/27/2025, 10:00 AMwonderful-restaurant-97399
01/27/2025, 10:29 AMdistinct_id
after an identify
call the "expected" behaviour.
From the documentation:
The distinct_id is automatically determined by Mixpanel using one of the IDs in the cluster and is not user-configurable. Any IDs in the cluster can be used for ingestion.https://docs.mixpanel.com/docs/tracking-methods/id-management#simplified-vs-original-api-key-differences
wonderful-restaurant-97399
01/27/2025, 10:30 AMlimited-motherboard-39679
01/28/2025, 11:57 AM