We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello! Vue.$segment.user is undefined. Maybe I'm doing something wrong?
The text was updated successfully, but these errors were encountered:
This is because the method call occurs before initialization analytics.js
Sorry, something went wrong.
This is my solution:
async anonymousUserId() { if (Vue.$segment.user) { return Vue.$segment.user().anonymousId() } return new Promise((resolve) => { let timerId = setInterval(() => { if (Vue.$segment.user) { clearInterval(timerId) resolve(Vue.$segment.user().anonymousId()) } }, 50) }) }
Maybe there is a better solution?
No branches or pull requests
Hello! Vue.$segment.user is undefined. Maybe I'm doing something wrong?
The text was updated successfully, but these errors were encountered: