TagSpy

level_up

Recommended

This event signifies that a player has leveled up. Use it to gauge the level distribution of your userbase and identify levels that are difficult to complete.

Platforms
web, app
When it fires
You send it when the action happens.
Official docs

Parameters (2)

ParameterTypeRequiredDescriptionExample
levelnumberNoThe level of the character.5
characterstringNoThe character that leveled up.Player 1

Example

gtag.js
gtag('event', 'level_up', {
  level: 5,
  character: 'Player 1',
});
GTM dataLayer
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  event: 'level_up',
  level: 5,
  character: 'Player 1',
});

Also see