-
Notifications
You must be signed in to change notification settings - Fork 9
User Information
Martin Treacy-Schwartz edited this page Mar 16, 2017
·
3 revisions
During the game it is possible to set information about your users that will then be annotated to all other events.
- gender
- Facebook ID
- birth year (age)
ℹ️
These user values will persist cross session/game-launch.
Set them to null to reset.
Set gender.
GameAnalytics.SetGender(EGAGender.Female);
Set birth year.
GameAnalytics.SetBirthYear(1980);
Set Facebook ID.
GameAnalytics.SetFacebookId("123456789012345");
Field | Type | Description | Example |
---|---|---|---|
gender | string | Gender of player. | EGAGender.Female, EGAGender.Male |
birthYear | integer | The year the player was born. | 1980 |
facebookId | string | Facebook Id of the player. | 123456789012345 |