Skip to Content

How to set up Flybook ecommerce tracking with Google Tag Manager and GA4

By Brian Modena
process for setting up Google Analytics 4 (GA4) ecommerce tracking for "The Flybook" specialized reservation software using Google Tag Manager (GTM).

Setting up Flybook ecommerce tracking in Google Tag Manager

If you’re using Flybook to manage online bookings, getting purchase data into Google Analytics 4 requires a specific GTM configuration that can be a challenge to set up. Out of the box, Flybook’s booking widget loads inside an iframe on your site, which means standard GA4 tracking setups won’t capture completed transactions without some additional work. This guide walks through the exact steps to import a pre-built GTM container, connect it to your Flybook account, and verify that order data, including transaction ID, revenue, and item details, is flowing correctly into your GA4 ecommerce reports. Whether you’re setting this up for the first time or troubleshooting a broken implementation, you’ll have purchase tracking working by the end.

Download the flybook-gtm-container.json here

What you’ll need before you start:

  • The flybook-gtm-container.json file (Get the File Here)
  • Access to your Google Tag Manager account
  • Access to your Google Analytics 4 account
  • Access to your Flybook account settings
  • Google Chrome browser (required for testing)

Import the container file into GTM

  1. Log into tagmanager.google.com and open your container
  2. Click Admin in the top navigation bar
  3. Under the Container column (right side), click Import Container
  4. Click Choose container file and select the flybook-gtm-container.json file
  5. Under “Choose workspace,” select Existing and choose Default Workspace
  6. Under “Choose an import option,” select Merge (not Overwrite)
  7. Review the summary screen showing what will be added, then click Confirm
Note: “Merge” adds the new tags alongside anything already in your container. “Overwrite” would erase everything else, so always choose Merge unless this is a completely empty new container.

Enter your GA4 Measurement ID

Your GA4 Measurement ID is a code that looks like G-XXXXXXXXXX. This tells GTM which Google Analytics account to send your purchase data to.

To find your Measurement ID:

  1. Log into analytics.google.com
  2. Click Admin (gear icon, bottom left)
  3. Under the Property column, click Data Streams
  4. Click on your website’s data stream
  5. Your Measurement ID is shown in the top right, starting with G-. Copy it.

To enter it in GTM:

  1. Back in GTM, click Variables in the left sidebar
  2. Scroll down to the User-Defined Variables section and click Const – GA4 Measurement ID
  3. Replace G-XXXXXXXXXX with the ID you just copied
  4. Click Save

Add your GTM container ID to Flybook

This step connects Flybook’s booking system to your GTM account so that purchase data can flow through.

To find your GTM container ID:

  • It’s visible in the top right of your GTM dashboard, formatted like GTM-XXXXXXX

To add it in Flybook:

  1. Log into your Flybook account
  2. Go to your account settings and find the Web Integration or Analytics section
  3. Paste your GTM container ID into the Google Tag Manager field and save
Note: If you’re unsure where to find this setting in Flybook, their support team can help, as the exact location may vary by account type.

Enable ecommerce reporting in GA4

  1. In Google Analytics, click Admin (gear icon, bottom left)
  2. Under the Property column, click Data Display, then Events
  3. Find purchase in the list and make sure it’s toggled on as a Key event
  4. Go back to Data Display and click eCommerce
  5. Make sure ecommerce reporting is turned on

Set up the Conversion Linker tag in GTM

The container you imported in Step 1 already includes a Conversion Linker tag. This is the GTM tag responsible for decorating links with the _gl parameter that makes cross-domain tracking work. The GA4 admin setting in the next step tells GA4 which domains to accept that parameter from, but this tag is what generates it in the first place. Both are required.

You don’t need to create this tag manually, but you do need to confirm one setting after import:

  1. In GTM, click Tags in the left sidebar
  2. Find and click the tag named Conversion Linker
  3. Under Linker Options, confirm Enable linking across domains is checked
  4. In the Auto Link Domains field, confirm both your own domain (e.g., yourdomain.com) and go.theflybook.com are listed, separated by a comma. The import pre-fills go.theflybook.com but you must replace the yourdomain.com placeholder with your actual domain before publishing
  5. Confirm Accept incoming linker parameters is checked
  6. Click Save if you made any changes, otherwise click Cancel


Set up cross-domain tracking in GA4

When a customer clicks through your booking widget, they move from your website to Flybook’s booking system at go.theflybook.com. Without cross-domain tracking, GA4 treats this as a brand new session from an unknown source, which breaks attribution and inflates your session counts. This step tells GA4 to treat your site and the Flybook booking domain as one continuous session.

  1. In Google Analytics, click Admin (gear icon, bottom left)
  2. Under the Property column, click Data Streams
  3. Click on your website’s data stream
  4. Scroll down and click Configure tag settings
  5. Click Configure your domains
  6. Click Add condition
  7. Set the match type to Contains and enter your own domain (e.g., yourdomain.com)
  8. Click Add condition again
  9. Set the match type to Contains and enter go.theflybook.com
  10. Click Save

Test everything using GTM Preview mode

Before going live, verify that the tags are firing correctly on a test booking. This does not send any real data to GA4 yet.

Setup:

  1. Install the Tag Assistant Companion extension in Chrome if you haven’t already
  2. In GTM, click the Preview button in the top right
  3. Enter the URL of the page on your website where your Flybook booking widget is embedded and click Connect
  4. A new browser tab will open with your website and the Tag Assistant panel running

Run a test booking:

  1. Go through your booking process all the way to the order confirmation screen
  2. Switch back to the Tag Assistant tab

What you should see:

  • An event called orderMadeGa4 appears in the left-hand event list
  • Click on it, then look at the Tags panel on the right
  • Both GA4 – Clear Ecommerce Object and GA4 – Event – Purchase (Flybook) should show a green Fired status
Note: If either tag shows as “Not Fired,” double-check that your GTM container ID is saved correctly in your Flybook account (Step 3).

Verify the purchase data looks correct

While still in the Tag Assistant panel with your test booking event selected:

  1. Click on the GA4 – Event – Purchase (Flybook) tag
  2. Expand the tag details
  3. Confirm the following fields are populated with real data from your test order:
    • transaction_id — a unique order ID
    • value — the order total (e.g., 84)
    • currency — should show USD
    • items — should show the activity/product that was booked

If any of these are blank or missing, the booking may not have fully completed to the confirmation screen during testing.

Publish your changes

  1. Click Submit in the top right of GTM
  2. Add a version name like “Flybook ecommerce tracking” for your records
  3. Click Publish

Your tracking is now live. Completed bookings through Flybook will begin appearing in your GA4 reports under Reports > Monetization > Ecommerce purchases within 24–48 hours.

Heads up: GA4 purchase data can take up to 48 hours to show up in reports for the first time. If you don’t see data right away, that’s normal. Use GTM Preview mode (Step 5) as your confirmation that everything is working correctly.

Download the flybook-gtm-container.json here