Unity Analytics offers the ability to track user demographics. This provides you with robust ways to filter your data to look at different user segments. This information is pulled from player information entered at signup or from third-party SDKs.
// Reference the Unity Analytics namespace
// Use this call to designate the user gender
// Use this call to designate the user birth year
|Gender of user can be Gender.Female, Gender.Male or Gender.Unknown.
|Birth year of user. Must be 4-digit year format only.
Gender gender = Gender.Female;
int birthYear = 2014;
To send test User Attribute data to our servers and validate your integration, trigger your User Attribute during Editor Play mode. If integration is successful, your test data will display in the table below.
Did you find this page useful? Please give it a rating: