Tracking the same user across devices is not working
Describe the Bug
I noticed if I provide user emails as distinct ids, the first login of that user sets the browser and OS. Subsequent logins from different devices don't update the "session"'s browser or OS.
How do I know my user's behavior on their phone vs on their desktop?
According to the docs: https://umami.is/docs/distinct-ids
- Properly attribute user behavior.
- Connect events across multiple sessions or devices.
- Identify repeat users vs. new users.
- Build out journeys and profiles based on user history.
But here: https://github.com/umami-software/umami/blob/7ac5913c86c0eede5823dfa82cca410d373468ca/src/app/api/send/route.ts#L133
The sessionId would automatically use the provided distinct id if provided, and would not create new sessions.
https://github.com/umami-software/umami/blob/7ac5913c86c0eede5823dfa82cca410d373468ca/src/tracker/index.js#L198-L201
umami.identify(id) sets the payload id.
How can we achieve this usage from docs?
Database
PostgreSQL
Relevant log output
Which Umami version are you using? (if relevant)
3.0.0
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Yes there's definitely a mismatch between the docs and how it's implementing id in the send. Let me review this and see what we intended the feature to look like.