Trying to set up some user attributes but it doesn’t seem to be working. specifically gender. Age has issues too but I think they are related. Does the order in which you set the attributes, initialize analytics, set userid matter?
All current Users segment has members but for some reason gender doesn’t have any members. Our custom age segments don’t seem to be working either. However the built in age segments work fine.
Here’s how I kinda have it setup.
if(!isInitDataSet)
UnityAnalytics.StartSDK (ANALYTICS_ID);
if(isLoggingIn) //check to make sure they are playing with a logged in account not a quick game
{
UnityAnalytics.SetUserGender(sex);
UnityAnalytics.SetUserBirthYear(birthyear);
UnityAnalytics.SetUserId(PlayerDatabase.PlayerID);
}
else
{
UnityAnalytics.SetUserGender(SexEnum.U);
UnityAnalytics.SetUserBirthYear(1900);
UnityAnalytics.SetUserId(SystemInfo.UniqueDeviceIdentifier);
}
In our game you can have up to 3 accounts per device. PlayerDatabase.PlayerID retrieves a unique id created for that player from our own server.