Closed justinvdm closed 6 months ago
**Determining distinct id (to identify distinct users)**
* If user logged in, use the user id as the distinct id
* Otherwise if not CI, get/create anonymous id + use this as the distinct id
* Otherwise if in CI and project id exists, use `
Determining distinct id (to identify distinct users)
If user logged in, use the user id as the distinct id
Otherwise if not CI, get/create anonymous id + use this as the distinct id
Otherwise if in CI and project id exists, use
<projectId>:ci
as the distinct idOtherwise do not send metrics (e.g. if logged out CI user)
Aliasing:
When logged in, if previous distinct id was anonymous id, alias anonymous id to userId
Tested over here: https://www.loom.com/share/eb0e7a224d8b43fcb60504ca3695bb60?from_recorder=1&focus_title=1
https://discord.com/channels/788353076129038346/1234418456204541962/1234498620338864270