Skip to content

Get Amplitude ID #125

@jtmuller5

Description

@jtmuller5

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.

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions