Way to get some statistics about player choices

Hi everyone,

I’m kinda lost when I try to think of a way to get some statistics about some choices that my players have made in the game.
I’m talking about some simple clicked events (answering yes to some questions or this kind of things).

Should I sent to a server a file ?
Did using unity Analytics should help ? (I’ve never used it)

Or is there a nice way to implement this ?

This is exactly what analytics is for.

Unity Analytics is free to a certain point, so is a good start.
GameAnalytics.com is also free, with premium options.
You can also do other cool stuff like remote config and A/B testing.

I’d setup some basic analytics to test (from a game build), to see what sort of structure and reporting will work best for your game. Also look into funnels.

2 Likes

Just do not forget to ask for consent.

2 Likes

I personally wouldn’t use third party analytics, just roll a server in your language of choice, set up an API and pass in your data, store to noSQL or SQL database.

2 Likes

Unity Analytics. You’re not just getting an API. You’re getting a ton of ways to view and work with the data with very minimal work on your part. Creating your own solution only makes sense if you have very specific requirements or you want to learn how to do it. Any other reason is just busy work and leaves less time to make the game.

4 Likes

thanks everyone, I’ll give it a try

Why wouldn’t you use a third party ? Did you get some bad experiences ? I’d like to know the pros and cons of each solutions if you’d like to share your personal experiences, it’d help me to make some choices.

You have more control if you write own solution.

But it will cost you a lot of time, to create one that is work correctly. Specially if you have never wrote one.
While also need to think about security.
And if executed wrongly, someone malicious can write to your DB, or even deleted it all together.

So for that, and most small projects third party solution is suitable use case. Also saves time and may as well save money in long run, as you can spend same time on more important aspect of the project, rather than constantly debugging your own custom service.

Besides, if consider analytics alone, these are quite complex systems. These tend to collects data about many aspects of the user origin and behaviour.

If need DB just for keeping game stats however, these are much simpler to create. But should not be neglected and overestimated, specially safety and security aspects.

1 Like

follow this: Get started with Unity Analytics - Unity Learn

Part of this set of tutorials: Unity Analytics - Unity Learn

by end of that you should know exactly how to use analytics and then its just a case of working out what events you want to capture

2 Likes

You also become more responsible for dealing with any legal matters concerning data collection, data storage, and so on. With Unity the most you’re likely ever going to have to deal with is a consent dialog box and support for data deletion, but if you build your own system you’re now responsible for keeping track of more laws.

3 Likes

Enough.
Personal attacks are against the forum rules and just inappropriate. This behaviour can lead to timeouts and banning. (arguing posts have been removed)

3 Likes

Thanks a lot,
I’ve started to learn how Analytics works before your post, and made some tests, it’s quick but I think I’ll not be able to do the stat operations that I want with this solution.
Now thanks to your explanations, I’ll try learning all of this now in order to get my own modulable database.

1 Like

Have fun, but don’t forget developing the game too :stuck_out_tongue:
It’s so easy to get distracted…

3 Likes