To set up GA4 for a hotel, create one property with a web data stream, put the same Google tag on your website and your booking engine, tell GA4 that both domains belong together, mark your booking events as key events, and then make a test booking to see whether the revenue shows up. The first three steps take an afternoon. The test booking is the step that decides whether you can trust the numbers afterward.
This guide is written for independent hotel owners and general managers, short-term rental operators and tour or activity operators in the United States. You do not need a developer for most of it. You do need access to your website, your booking engine settings and a Google account.
TL;DR
- Create one GA4 property with one web data stream, and use its Measurement ID everywhere, including inside your booking engine.
- The most common failure in hospitality is the handoff to an off-site booking engine. Without cross-domain setup, bookings look like they came from your own website as a referral.
- Mark begin_checkout and purchase, plus inquiry and call events, as key events, and send the booking reference and value with every purchase.
- Consent banners cost you data. One US hotel’s GA4 showed 27% less direct revenue than its property management system, so plan for a gap and check it monthly.
- Do not trust any report until a real test booking appears in GA4 with the right source and value.
Table of Contents
- What GA4 needs to answer for a hotel
- Before you start
- Step 1: create the GA4 property
- Step 2: install the Google tag on your website
- Step 3: connect your booking engine
- Step 4: track the events that matter
- Step 5: set up cookie consent
- Step 6: test one booking before you trust anything
- Step 7: tag your campaign links
- Expect a gap, then measure it
- Notes for short-term rentals and tour operators
- Where to go next
- FAQ
- Sources
What GA4 needs to answer for a hotel
Google Analytics 4 is Google’s free analytics tool. It records what visitors do on your site as events: a page view, a click, a started checkout, a completed booking. For a lodging business, the useful questions are narrow:
- Which channels send visitors who actually book: Google search, your Google Business Profile, Meta ads, email, or AI assistants?
- Where do visitors drop out between your rates page and the confirmation page?
- How much revenue can you tie to each channel?
GA4 can answer these, but only if the booking happens inside the tracking. Most independent properties send guests to a separate booking engine on another domain, and that is where tracking usually breaks. Most of this guide is about that handoff.
Before you start
Gather these first. It saves a lot of back and forth.
- Admin access to your website. You need to edit the site header, or have a plugin or tag manager that does it.
- The name of your booking engine and its settings page. Look for a field called Google Analytics, GA4 or Measurement ID.
- Your booking engine’s domain. It might be something like a subdomain of the vendor, or a subdomain of your own site.
- Your cookie banner setup. Know whether you have one, and whether it appears on both your site and the booking engine.
- Access to your reservation or property management system, so you can compare totals later.
If you also run short-term rentals, find out where bookings are made. Reservations on Airbnb or Vrbo stay on those platforms. GA4 only sees bookings made on your own direct booking site.
Step 1: create the GA4 property
Sign in at analytics.google.com. Per Google’s setup instructions, go to Admin, choose Create Property, then enter a property name, the reporting time zone and the currency. Pick an industry category and a business size, then add a Web data stream with your primary website URL.
Two choices matter here:
- Time zone and currency. Set these to the property’s local time and U.S. dollars. They are hard to untangle later, because they affect how daily revenue lines up with your reservation system.
- One property for the whole business. If you run three inns, you can still keep one property and separate them by hostname or page path, or create one property each if each has its own site and its own owner. Do not create a new property every time someone redoes the website. That splits your history.
When the stream is created, GA4 shows a Measurement ID that starts with G-. Copy it. You will use it twice: on your website and in your booking engine.
Step 2: install the Google tag on your website
The Google tag is a small snippet of code that sends your visitors’ activity to GA4. Google says to install it immediately after the opening head tag on every page. On a site builder or WordPress, you usually paste the Measurement ID into a setting or plugin instead of editing code.
You have two ways to do this.
Direct install. Simple, with fewer moving parts. Good if you only need GA4 and nothing else.
Google Tag Manager. A container that holds all your tags in one place. In Tag Manager you create a Google Analytics tag, enter your Measurement ID as the Tag ID, and use the Preview button, which opens Tag Assistant so you can confirm the tag fires before you publish. Choose this if you plan to add the Meta Pixel, Google Ads conversion tags or consent controls, since they all end up in one container. Our guide to the Meta Pixel for hotels shows how those tags sit next to GA4.
Pick one method and stay with it. Running a direct install and a Tag Manager install together double-counts every visit.
After installing, open your site in one browser window and the Realtime report in another. Google notes that data can take up to 30 minutes to arrive, and the Realtime report is the quickest way to verify that traffic is registering.
Step 3: connect your booking engine
This is the step that most guides skip and the one that most often goes wrong.
When a guest clicks Book Now and lands on a booking engine at a different domain, GA4 treats the move as the visitor leaving your site. If the engine does not carry the same tracking, the guest becomes a new user from a new session, and the booking is credited to a referral from your own website rather than to the Google search or ad that brought them in. Your best channels then look worthless, and your own website looks like your best source.
There are two fixes, and you need both.
Give the engine your Measurement ID. Most booking engines have a settings field for this. Paste the same G- ID from your web data stream, not a new one. Shore’s documentation, for example, says the Measurement ID must be adjusted for cross-domain tracking between the hotel’s domain and the booking engine’s domain, and recommends verifying with a full test booking in Tag Manager Preview before going live. Other engines have similar settings pages, and your vendor’s support team can tell you where yours is.
Configure your domains in GA4. In Admin, open your web data stream, go to the tag settings and find the option to configure your domains. Add your website domain and the booking engine domain. This tells GA4 to pass the visitor’s identity from one site to the other so the session continues.
If your booking engine runs on a subdomain of your own site, such as book.yourhotel.com, the cross-domain problem is smaller, but you still need the same Measurement ID in both places.
Step 4: track the events that matter
GA4 collects some events automatically, such as page views and scrolls. For a hotel, those are not what pays the bills. You want events that follow the guest toward a booking.
Booking engines that support GA4 usually send a standard set of ecommerce events. Bookinglayer’s help center is one example: it documents view_item, add_to_cart, begin_checkout and purchase events, with the order reference, total value and currency attached to the purchase. Your engine’s list may differ, but the useful minimum is the same:
| Event | What it tells you | Where it fires |
|---|---|---|
| begin_checkout | A guest started a booking | Booking engine |
| purchase | A booking was completed, with value and currency | Booking engine confirmation |
| generate_lead | An inquiry, group or event form was sent | Your website |
| Phone and email clicks | A guest chose to call or write | Your website |
Then mark the important ones as key events (GA4’s term for conversions) in the Admin area. Mark purchase, begin_checkout if you want to watch the funnel, and your inquiry and call events. Only mark what you would act on. A key event list with 15 items is noise.
Pick the right moment for the purchase event
Some engines let you choose when the purchase event fires. Bookinglayer, for instance, offers a setting where the event can fire when the booking process completes, even without payment, or only after a successful payment. If you take pay-at-property bookings or deposits, decide which one matches the revenue you want to see, and keep it the same going forward.
Send a transaction ID
Use the reservation or confirmation number as the transaction ID. It prevents duplicate counts when a guest refreshes the confirmation page, and it lets you match each GA4 purchase against a line in your reservation system. Our guide to hotel conversion tracking walks through this reconciliation in more detail.
Step 5: set up cookie consent
Consent is not only a European issue anymore. Several U.S. states have privacy laws, and many properties now show a cookie banner. When a visitor declines, GA4 loses that visit.
Google’s Consent Mode lets your tags adjust to each visitor’s choice. In its advanced setup, it sends limited, cookieless signals when someone declines, and Google uses them for modeling. Hospitality Net’s analysis says Consent Mode does not prevent data loss for decliners but enables modeling, and cites studies showing Advanced Consent Mode recovers about 65 to 70% of ad-click-to-conversion journeys.
Three practical rules follow:
- Put the banner on both your website and the booking engine. Shore’s documentation says a Consent Mode v2-compatible banner is needed on both for GA4 and Google Ads to work at full strength.
- Make sure the choice a guest makes on your site carries over to the engine, so they are not asked twice and not counted as two people.
- Have your legal counsel confirm which rules apply to your state and your guests.
Our consent mode guide for independent hotels breaks this into three setup jobs.
Step 6: test one booking before you trust anything
This is the step that separates a working setup from a decorative one. Make a real, low-cost test booking, or use your engine’s test mode if it has one, and walk through the following.
- Open your site in a clean browser window, accept cookies, and arrive from a link with UTM tags (see step 7).
- Open the Realtime report, and if you use Tag Manager, Preview mode.
- Click Book Now and move through the booking engine to the confirmation page.
- Check that the same session continues across the domain change. It should not start a new session or show your own site as the referrer.
- Confirm that begin_checkout and purchase appear, with the right value, currency and transaction ID.
- Look at the report the next day to see how the booking was attributed to its source.
If the booking shows up as direct or as a referral from your own website, cross-domain measurement is not working. Go back to step 3. Our walk-through of how to test one booking before trusting revenue covers the common failure patterns.
Step 7: tag your campaign links
GA4 knows where a visitor came from only if the link says so. Add UTM parameters to links you control: email newsletters, social posts, Meta ads, the website link on your Google Business Profile and partner listings. Use consistent lowercase names for source, medium and campaign, or GA4 will treat “Facebook” and “facebook” as separate sources. Our UTM tagging guide for hotels gives a naming scheme you can copy. For turning those sources into decisions, see hotel marketing attribution.
Expect a gap, then measure it
No GA4 setup will match your reservation system to the dollar. Hospitality Net reported a U.S. hotel whose GA4 showed $230,924 in direct revenue for November 2025 while its property management system reported $317,457. That is an $86,533 gap, or 27% of actual revenue, attributed to consent declines and a disconnect at the booking engine domain.
You do not need to chase a perfect match. You need a stable ratio. Once a month:
- Export direct website bookings and revenue from your reservation system.
- Pull GA4 purchases and revenue for the same dates.
- Divide one by the other and write the ratio down.
- If the ratio jumps, something broke: a tag came off after a site update, the engine changed its template, or the banner changed its behavior.
The point of the ratio is to catch breakage early. Use GA4 for trends and channel comparisons, and use your reservation system as the final count of revenue.
Notes for short-term rentals and tour operators
Short-term rentals. If you run a direct booking site on a property management or booking tool, the same logic applies: one property, one Measurement ID, cross-domain setup if checkout happens on another domain, and a transaction ID on every purchase. Bookings from Airbnb, Vrbo and Booking.com do not appear in GA4, so your GA4 revenue will always represent only your direct channel.
Tour and activity operators. Your booking widget often runs inside an iframe or on the reservation vendor’s domain. Check whether the vendor supports GA4 and your Measurement ID, and test the whole flow, including a promo code and a date change, since each can break the purchase event.
Where to go next
Once your numbers are trustworthy, the next question is where guests are coming from now that many start in ChatGPT, Gemini or Google’s AI results. The free AI visibility course explains how to get your property named in those answers, and the workbook gives you exercises to work through at your own pace. A clean GA4 setup is what lets you see whether the work shows up as visits and bookings.
FAQ
Is GA4 free for a hotel?
Yes. The standard version of Google Analytics 4 is free, and a single hotel or rental business is very unlikely to need anything else. The costs that do come up are for a developer’s time, a consent management tool or a booking engine that charges for custom integrations.
How long until data appears in GA4?
Google says collection may take up to 30 minutes after installing the tag. The Realtime report is the fastest way to check. Standard reports can take longer to fill in, so wait a day before judging a test booking’s attribution.
Why does GA4 show fewer bookings than my reservation system?
Usually for two reasons: visitors who decline cookies, and a booking engine that is not connected to the same GA4 property. Fixing cross-domain measurement and consent setup narrows the gap, but a small difference is normal. Track the ratio monthly instead of aiming for an exact match.
Do I need Google Tag Manager?
Not for GA4 alone. If you also plan to run Meta or Google Ads tags or a consent banner, Tag Manager keeps everything in one place and gives you a Preview mode for testing. Choose one install method and avoid mixing the two.
Should I mark every event as a key event?
No. Mark the events that signal intent or revenue: purchase, begin_checkout, inquiries and calls. A short list keeps your reports readable and makes it clear what you are optimizing for.
Sources
- Google Analytics Help: set up Analytics for a website and/or app
- Tag Manager Help: set up Google Analytics in Tag Manager
- Hospitality Net: The 27% problem hiding inside America’s new cookie laws
- Shore help: set up GTM tracking for Shore bookings
- Bookinglayer help: connect the booking engine with Google Analytics (GA4)
Recommended
- GA4 for Hotels: Test One Booking Before Trusting Revenue
- Hotel conversion tracking: set it up and trust the numbers
- Hotel marketing attribution: a practical guide for independents
- Server-side tracking for hotels: what it fixes and how to set it up
StayStrategy Editorial articles are general information for hospitality operators and are produced with the help of AI. Platform policies, prices and local rules change, so confirm the details before you act on them.