Tracking direct bookings in GA4: a hotel booking engine guide
Most hotel websites hand guests over to a booking engine on a different domain. If analytics is not set up for that hand-over, Google Analytics loses the trail and your direct bookings look as if they came from nowhere. Here is how to fix it.
By the Xuru Technologies team · 11 November 2026
Key takeaways
- If your booking engine runs on another domain, GA4 needs cross-domain measurement to keep each guest's visit as one journey.
- Both your website and the booking engine must use the same GA4 tag ID from the same web data stream.
- Send a purchase event with a transaction ID, value and currency when a booking completes.
- Test the full path after any change to the website or the booking engine, because redirects and scripts can quietly break tracking.
Why hotel booking data goes missing
A typical guest journey looks like this: they find your hotel on Google, Instagram or a newsletter, browse rooms on your website, click "Book now" and land on the booking engine. That last step often moves them to a different domain run by your booking provider.
Without extra set-up, Google Analytics 4 treats that move as a new visit. The booking then appears to come from your own website as a "referral", and the real source, such as an email campaign or a Google search, gets no credit. You end up spending on marketing without knowing which channels fill rooms.
The fix has two parts: keep the visitor's identity across both domains, and record the completed booking as a proper conversion.
Step 1: Set up cross-domain measurement
Google's help article on setting up cross-domain measurement in GA4 explains the process. In short:
- In GA4, go to Admin, then Data collection and modification, then Data streams. Open your web stream and choose Configure tag settings, then Configure your domains.
- Add your website domain and the booking engine domain. GA4 may suggest domains it has already seen with your tag.
- Make sure the booking engine pages carry the same GA4 tag ID (the "G-" ID) from the same web data stream as your website. Google states this is required.
- You need Editor access or above on the Analytics account to change these settings.
Once this is on, GA4 adds a short _gl parameter to links between the listed domains. That parameter carries the visitor's identifiers across, so the session continues on the booking engine.
Your booking provider controls its own pages, so ask them how to add your GA4 tag. Many hotel booking engines have a field for a GA4 measurement ID or a Google Tag Manager container. If yours only supports an older setup or an embedded frame, ask the provider for its current GA4 guidance in writing.
Step 2: Record the booking as a purchase
Cross-domain measurement keeps the journey together. You still need a clear signal when a booking completes. GA4's recommended events reference describes the purchase event. The details that matter for hotels:
- transaction_id is required. Use the booking reference. Google notes it helps avoid duplicate purchase events, for example when a guest reloads the confirmation page.
- value and currency go together. If you send a value, you must send the currency too.
- items can describe what was booked, such as the room type and rate plan, which helps you compare room performance.
Then mark the purchase event as a key event in GA4, so it shows in your conversion reports and can be shared with Google Ads if you run campaigns.
Common problems and quick fixes
Google's article lists a few things that stop the _gl parameter from passing across. These are the ones we see most often on hotel sites:
| Symptom | Likely cause | What to check |
|---|---|---|
| Bookings credited to your own website as a referral | Cross-domain not set up, or the booking engine uses a different tag ID | Domains listed in GA4 and the same G- ID on both sites |
_gl missing after clicking "Book now" | A redirect strips query parameters | Link straight to the final booking engine URL |
Date picker opens the engine but no _gl | Navigation triggered by script, not a user click | Ask your developer to use a real link or the manual linker method |
| Booking counts higher than in your PMS | Purchase event fires more than once | Send transaction_id on every purchase event |
| Revenue shows but in the wrong currency | Currency missing or hard-coded | Pass the currency the guest actually paid in |
If guests are dropping out before they pay, our guide to hotel booking abandonment covers the reasons and fixes. Good tracking is what lets you see where that happens.
Consent and privacy
This is general information, not legal advice. If you welcome guests from the UK or Europe, analytics cookies usually need consent before they load. Your consent banner should work on both your website and the booking engine, and your privacy notice should say which provider runs the booking pages. Expect some gaps in the data where guests decline cookies. That is normal and is better than collecting data you are not allowed to.
What to ask when choosing a booking engine
If you are comparing providers, tracking support deserves a place on your list. Ask:
- Can we add our own GA4 tag or Google Tag Manager container to the booking pages?
- Does the engine send a purchase event with the booking reference, value and currency?
- Does it support cross-domain measurement without stripping URL parameters?
- How does it handle cookie consent for European and UK guests?
- Who do we contact when tracking breaks after an update?
Our post on how to choose a hotel booking engine covers the other questions to ask, from rate plans to payments.
Hotel GA4 tracking checklist
- Booking engine domain added under Configure your domains in GA4.
- Same G- tag ID on the website and the booking engine.
_glparameter visible in the URL after clicking "Book now".- Purchase event with transaction_id, value and currency on the confirmation step.
- Purchase marked as a key event.
- Consent banner working on both domains.
- A test booking checked in GA4's real-time or DebugView reports after every change.
Want a quick look at how your site performs before you dig into analytics? Run an instant website check.
Frequently asked questions
Why does my own website show as the top source of bookings?
That usually means GA4 starts a new session when the guest reaches the booking engine. Cross-domain measurement, with the same tag ID on both domains, keeps the original source attached to the booking.
Do I need Google Tag Manager for this?
No. You can set up cross-domain measurement in the GA4 admin screens. Tag Manager helps if you want more control over events, but the booking engine must still allow your tag on its pages.
Will GA4 match the bookings in my property management system exactly?
Not exactly. Consent choices, ad blockers and cancellations all cause differences. Use GA4 to compare channels and trends, and your PMS for the final booking count.
How do I test that tracking works?
Click through from your website to the booking engine and check the _gl parameter appears in the address bar. Then make a test booking and confirm the purchase event in GA4's real-time or DebugView reports.
Sources: Google Analytics Help, set up cross-domain measurement; Google for Developers, GA4 recommended events reference. This article is general information, not legal advice.
Tell us about your hotel. Get a clear, written quote.
Share your brief or your current website. We reply with questions or a written proposal, or ask Xuru AI a question right now.
Websites, AI automation, digital marketing and payments for growing businesses worldwide.