You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a method to the Amplitude SDK to access the current user's "Amplitude ID".
Motivations
We have a funnel that allows a user to login half way through. For the first ~5 events, the Amplitude user ID is null so all events get recorded using the auto-generated "Amplitude ID". When the user logs in, we identify the user on the server side and a new session is created with the User ID and Amplitude ID equal to the logged in user ID.
Ideally, we want to pass the Amplitude ID from the front end to the backend so the user can be merged with an existing Amplitude ID.
The getUserId method returns null when a specific "User ID" hasn't been set.
The text was updated successfully, but these errors were encountered:
Hi @jtmuller5, in Amplitude, we will merge the user and events after later setting the userId. You can read more here. The getUserId in SDK is only for the user id set via the SDK.
Summary
Add a method to the Amplitude SDK to access the current user's "Amplitude ID".
Motivations
We have a funnel that allows a user to login half way through. For the first ~5 events, the Amplitude user ID is null so all events get recorded using the auto-generated "Amplitude ID". When the user logs in, we identify the user on the server side and a new session is created with the User ID and Amplitude ID equal to the logged in user ID.
Ideally, we want to pass the Amplitude ID from the front end to the backend so the user can be merged with an existing Amplitude ID.
The getUserId method returns null when a specific "User ID" hasn't been set.
The text was updated successfully, but these errors were encountered: