Table of Contents

General Events

General events capture key transitions between different parts of the game, such as moving between menus and gameplay. These events provide insights into how players navigate your game's interface and when they engage with gameplay.

Every time your main menu is loaded, either at the start of the game, or when player comes back from gameplay, you need to call the MainMenuLoaded method.

// Main menu is loaded
Analytics.MainMenuLoaded();

If your game's main menu is shown at the start of every level (typically in runner games), then you will have to call the method at the start of the game and between every level.

If you have sub menus in your game, for IAPs or cosmetics for example, you will need to call MenuOpened and MenuClosed when the player opens/closes those menus respectively.

// A menu is opened
Analytics.MenuOpened();
// A menu is closed
Analytics.MenuClosed();

Gameplay

Whenever the player switches from menus to gameplay, you need to call GameplayStarted.

// Gameplay is started
Analytics.GameplayStarted();