Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

getDistinct ID Undefined #226

Open
bpfeiffer187 opened this issue Mar 5, 2020 · 0 comments
Open

getDistinct ID Undefined #226

bpfeiffer187 opened this issue Mar 5, 2020 · 0 comments

Comments

@bpfeiffer187
Copy link

Trying to get at the out of the Mixpanel Distinct ID to create a varible that can then be passed to other functions.

the function below returns undefined, but i have already had a different mixpanel event fire prior to this. Any thoughts?

const getMPID = () => {
Mixpanel.sharedInstanceWithToken(mixpanelToken()).then(() => {
Mixpanel.getDistinctId((id: any) => {
Mixpanel.identify(id);
});
});
};

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant