Google Tag Manager is Google's most flexible tracking product that lets you collect and report traffic and conversion information into Google products (e.g., Analytics, Ads, etc.) or 3rd party products (e.g., Facebook).
The power and flexibility of Tag Manager is great, just be aware that it's a bit trickier to set up and maintain than Global Site Tag.
Verify your Google product and version
For effective tracking, the Google product version you configure in Starboard Suite must match the Google product version you use on your main website.
Before proceeding, please verify that your website is using Google Tag Manager.
Check the Tag Manager configuration on your website
If you're already using Tag Manager, the tracking code below should already be on your website.
Be sure to change the GTM ID in the example (GTM-12345AB) to your real Tag Manager ID.
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s),
Include the Booking Lightbox code on your website
If your website uses the Booking Lightbox or Live Calendar iFrame integration, verify that booking-lightbox.js is included on your website (see Booking Lightbox or Live Calendar for more information).
If it's already included, you can skip to the next step.
Setting up your Tag Manager container
Tag Manager requires several tags, triggers and variables to be added to your container.
To make setup easier, we've created a Tag Manager container template that you can import into your Tag Manager account.
Importing the Tag Manager template
Download the Tag Manager container template
In Tag Manager, navigate to Admin and select Import Container
Select the template file that you downloaded and import into a new container
If you have an existing Tag Manager container, please test the import on a new container to understand what it does, before importing it into an existing container.
It is your responsibility to verify that the template settings (including the Google Analytics Settings variable) don't conflict with any prior settings you have in your container.
Navigate to the workspace for the container where you imported the template
If using Universal Analytics:
a. Click Variables
b. Edit the "Google Analytics Settings" variable and enter your Tracking ID
If using GA4:
a. Click Tags
b. Edit the "Google Analytics 4" tag and enter your Measurement ID
Publish your changes
Enable Google Tag Manager in Starboard Suite
In your Control Panel, go to Admin->App Store
Activate the Google Tag Manager app
Enter the Tag Manager Id that Google provided (e.g., GTM-12345AB)
Set up Goal Tracking in your Google Analytics account
Log-in to Google Analytics and follow Google's instructions to create a "Goal".
Under "Goal details":
Set "Destination type" to "Regular Expression"
Set URL to: /boarding-pass/
Set up E-commerce Tracking in your Google Analytics account
We will automatically post anonymous revenue data to your Analytics account.
To see this data in Analytics, you'll need to enable e-commerce tracking in your Analytics account.
Please note the following details about using the Google Tag Manager integration:
Sales performance is supported.
Product performance is supported.
Add starboardsuite.com to your Analytics "Referral Exclusion List"
If you find that Analytics is creating a new "session" and showing starboardsuite.com as the "source", just add starboardsuite.com to your Analytics exclusion list.
Authorize.net users may want to add authorize.net to their exclusion list as well.
For more info, see this Google support document: