Set up Google Tag Manager tracking for online bookings
This guide shows how to install Google Tag Manager on your Caspen booking flow.
Overview
Google Tag Manager helps you track online bookings so you can see which campaigns and channels are driving results.
Caspen lets you add your GTM container to your online booking experience, so your tracking can run as part of the booking process and send conversion data to tools like GA4, Google Ads, and Meta.
If your booking form is embedded on your website, your usual website tracking may not capture everything reliably. Adding GTM in Caspen helps ensure your tracking is recorded correctly.
Important note
To use Google Tag Manager with Caspen Online Bookings, you must contact Caspen Support. We will guide you through the activation process to enable it for your account.
Step 1: Create or open your GTM container
Open Google Tag Manager.
Create a new Container (or use an existing one).

Enter a container name of your choice, then select Web as the target platform.

Click Create (top-right).
Your Google Tag Manager tracking ID can be found in the top right-hand corner of your Google Tag Manager account. Copy your Google Tag Manager ID (looks like
GTM-123ABCX).

Step 2: Add the Google Tag Manager ID to Caspen bookings
In Caspen, open Settings → Online Booking.
Paste your GTM Container ID (it looks like
GTM-XXXXXXX) into the Google Tag Manager ID field.

Click Save (top-right of the page).
Step 3: Create the booking trigger in GTM
This trigger listens for a custom event sent by Caspen.
In Google Tag Manager, go to Triggers → click New.

Choose Custom Event as the trigger type.

Enter event name:
CaspenBookingCompletedNote: Event names are case sensitive.

Choose when it should fire: All Custom Events.
Name the trigger (top-left, for example CaspenBookingCompleted).
Save (top-right).

Step 4: Create your tracking tag and attach the trigger
You can either create one tag per platform, or combine multiple tracking scripts in one Custom HTML tag (simple for a first setup). In this guide, we will use one Custom HTML tag so the setup stays simple.
In Google Tag Manager, go to Tags → click New.

Enter a Tag name of your choice (top-left).
In Tag configuration select the tag type: Custom HTML.
Paste the tracking code you want to run. You can add more than one script if needed.

In Triggering, select the trigger:
CaspenBookingCompletedClick Save.

Step 5: Publish your GTM changes
In Google Tag Manager, click Submit.

Add a version name, for example Caspen bookings tracking.
Click Publish. Once your changes are published, your tags are live and can start tracking bookings through Caspen.
Frequently asked questions
Last updated