User Information - GameAnalytics/GA-SDK-C-SHARP GitHub Wiki
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)
:information_source: 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 |