By setting various user properties, such as level, and ID, you can automatically get powerful analytics insights from the Tapjoy dashboard. For example, by setting user level whenever your user gains or passes level, you can get a picture of how your users are distributed throughout the levels of your game:
[Tapjoy setUserLevel:1]; // Set the user level to 1
This will let you see charts in the "Game Trend" section of the Analytics dashboard.
You can set a user ID. Some Tapjoy SDK integrations do not need to do this. Tapjoy’s SDK will automatically generate a user ID for you. But there are certain situations in which you will want to specify your own user ID:
Failure to set the user ID properly (or setting in in a situation where you should be letting Tapjoy’s SDK set it for you) will result in users not getting rewarded for Tapjoy activities, or having user balances strangely appear and disappear.
NOTE: If you plan on using Push to Earn campaigns, this will need to be set before the connect call.
NOTE: For data privacy and GDPR-compliance reasons, you may NOT use email address, phone number, real name, or any other personally identifiable information in the user ID you set with this call.
If you need to set a user ID, you can do so with the following code (no dashboard setting is necessary):
[Tapjoy setUserID:@"A_UNIQUE_USER_ID"];
If you want to check the user ID there is a getter available:
NSString *userID = [Tapjoy getUserID];
[Tapjoy setCustomParameter:@"[PARAMETER]"];