Events
Learn how events track player actions in your game, and use them to measure engagement, spending, and progression.
Read time 3 minutesLast updated a month ago
An event is an action that occurs in your game, such as when the game starts, or when the player does something like find a treasure or buy an item. Events contain contextual information around that action, such as the item that was obtained, how much currency the player had, and how the item was acquired. These can be customized to suit your game and send useful information to you. Events can be used to measure player engagement, spending, and conversion through the Data Explorer and funnels. An event is a collection of parameters that provide a snapshot of the player's state at that moment. For example:
missionStartedmissionCompletedmissionIDmissionName- Standard events are provided for you and cannot be edited. These events encompass several key metrics that are widely applicable to many games, and most of them are sent automatically by the Analytics SDK. For information about standard events, refer to Standard events.
- Custom events must be created to fulfill the unique requirements of your game. For information about how to create custom events, refer to the Create a custom event tutorial.
Track how players interact with your game
When you design something in your game, you need to have a reason for it. Track how players interact with your game to validate your intentions and answer questions such as:- How difficult is this level?
- Is my tutorial easy to follow?
- Have a lot of players purchased this offer?
dungeonCompleted- : Which dungeon was finished.
dungeonName - : How long it look for the player to finish.
time - : How many times the player died before reaching the finish.
deathCount - : The health of the player at the end of the dungeon.
playerHealth - : How many potions the player used to finish the dungeon.
potionsUsed
Common tracking scenarios
First time user experience
In this case you want to check how many players complete the tutorial. Use a custom event that triggers once a tutorial step is completed, such astutorialStepCompletedstepIDAn item is bought
For every virtual or real currency transaction in the game, you should always record atransactiontransactiontransactiontransactionproductsReceivedproductsSpentFeature adoption
Use both standard and custom events to measure the success of new features within the game and how users adopt them. For example, you might want to introduce guilds into the game. This is a feature which is important for long-term engagement and player interactions, especially for RPGs. You could implement the following events to track guild engagement:- : User joins a guild.
guildJoined - : User leaves a guild.
guildLeft - : User sends a message in guild chat.
guildMessageSent - : User has an admin role within the guild.
guildRole
Player lifecycle
Tracking the user's lifecycle throughout the game is important to determine when they stop playing the game or to identify any other issues with the game. You could track users with events such as:- : The current level of the user.
characterLevelUp - : When a user makes a purchase.
transaction - : When a user joins a guild.
guildJoined - : Amount of in-game currency gained.
currencyGained