Unity User

Use NetmeraUser class to send information about your application's users to Netmera in a structured way.

User ID Management: For optimal performance and data integrity, we strongly recommend updating user information at the point of login. Ensure that the same userId value is assigned exclusively to users who log in with the corresponding account credentials. Assigning the same userId to multiple users can lead to data inconsistencies and is not considered a best practice.

Typical place to inform Netmera about application user's attributes is after your users has logged in to your application. After you have information about your logged in user, you should create a NetmeraUser object, set values, then call Netmera.updateUser() method like below.

NetmeraUser user = new NetmeraUser();
user.SetUserID("your_xid");
user.SetBirthday("1991", "06", "30");
user.SetCity("Istanbul");
NetmeraCore.Instance.UpdateUser(user.JsonNode);

Last updated