Google Tag Manager

How to Set Up GA4 Cross-Domain Tracking

To correctly track reservations across your website and the SabeeApp Booking Engine, you must configure cross-domain tracking in both GA4 and Google Tag Manager (GTM). This ensures that users moving between domains (e.g., yourhotel.com → ibe.sabeeapp.com) keep the same session and that marketing attribution is preserved.


✅ 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 both your website and SabeeApp Marketplace Connection with GA4.


✅ Step 2 — Install the GA4 Tag on Both Domains

A. On Your Own Website

Ask your webmaster or developer to add the following code before the closing </head> tag:

<!-- GA4 -->
<script async src="<https://www.googletagmanager.com/gtag/js?id=G-XXXXXXX>"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XXXXXXX');
</script>

Replace G-XXXXXXX with your GA4 Measurement ID.

B. In SabeeApp for the Booking Engine

  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.

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


✅ Step 3 — Configure Cross-Domain Tracking in GA4

  1. In Google Analytics, go to Admin → Data Streams → Web stream.
  2. Scroll to Configure tag settings → Configure your domains → Add condition.
  3. Add the two domains:
    Screenshot 2025-12-03 at 11.49.01
4. Save your settings.

✅ Step 4 — Prevent Referral Breaks in GA4

  1. Inside the same Web stream settings, scroll to List unwanted referrals.
  2. Add:
ibe.sabeeapp.com

3. Save.

This ensures the booking engine domain does not appear as a referral in your GA4 reports.


✅ Step 5 — Configure Cross-Domain Tracking in Google Tag Manager

  1. Log in to Google Tag Manager.
  2. Go to Tags → New → Tag Type → GA4 Configuration.
  3. Enter your GA4 Measurement ID.
  4. Scroll to Fields to Set → Add Row and enter:
    Screenshot 2025-12-03 at 11.49.21

These settings preserve the user’s session across both domains.

5. Set the trigger to All Pages.
6. Save.

✅ Step 6 — Add a Conversion Linker Tag in GTM

  1. Go to Tags → New → Tag Type → Conversion Linker.
  2. Set the trigger to All Pages.
  3. Save.

The Conversion Linker ensures that reservations and other conversions are attributed correctly.


🎉 Cross-Domain Tracking Is Now Fully Set Up

After completing these steps:

  • Users moving between your website and SabeeApp Booking Engine remain in the same GA4 session.
  • Marketing attribution is preserved across domains.
  • Reservation conversions are correctly tracked under the original traffic source (Google Ads, Meta Ads, Organic Search, etc.).

Please note, you do not need to connect Google Tag Manager in SabeeApp for the cross-domain tracking to work. To find out more about this check out this help article.