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

[Question] Relevant anonymous user id #1030

Open
daniiltkach-ms opened this issue Nov 18, 2024 · 0 comments
Open

[Question] Relevant anonymous user id #1030

daniiltkach-ms opened this issue Nov 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@daniiltkach-ms
Copy link

Hello guys, I suppose my issue is just a question.

Overview

So when we set explicitly anonymousId via client?.userInfo.set there is way to get this data from userInfo.get() method later.

client?.userInfo.set({
  anonymousId: userId,
  userId: undefined,
});

The issue is that when App is closed and opened again, the value from userInfo.get() is not same what is sets in the all events for segment. The value in the events is correct and it's equal to value what was saved there via client?.userInfo.set however the anonymousId from userInfo.get() is completely different each time when app is re-opened.

The question is Am I doing right to get this value anonymousId or there is an another method for recievening value of anonymousId ?

p.s. client?.userInfo.set is called only once (for the first opening of app).

@daniiltkach-ms daniiltkach-ms added the bug Something isn't working label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant