-
Type: Sub-task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Iteration Utahraptor, Iteration Velociraptor
-
Not Needed
-
Developer Tools
This task is a follow up to removing the current `userId` that is the same as anonymousId. With this task we want to reintroduce the `userId`, but properly bind it to atlas UIDs.
For this purpose we should change CompassTelemetry and the atlas login code such that if an atlas user id is present in preferences, we use it as "userId" together with the "anonymousId" for both identify and track calls.
This should start happening as soon as a user logs in and for all the subsequent sessions, until a user logs out (in which case we only need to remove the userId), or logs in with a different account. That means that:
- As soon as a user login with atlas, we need to re-identify with the userId
- Is not necessary to repeat identify without the userid on logout.
NOTE:
this change should not affect CompassTelemetry and the Compass atlas login only, and should not affect the general interface of the telemetry in the provider or Data Explorer.