[Analytics] Integrate Analytics to track player behaviour
FrancyCavallari opened this issue · comments
First of all we should define the list of events we want to track
Let's track the number of games and their results:
- Start New Game (+ number of games played by this player)
- Quit Game (+ number of games played by this player + current day when quitting)
- Win Game (+ number of games played by this player + current day)
- Lose Game Money (+ number of games played by this player + current day)
- Lose Game PubOp (+ number of games played by this player + current day)
- Lose Game Patients (+ number of games played by this player + current day)
And we also save the results (except the current day) in the savegame
Hi Francesco,
I've integrated the analytics. I can't still see them in the Unity dashboard but according to the documentation it requires up to 24 hours to see them.
Let's check tomorrow :-)
Ok cool!
I reopen the issue for:
- test it tomorrow
- check how you implemented the opt-out option (I could not see in the Settings menu)
- be sure I don't frget to "List Unity as a third-party which collects data in your privacy policy, and include a link to Unity’s privacy policy (https://unity3d.com/legal/privacy-policy) in your privacy policy." as explained here (https://docs.unity3d.com/Manual/UnityAnalyticsDataPrivacy.html)
Everything has been done and tested in Editor/WebGL...
... in the future we may want to follow tis recommendation from Unity:
Note: The Data Privacy plug-in includes an icon in the Packages/Analytics Library/DataPrivacy folder. Unity encourages you to use this icon on your data privacy button (or similar control) to provide a consistent graphical cue to players encountering data privacy controls in Unity games.