unlock_achievement
RecommendedLog 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.
Parameters (1)
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| achievement_id | string | Yes | The 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',
});