I’m pretty new to analytics, and I am having trouble on how to come up with a way to track the data I want.
I would like a stat that shows how long the user has played my game for since install. A session lasts anywhere from 3-5 minutes. Internally, I am saving their total play time over all sessions in the PlayerPrefs. For the sake of clarity, let’s call this stat “lifetimeplay”
I would like a way to visualize:
- The average “lifetimeplay” of all users
- Purchase amounts vs “lifetimeplay”
I tried submitting the “lifetimeplay” data point to Unity Analytics at the Game Over screen, but I forgot that data would be something like this for a single user:
Session #1: lifetimeplay = 5 minutes
Session #2: lifetimeplay = 10 minutes
Session #3: lifetimeplay = 14 minutes
Session #4: lifetimeplay = 18 minutes
So in the Data Explorer, I end up with an Average of (5+10+14+18) / 4 => about 12 minutes. But I don’t want the average lifetimeplay of all user sessions. I only want that latest value: 18 minutes, for every user… THEN I want an average of that data point.
Is there a way to do this in Unity Analytics? I’m still pretty new at this, so I feel like I am missing something obvious! Thank you for the help!