Start a new topic
Answered

User gender and age, android and ios

Hi. I want to track my users gender and age  and send it to deltaDNA.

I am using Unity and C#.

How can I achieve that?

Thanks.


Best Answer

Hi Luigi, 


The newPlayer event contains gender and birthYear parameters that you can use to populate with this data. You could also add these two parameters to any other event and populate them if you don't have the data at the point where the newPlayer event is recorded. 


You will be responsible for discovering the values and populating these parameters yourself, you may want to look at Facebook Graph API and Facebook connect as a possible means for achieving this. 


A few things to be aware of:

  • We recommend using anonymous userID to protect the privacy of your players. Please ensure you are compliant with privacy and COPA obligations with any publishers, stores, third party tools or territories you are working with.
  • The newPlayer event is recorded automatically by the Unity SDK, but these parameters will not be populated automatically. If you wish to populate them yourself you will need to disable the automation of the newPlayer event and record it yourself. Please see the DDNA.Instance.Settings.OnFirstRunSendNewPlayerEvent flag in Appendix 2 of the Unity SDK docs for more info. You may prefer to create a custom event and add these parameters to it, then record them later in the user experience.

Hope that helps.

regards,
Laurie




1 Comment

Answer

Hi Luigi, 


The newPlayer event contains gender and birthYear parameters that you can use to populate with this data. You could also add these two parameters to any other event and populate them if you don't have the data at the point where the newPlayer event is recorded. 


You will be responsible for discovering the values and populating these parameters yourself, you may want to look at Facebook Graph API and Facebook connect as a possible means for achieving this. 


A few things to be aware of:

  • We recommend using anonymous userID to protect the privacy of your players. Please ensure you are compliant with privacy and COPA obligations with any publishers, stores, third party tools or territories you are working with.
  • The newPlayer event is recorded automatically by the Unity SDK, but these parameters will not be populated automatically. If you wish to populate them yourself you will need to disable the automation of the newPlayer event and record it yourself. Please see the DDNA.Instance.Settings.OnFirstRunSendNewPlayerEvent flag in Appendix 2 of the Unity SDK docs for more info. You may prefer to create a custom event and add these parameters to it, then record them later in the user experience.

Hope that helps.

regards,
Laurie





1 person likes this
Login or Signup to post a comment