One of the final steps before I launched Hex Disarm was to implement the Unity Analytics API. Unity Analytics will allow me to analyse exactly how my users are playing my game. For example, I will be able to see exactly how many users have completed the first 10 levels or what level the user quit on.
In order to record these events, I had to perform some API calls to send these events to the Unity dashboard. So, I created an Analytics Manager script that handles all my analytics events. In order to perform a Unity Analytics API call, I just had to call Analytics.CustomEvent() with my parameters for the event that I wanted to execute. These are all the events I have inside the application that I can monitor on the dashboard:
- Level Completed
- Level Failed
- Level Skipped Level Select
- Level Skipped
- Level Quit