Skip to content
English
  • There are no suggestions because the search field is empty.

How to Set Up GA4 and GTM Cross-Domain Tracking

✅ Step 1 — Get Your GA4 Measurement ID

  1. Log in to Google Analytics.
  2. Click Admin (bottom left).
  3. Under Property, click Data Streams.
  4. Select your Web data stream.
  5. Copy the Measurement ID (format: G-XXXXXXXX).

You will need this ID for SabeeApp Marketplace Connection with GA4.


✅ Step 2 — Add Your GA4 ID in SabeeApp

  1. Go to Settings → Marketplace → Google Analytics in SabeeApp.
  2. Click on Initiate connection.
  3. Paste your GA4 Measurement ID (G-XXXXXXX).
  4. Click Save. The system will validate the ID and confirm the connection.

✅ When GA4 or GTM is enabled in SabeeApp, the following data is automatically included in the data layer for bookings:

  • ecomm_prodid — Reservation Code for individual bookings or Group ID for group bookings
  • ecomm_totalvalue — Total amount payable (room price, taxes, city tax, extras)
  • ecomm_pagetype — Always set to product

This data allows accurate conversion tracking for reservations.

image-png-Dec-02-2025-02-02-52-5032-PM


✅ Step 3 — Configure Cross-Domain Tracking in GA4

  1. In GA4, go to Admin → Data Streams → Web stream.
  2. Scroll to Configure tag settings → Configure your domains → Add condition.
  3. Add the two domains:

This allows GA4 to maintain the same session between domains.


✅ Step 4 — Install GTM on Your Website (NOT GA4 code)

To avoid conflicts, your website must load only the GTM container, not GA4 directly.

✔ Install on your website:

  • GTM container snippet (GTM-XXXXX)

❌ Do NOT install:

  • Any <script> using gtag/js?id=G-XXXX
  • Any manually added GA4 tracking code
  • Any GA4 plugin or CMS integration that injects gtag.js

Removing hard-coded GA4 ensures cross-domain linking works correctly.


✅ Step 5 — Set Cross-Domain Linking in GTM

In Google Tag Manager:

  1. Go to Tags → New → GA4 Configuration
  2. Paste your Measurement ID
  3. Click Fields to Set → Add Row

Add:

Field Name Value
allow_google_signals true
link_domain yourwebsite.com, ibe.sabeeapp.com
  1. Trigger: All Pages
  2. Save & Publish

✅ Step 6 — Add a Conversion Linker Tag (Required)

  1. GTM → Tags → New → Conversion Linker
  2. Trigger: All Pages
  3. Save

This ensures proper first-party cookie attribution.


✅ Step 7 - Create the Booking Event in GA4

Steps:

  1. Go to GA4 → Admin → Events
  2. Click Create Event
  3. Click Create
  4. Add a rule like this:
  • Event name: reservation_complete (or any name you prefer)

  • Matching conditions:

?p=  To get the link go to your SabeeApp Account - Distribution - Internet Booking Engine - Widgets - Link Only. Please make sure to copy the part of the Booking Engine link starting from "?p=" and the following 8 characters.

  1. Save it.

  2. Then go to Events → Manage Conversions and mark reservation _complete as a conversion.


✅ Step 8 — Prevent Referral Breaks in GA4

  1. GA4 → Data Stream → Configure Tag Settings → List Unwanted Referrals
  2. Add:
ibe.sabeeapp.com

  1. Save your settings.

This prevents the booking engine from appearing as a referral in GA4 reports, preserving the original traffic source.


✅ Step 9 — Test the Complete Flow

Use GA4 DebugView and:

Check for:

  • Continuous session
  • reservation_complete event
  • Booking parameters