TagSpy

unlock_achievement

Recommended

Log this event when the user has unlocked an achievement. This event can help you understand how users are experiencing your game.

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

Parameters (1)

ParameterTypeRequiredDescriptionExample
achievement_idstringYesThe id of the achievement that was unlocked.A_12345

Example

gtag.js
gtag('event', 'unlock_achievement', {
  achievement_id: 'A_12345',
});
GTM dataLayer
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  event: 'unlock_achievement',
  achievement_id: 'A_12345',
});

Also see