Hi there,
I’m new to Unity Analytics and have been trying to use them in order to track the difficulty of levels in my puzzle game. I’d love to get your feedback on the best way to do this as I think my current method is problematic.
Basically, I want to get a feel of how hard my levels are by seeing how many people beat each level, how many people lose on each level, and how many moves it took them to get to that state (along with other data).
The way I’ve gone about this is by implementing my own Analytics class which contains the following method:
/// <summary>
/// Sends specific custom event to server for when the player finishes a level.
/// Here we try to track how difficult levels are and how many people try them.
/// </summary>
/// <param name="levelName">Name of level the player is currently in.</param>
/// <param name="won">True if the player managed to beat the level this time. False if he lost before he got to finish the level.</param>
/// <param name="levelPlaytime">Amount of time the player has spent on this level.</param>
/// <param name="moveCount">Amount of moves the player made before getting here.</param>
/// <param name="lifeCount">Amount of lives left the player had before getting here.</param>
/// <param name="fillPercentage">Percentage of fill the player performed before getting here.</param>
public static void OnFinishedLevel(string levelName, bool won, float levelPlaytime, int moveCount, int lifeCount, int fillPercentage)
{
AnalyticsResult res = Analytics.CustomEvent(levelName + " - levelFinish", new Dictionary<string, object>
{
{ "wonLevel", won },
{ "levelPlaytime", levelPlaytime },
{ "moveCount", moveCount },
{ "lifeCount", lifeCount },
{ "fillPercentage", fillPercentage }
});
Debug.Log("OnFinishedLevel status: " + res);
}
In concept, this makes sense as it groups all my relevant data together.
However, in practice when looking at my data it’s all scrambled up:
- The Event Manager view just summarises my custom event so I can’t see individual results there, or link parameters inside to one another (I.E. I can’t tell which levelPlaytime belongs to which moveCount and so on)
- The Data Explorer view can’t handle such a large number of events (as each level is its own Custom Event by name), so it crashes frequently and still doesn’t let me view individual results.
- The Funnel Analyzer doesn’t seem to work for me (I created a funnel for each Custom Event’s wonLevel condition but since the creation of the funnel it has not shown any data)
I’m sure there’s a better way than what I’m doing. Could anyone give me their two cents on where I went wrong?
Thanks in advance!