Skip to main content
Cloudbeds → GA4Integration guide

Connecting Cloudbeds to GA4

Cloudbeds is an all-in-one property management, channel manager and booking engine, which means it holds both the direct booking you want and the OTA booking you paid commission on. GA4 is where the business goes to understand what happened, which makes an unattributed conversion there expensive in decisions rather than in ad spend. The join between them succeeds or fails on one thing: whether the GA4 client_id reaches the Cloudbeds reservation before the conversion happens, because GA4 can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Cloudbeds to GA4: keeping the session across the booking engine

Add the Cloudbeds booking engine domain to GA4 cross-domain measurement and referral exclusions so _gl carries the client_id. Send purchase through Measurement Protocol from the reservation webhook with the reservation ID as transaction_id, stay value, currency, client_id and session_id, and don't also fire it on the confirmation page. Exclude OTA reservations and send refunds for canceled direct stays.

For GA4 the Cloudbeds problem is cross-domain. The guest browses your hotel site, then books on the Cloudbeds booking engine on a Cloudbeds domain or in an iframe, and GA4 starts a new session with a referral from your own site unless cross-domain measurement is set up. Add the booking engine's domain to GA4's cross-domain configuration so the _gl linker parameter carries the client_id across, and add it to the referral exclusion list. Check whether your booking engine version lets you install your own GA4 or GTM tag; if it does, use the same measurement ID as your main site.

For the server event, send purchase via Measurement Protocol from the reservation webhook with the reservation ID as transaction_id, total stay value, currency, and the client_id and session_id passed into the booking engine. Do not also fire purchase from the booking engine's confirmation page: GA4 does not deduplicate Measurement Protocol against the browser.

Two Cloudbeds-specific reporting decisions matter. Exclude OTA reservations from the purchase event entirely, because they never had a GA4 session and would all land under (direct)/(none). And send a refund event with the same transaction_id when a direct reservation is canceled, so GA4 revenue per channel stays close to what the property will actually collect.

Cloudbeds → GA4 · what breaks

Why this join usually fails — Cloudbeds → GA4

  1. 01

    The GA4 client_id never reaches Cloudbeds

    The booking engine runs on a Cloudbeds-hosted page or an iframe on your site, so first-party cookies do not cross into it. OTA reservations arrive through the channel manager with no click identifier at all and never will.

  2. 02

    OTA bookings blended with direct

    The same room night earns materially less through an OTA after commission, and OTA reservations carry no click identifier. Summed together, direct acquisition looks worse than it is and OTA looks free.

  3. 03

    Everything lands under (direct)/(none)

    The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.

  4. 04

    Nothing reconciles afterwards

    GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.

Cloudbeds → GA4 · the fix

What working looks like — Cloudbeds → GA4

  • The GA4 client_id on every reservation

  • Conversions arriving in GA4

    Conversions appear in GA4 attributed to the original session's source and medium, so acquisition reporting reflects what actually drove revenue.

  • Reconciled against the source

Cloudbeds → GA4 · architecture

How Cloudbeds and GA4 actually connect

  1. 1

    Cloudbeds holds the truth

    The channel split is the whole commercial story in lodging. A direct booking and a Booking.com booking for the same room earn very differently, and a report that sums them tells you nothing about whether your marketing worked.

  2. 2

    GA4 needs a click to match

    GA4 needs the client_id to attach a server event to the user and session that produced the click. Without it there is no attribution to inherit and the event is orphaned.

  3. 3

    The identifier is the bridge

    The GA4 client_id, captured at the visit and carried into the Cloudbeds reservation.

  4. 4

    The event source decides reliability

    Send confirmed direct reservations with the total stay value, not the nightly rate. Fire on booking rather than check-in, since the gap can be months.

  5. 5

    Deduplication at the destination

    GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.

Cloudbeds → GA4 · normal or broken

Working vs. broken, side by side — Cloudbeds → GA4

Normal, not a fault

  • The GA4 client_id present on the reservation

  • Sent from the Cloudbeds reservation webhook

  • Deduplicated correctly

    GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.

  • Reconciles with the source

Actually broken

  • The GA4 client_id missing on most records

    The booking engine runs on a Cloudbeds-hosted page or an iframe on your site, so first-party cookies do not cross into it. OTA reservations arrive through the channel manager with no click identifier at all and never will.

  • Sent from the browser

    The same room night earns materially less through an OTA after commission, and OTA reservations carry no click identifier. Summed together, direct acquisition looks worse than it is and OTA looks free.

  • Counted twice, or not at all

    The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.

  • Nobody has reconciled it

Cloudbeds → GA4 · diagnose

Diagnostic order — Cloudbeds → GA4

  1. 01

    Count reservations carrying the GA4 client_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Split reservations by source channel before anything else

    Direct versus OTA. Every subsequent number depends on that split and it is usually the first thing nobody has done.

  4. 04

    Check whether server events carry a session and a source

    In GA4 Realtime or DebugView, find the event and look at its session and traffic source. A brand-new user with no source on every server event is the missing-client_id signature.

  5. 05

    Read the match rate, not the success message

    GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.

Cloudbeds → GA4 · prove

How it gets proven — Cloudbeds → GA4

Source of truth

Cloudbeds reservations by stay date, split by source channel.

  • The GA4 client_id confirmed present on a live reservation.
  • Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
  • Direct reservations reconciled per reservation, with OTA volume reported separately and cancellations reversed.

Cloudbeds → GA4 · free audit

What we check in the free audit

  • Count reservations carrying the GA4 client_id
  • Follow one real conversion end to end
  • Split reservations by source channel before anything else
  • Check whether server events carry a session and a source
  • Read the match rate, not the success message

Checked against

Cloudbeds reservations by stay date, split by source channel.

Get my free conversion tracking audit

Free30 minutesNo obligation

Cloudbeds → GA4 · when not to buy

When you don't need this — Cloudbeds → GA4

  • Measure identifier coverage yourself first — pull your last hundred reservations and count how many carry the GA4 client_id.
  • If nearly all your occupancy comes through OTAs, the commercial question is your channel mix rather than your ad tracking, and we would say so.
  • GA4 is reporting, not bidding. If your problem is ad platform optimization, fix the ad platform destination first — GA4 will not change what any campaign does.

Cloudbeds → GA4 · what we deliver

What gets built — Cloudbeds → GA4

  • Identifier capture into Cloudbeds

    Pass the click identifier into the booking engine through its supported parameters so it lands on the reservation, and segment OTA-sourced reservations out before quoting any coverage figure.

  • Event source: the Cloudbeds reservation webhook

    Send confirmed direct reservations with the total stay value, not the nightly rate. Fire on booking rather than check-in, since the gap can be months.

  • Dispatch to GA4

    Measurement Protocol events with the client_id, session_id and the correct measurement ID and API secret, sent server-side.

  • Reversals where they exist

    Cancellations are frequent in lodging and Cloudbeds records them. Without the reversal, reported direct revenue only ever climbs.

Written guarantee

95%+ tracking accuracy

Measured against Cloudbeds reservations by stay date, split by source channel.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Cloudbeds → GA4 questions, answered

The booking engine runs on a different domain, so GA4 starts a new session at the handoff. Configure cross-domain measurement for the booking engine domain and exclude it as a referral.

Free · 30 min

Get Cloudbeds and GA4 joined properly

Free30 minutesNo obligation