Skip to main content

Google Tag Manager (GTM) Setup

Learn how to set up Google Tag Manager (GTM) in the system, where to add your GTM ID, and which events are tracked, including view_item, begin_checkout, lead, and purchase.

Written by Ronny Christensen
Updated over a week ago

Adding the GTM ID

To activate Google Tag Manager, the GTM ID must be added in the system settings:

  1. Go to System Settings

  2. Select Third-party Integrations

  3. Enter your GTM ID in the following format: GTM-XXXXX

Once saved, the system will automatically start sending events to Google Tag Manager.

Supported Events

The following events are used in the system:

Event

Description

Data

view_item

Triggered when a customer accesses the purchase page for a membership

{
"event": "view_item",
"affiliation": "Booking Board",
"gym_id": "GYM_ID",
"value": "",
"currency": "CURRENCY",
"items": [
{
"item_id": "SKU",
"item_name": "MEMBERSHIP_TYPE_NAME",
"affiliation": "Booking Board",
}
]
}

begin_checkout

Triggered when a customer starts the checkout flow by clicking Buy on a membership after entering their information

{
"event": "begin_checkout",
"affiliation": "Booking Board",
"gym_id": "GYM_ID",
"value": "",
"tax": "",
"currency": "CURRENCY",
"items": [
{
"item_id": "SKU",
"item_name": "MEMBERSHIP_TYPE_NAME",
"affiliation": "Booking Board",
}
]
}

lead

Triggered when a trial session is booked

{
"event": "lead",
"customer_id": "MEMBER_ID",
"gym_id": "GYM_ID",
"clazz_id": "CLAZZ_ID",
"affiliation": "Booking Board",
}

purchase

Triggered when a purchase has been completed

{
"event": "purchase",
"transaction_id": "INVOICE_NUMBER",
"customer_id": "MEMBER_ID",
"discount_codes": "",
"gym_id": "GYM_ID",
"affiliation": "Booking Board",
"value": "",
"tax": "",
"currency": "CURRENCY",
"items": [
{
"item_id": "SKU",
"item_name": "MEMBERSHIP_TYPE_NAME",
"affiliation": "Booking Board",
}
],
"membership_id": "MEMBERSHIP_ID",
"membership_price_id": "PRICE_ID",
"membership_type_id": "MEMBERSHIP_TYPE_ID",
}

Event Flow Overview

  1. Customer visits the purchase page for a membership→ view_item

  2. Customer enters their details and clicks Buybegin_checkout

  3. Customer completes the payment → purchase

  4. If the customer books a trial session → lead

Did this answer your question?