- Home /
Can Google Analytics for Unity collect data on Demographics?
I'm using the GAv4 plugin found here: https://github.com/googleanalytics/google-analytics-plugin-for-unity I was able to track objects easily using the documentation as a guide.
I now want to enable Demographics but the only documentation I can find is for iOS and Android plugins or js code: https://support.google.com/analytics/answer/2444872?hl=en-GB&utm_id=ad
There is a tick box on the GAv4 prefab that has a tick box "Send IDFA/AdID" (see screenshot). Is it as simple as ticking this or is there more to it?
Thanks
Answer by summitgamesentertainment · Mar 29, 2017 at 02:50 PM
Unity does allow demographics. After you have added the prefab. Make sure to tick or enable the last property on that prefab.
You must externally define and call the methods wherever you want the data to be collected.
This will certainly solve your query.
Hi, Thanks for the reply.
Can you point me to some scripting/documentation on how to call the method? Google Analytics collects data about age and gender but theres nothing in my App that defines it. However, on the Google Analytics documentation it says:
"Analytics generates an identifier based on the IDFA that includes demographic and interests information associated with users’ app activity"
What kind of method do I have to call?
Sharing few lines of code: this log event function is called when the player has completed a certain mission:
googleAnalytics.LogEvent("Stage", "Unlocked", "12.5 Acre", 1);
You can check all the methods from this link: https://developers.google.com/analytics/devguides/collection/unity/v4/reference
Please mark the answer as correct. Thank you. Happy Coding :)
Ok great. I have some LogEvent code to track button presses, so this should now work, yes?
Your answer
Follow this Question
Related Questions
Access photos, videos & music from iOS and Android library? 0 Answers
SystemInfo.batteryStatus integration 2 Answers
Google Play Game Services Plugin "Failed to re-package resources" 2 Answers
Ads are not shown (GoogleMobileAds) 1 Answer
iOS Unity Plugin : Load Video from 'Videos'app and Photo Library on iOS Device 0 Answers