Skip to main content
Version: SDK 4.7.x

Provide your own user ID

If you already have a mechanism to assign a unique ID to each user, you can share this information with the justtrack SDK. This then allows the backend of the justtrack SDK to associate events received from third parties via that user ID with the correct user on justtrack side. You can provide as an ID multiple times, the justtrack SDK takes care about sending it to the justtrack backend as needed.

You can supply the own user ID at any time while your game is running. Should your own user ID change for some reason, you have to supply the new value to the justtrack SDK again:

using JustTrack;

string ownUserId = /* get your own user ID from your game */;
JustTrackSDK.SetCustomUserId(ownUserId);

A custom user ID must be shorter than 4096 characters and only consist of printable ASCII characters (U+0020 to U+007E).