Track a game in Google Analytics 4

Add your GA4 measurement ID to a game, publish, and see game_started, game_over, lead and coupon events in Google Analytics.

Updated

Add your Google Analytics 4 measurement ID to a game, and the game sends its views and players' actions to your own Google Analytics property, next to your website's data.

Add your measurement ID

  1. In Google Analytics, find your web stream's Measurement ID. It starts with G-.
  2. Open the game. In the new dashboard, go to Settings > Lead emails and tracking; in the classic dashboard, go to the Configure page and find the Google Analytics card.
  3. Paste the ID into Google Analytics measurement ID and save.
  4. Publish the game. Tracking changes reach players at the next publish.

Only Google Analytics 4 IDs work: older Universal Analytics IDs (UA-) aren't accepted. To stop tracking, empty the field, save and publish. Only workspace Owners and Editors can change it.

What you'll see in Google Analytics

Besides the page view, the game sends events such as these (which ones depends on the game):

EventWhen
game_viewedThe game opens
game_startedThe player starts playing
game_overThe game ends
lead_gen_submit / lead_gen_skippedThe player sends or skips the lead form
coupon_copiedThe player copies the coupon code
shop_now_clickedThe player clicks your shop button
replay_clicked, share_clicked, leaderboard_clickedThe player replays, shares or opens the leaderboard

Each event has a campaign parameter (the game's preview title) and a game_code, so you can tell your games apart. To use them in reports, register them as custom dimensions in Google Analytics.

Good to know

  • The tag is part of the game's own page, so it tracks the game wherever it's played: on its link, your own domain, an embed or a popup.
  • In the editor's preview, the game's events aren't sent, but Google Analytics may still count a page view.
  • Playzo's own analytics keep working whether or not you add Google Analytics. See See your results.

Still need help?

E-mail [email protected] with your game's link and what you expected to happen.