Pular para o conteúdo principal

Google Analytics

The widgets can send player interaction events to Google Analytics 4 through Google Tag Manager.

The widgets push gmz_engage_* events to window.dataLayer. A GTM container on the page is what forwards those events into GA4. This page covers how tracking is enabled and which events you will see.

Setup​

Set gtm_container_id on the widgets configuration in Admin (a GTM container ID, for example GTM-XXXX). It is not a field on the JavaScript GamanzaEngageClient.init object.

In Admin, open Widgets Configuration → General and set Google Tag Manager Container ID:

Widgets Configuration in Admin, with Google Tag Manager Container ID under GeneralWidgets Configuration in Admin, with Google Tag Manager Container ID under General

After the player session and settings load, if that ID is present, the widgets initialize that GTM container and push events to dataLayer.

The host page may already have its own GTM container. Engage uses the shared dataLayer, so that existing container can also see gmz_engage_* events. The gmz_engage_ prefix keeps them distinct from other tags. Setting gtm_container_id adds the Engage container; it does not replace the host container.

If gtm_container_id is empty, the widgets do not load a GTM container. They still push events to dataLayer. Those pushes reach Google Analytics only if another container on the page (for example the casino's GTM) listens for them.

A Gamanza Engage GTM container template already includes tags, triggers, and variables for these events (see Notes). If you configure GTM yourself, create Custom Event triggers whose Event Name matches the gmz_engage_* names in the catalog below (the dataLayer event value), and map those triggers to GA4 Event tags.

window.dataLayer.push({
event: 'gmz_engage_sidebar_nav_click',
sidebar_menu_item: 'missions',
device_type: 'desktop',
player_id: 'player-id',
player_genre: 'male',
})

Shared parameters​

Every event includes:

ParameterValues
device_typemobile, tablet, or desktop
player_idEngage player ID (gmzPlayerId)
player_genrePlayer gender, or an empty string when it is not available

GTM keeps previous dataLayer keys unless they are cleared. Before each push, the widgets reset sticky identifiers (tournament_id, loot_airdrop_id, mission_bundle_id, notification_id, notification_type, optin_type, optin_amount, tab_content, widget_location) so a later event does not reuse values from an earlier one.

View events fire once per page path. Rapid duplicate clicks with the same name, path, and payload are ignored for two seconds.

Widget views​

A rendered widget emits gmz_engage_widget_view. Use widget_type to tell the widgets apart. One GTM Custom Event trigger on gmz_engage_widget_view covers every widget.

widget_typeWhen it fires
avatarAvatar widget renders
badge-levelLevel badge widget renders
pointsPoints widget renders
tokensTokens widget renders
reward-shopReward Shop widget renders
my-boostersMy Boosters widget renders
my-rewardsMy Rewards widget renders
active-boostersActive Boosters widget renders
gamification-mechanicsMechanics widget renders
notificationsNotifications widget renders
missionsMissions page widget renders
tournamentsTournaments page widget renders
loot-airdropsLoot Airdrops page widget renders
rank-downgrade-minimum-activityRank downgrade widget renders
rich-inbox-iconRich Inbox icon widget renders
rich-inbox-pageRich Inbox page widget renders
sidebarSidebar becomes visible (not on first mount)

Gamification Data widgets set widget_type to gamification-data plus data-gamification-type (rank, level, token, or xp): gamification-data-rank, gamification-data-level, gamification-data-token, gamification-data-xp.

Rich Inbox also emits gmz_engage_inbox_open (see Rich Inbox). That is the interaction event to use for opens; gmz_engage_widget_view still fires when those containers render.

Event catalog​

Extra parameters below are in addition to the shared parameters.

widget_location identifies the surface. Values you will see:

  • Widget data-type: sidebar, reward-shop, missions, tournaments, loot-airdrops, active-boosters, my-rewards, notifications, rich-inbox-icon, rich-inbox-page
  • Sidebar home: sidebar | home
  • Sidebar home with context: sidebar | home | active missions, sidebar | home | my rewards, sidebar | home | loot airdrops
  • List context: sidebar | active, sidebar | history, missions | active, missions | history, tournaments | active, tournaments | history, loot-airdrops | active, loot-airdrops | history
  • Optional suffix after the list context: mission bundle, mission details, details, banner, tournament card, loot airdrop card
  • My Rewards (shop tab): reward-shop | my rewards
  • Snackbar: snackbar

Initialization​

Event nameExtra parametersWhen it fires
gmz_engage_widgets_initialized—Widgets finished loading player data and global settings

Shared reward events​

These events are used from the sidebar, missions, tournaments, loot airdrops, notifications, and My Rewards. Use widget_location (and mission_id / tournament_id / loot_airdrop_id when present) to tell the surfaces apart.

Event nameExtra parametersWhen it fires
gmz_engage_reward_clickreward_id, reward_type, widget_location; optionally mission_id, mission_bundle_id, tournament_id, loot_airdrop_idPlayer opens a reward chest / claim dialog
gmz_engage_reward_modal_claim_clickreward_id, reward_type, widget_locationPlayer confirms claim in the reward modal
gmz_engage_reward_modal_dismiss_clickreward_id, reward_type, widget_locationPlayer closes the reward modal without claiming
Event nameExtra parametersWhen it fires
gmz_engage_sidebar_statussidebar_status (open or close)Sidebar opens or closes
gmz_engage_sidebar_nav_clicksidebar_menu_item (home, missions, tournaments, reward_shop, loot_airdrops)Player selects a sidebar menu item
gmz_engage_mb_detail_clickmission_bundle_id, widget_locationPlayer opens a mission bundle from the sidebar
gmz_engage_tnmt_detail_opentournament_id, widget_locationPlayer opens a tournament from the sidebar (home, list, or priority item)
gmz_engage_loot_detail_openloot_airdrop_id, widget_locationPlayer opens a loot airdrop from the sidebar (home, list, or priority item)
gmz_engage_mb_history_clickwidget_locationPlayer opens mission history from the sidebar
gmz_engage_tnmt_history_clickwidget_locationPlayer opens tournament history from the sidebar
gmz_engage_loot_history_clickwidget_locationPlayer opens loot airdrop history from the sidebar
gmz_engage_reward_item_detail_clickitem_id, item_category, cost, widget_locationPlayer opens a shop item from the sidebar
gmz_engage_reward_cat_clickcategory_name, widget_locationPlayer selects a shop category in the sidebar
gmz_engage_reward_purchase_confirm_clickitem_id, item_category, cost, quantity, widget_locationPlayer confirms a purchase from the sidebar

Opt-in, games, reward claim, and booster events from the sidebar use the shared events in Opt-in, Games, Shared reward events, and Boosters.

Missions​

Event nameExtra parametersWhen it fires
gmz_engage_mb_detail_expand_clickmission_bundle_idPlayer expands a mission bundle on the missions page
gmz_engage_mb_detail_collapse_clickmission_bundle_idPlayer collapses a mission bundle on the missions page
gmz_engage_mission_detail_openmission_id, mission_bundle_id, widget_locationPlayer opens a mission detail dialog
gmz_engage_mb_history_clickwidget_locationPlayer opens the missions history tab

Tournaments​

Event nameExtra parametersWhen it fires
gmz_engage_tnmt_detail_opentournament_id, widget_locationPlayer opens a tournament detail
gmz_engage_tnmt_detail_expand_clicktournament_idPlayer expands a tournament on the tournaments page
gmz_engage_tnmt_detail_collapse_clicktournament_idPlayer collapses a tournament on the tournaments page
gmz_engage_tnmt_rewards_clicktournament_id, widget_locationPlayer opens the tournament rewards tab
gmz_engage_tnmt_history_clickwidget_locationPlayer opens the tournaments history tab

Loot airdrops​

Event nameExtra parametersWhen it fires
gmz_engage_loot_detail_openloot_airdrop_id, widget_locationPlayer opens a loot airdrop detail
gmz_engage_loot_detail_expand_clickloot_airdrop_idPlayer expands a loot airdrop on the page
gmz_engage_loot_detail_collapse_clickloot_airdrop_idPlayer collapses a loot airdrop on the page
gmz_engage_loot_details_tab_clickloot_airdrop_id, widget_location, tab_content (winners, rewards, or the tab id)Player switches a loot airdrop details tab
gmz_engage_loot_history_clickwidget_locationPlayer opens the loot airdrops history tab

Reward shop​

Event nameExtra parametersWhen it fires
gmz_engage_reward_shop_content_viewreward_shop_content (rewardShop, myRewards, or history)Player opens a Reward Shop tab (shop, My Rewards, or history)
gmz_engage_reward_item_detail_clickitem_id, item_category, cost, widget_locationPlayer opens an item detail
gmz_engage_reward_purchase_confirm_clickitem_id, item_category, cost, quantity, widget_locationPlayer confirms a purchase
gmz_engage_reward_cat_clickcategory_name, widget_locationPlayer opens a category
gmz_engage_reward_cat_collapse_clickcategory_namePlayer returns from a category to the shop list
gmz_engage_reward_pagination_clickcategory_name, page_number, widget_locationPlayer changes page in the shop list
gmz_engage_reward_hist_pagination_clickpage_numberPlayer changes page in shop history
gmz_engage_minigame_clickminigame_id, widget_locationPlayer launches a mini-game from My Rewards

Notifications​

Event nameExtra parametersWhen it fires
gmz_engage_notif_viewnotification_id, notification_typeA notification snackbar is shown
gmz_engage_notif_expand_clicknotification_id, notification_typePlayer expands a notification
gmz_engage_notif_dismiss_clicknotification_id, notification_typePlayer dismisses a notification (snackbar or modal)
gmz_engage_notif_tnmt_detail_clicknotification_id, notification_type, tournament_idPlayer opens tournament details from a notification
gmz_engage_notif_playnow_clicknotification_id, notification_type, tournament_idPlayer clicks Play now on a tournament-start notification
gmz_engage_notif_seeresults_clicknotification_id, notification_type, tournament_idPlayer clicks See results on a tournament-end notification

Boosters​

Event nameExtra parametersWhen it fires
gmz_engage_boost_openwidget_locationPlayer opens the My Boosters list
gmz_engage_boost_activate_clickbooster_id, booster_type, widget_locationPlayer starts activating a booster
gmz_engage_boost_activate_confirm_clickbooster_id, booster_type, widget_locationPlayer confirms booster activation
gmz_engage_boost_activate_cancel_clickbooster_id, booster_type, widget_locationPlayer cancels booster activation
gmz_engage_active_booster_detailbooster_id, booster_type, booster_status (boolean), widget_locationPlayer opens (true) or closes (false) an active booster detail

Mechanics​

Event nameExtra parametersWhen it fires
gmz_engage_mechanics_modalmechanics_type (opt_in or opt_out), mechanics_status (open or close)Player opens or closes the gamification opt-in / opt-out modal
gmz_engage_mechanics_modal_confirm_clickmechanics_type (opt_in or opt_out)Player confirms the opt-in or opt-out

Rich Inbox​

Every Rich Inbox event includes widget_location: rich-inbox-icon (header popover) or rich-inbox-page (full page).

Event nameExtra parametersWhen it fires
gmz_engage_inbox_openwidget_locationHeader popover opens, or the Rich Inbox page mounts
gmz_engage_inbox_message_openmessage_id, filter (all, unread, or favorites), widget_locationPlayer opens a message preview
gmz_engage_inbox_preview_close_clickmessage_id, widget_locationPlayer closes the message preview
gmz_engage_inbox_mark_as_read_clickmessage_id or messages_count, status (read or unread), widget_locationPlayer marks one message or a selection as read / unread
gmz_engage_inbox_mark_as_favorite_clickmessage_id or messages_count, status (added or removed), widget_locationPlayer adds or removes a favorite (single or bulk)
gmz_engage_inbox_mark_all_as_read_clickmessages_count, status (read_all), widget_locationPlayer clicks Mark all as read. messages_count is the estimated unread count at click time
gmz_engage_inbox_toggle_select_clickscope (single or all_visible), status (selected or unselected), message_id (single only), widget_locationPlayer selects or unselects messages
gmz_engage_inbox_search_inputsearch_term (query length, not the text), status (search or clear), widget_locationSearch runs (3+ characters) or is cleared
gmz_engage_inbox_load_more_scrollpage_number, filter (all, unread, or favorites), widget_locationInfinite scroll loads the next page

Opt-in​

gmz_engage_optin_click is used for missions, tournaments, and loot airdrops (cards, details, and snackbar).

Event nameExtra parametersWhen it fires
gmz_engage_optin_clickwidget_location, optin_type (tokens or free); optin_amount when optin_type is tokens; plus mission_bundle_id, tournament_id, or loot_airdrop_id depending on the productPlayer joins / opts in

Games​

gmz_engage_games_click is used when the player opens the games catalog from a tournament or loot airdrop.

Event nameExtra parametersWhen it fires
gmz_engage_games_clickwidget_location; plus tournament_id or loot_airdrop_idPlayer opens the games dialog

How to verify​

  1. Confirm gtm_container_id is set on the widgets configuration and that the widgets have finished initializing.
  2. Open GTM Preview (Tag Assistant) on the host page and interact with a widget.
  3. In the browser console, inspect window.dataLayer for gmz_engage_* events and their parameters.
  4. In GA4, use DebugView / Realtime to confirm the matching events arrive.

Notes​

GTM container template

A ready-to-use Google Tag Manager container is available as a template. It already includes the tags, triggers, and Data Layer variables for every gmz_engage_* event in this catalog.

You do not need to recreate that configuration. Import the template into your GTM workspace — or reuse it as the starting container — and bind the GA4 Event tags to your own Google Analytics 4 property.

Request the current template from your Customer Success Manager. After import:

  • Set gtm_container_id in Admin if the widgets should load that container.
  • If the host page already has GTM, import the template into that workspace instead. The widgets still push events to the shared dataLayer.