Skip to main content
Version: SDK 5.0.x

Get the justtrack user ID (Deprecated)

Each user is assigned a unique user ID by the justtrack SDK which you can access inside your app. You can use this ID to recognize returning users in your app again. Should you already assign a unique ID to your users, you can also link your ID to the justtrack user ID.

The justtrack SDK provides you with a unique ID for each user. You can retrieve a Future resolving to this ID by using the getJusttrackUserId method on the justtrack SDK:

const userId: string = await JustTrackSdk.getJusttrackUserId();
console.log('My user id is ' + userId);

If the attribution can not be performed because the user is offline, it will eventually fail. The SDK will then wait for a new internet connection and retry the attribution.