Skip to main content
Bookinglayer → GA4Integration guide

Connecting Bookinglayer to GA4

Bookinglayer sells a stay bundled with an experience — a surf camp, a yoga retreat — which means the package price contains accommodation, instruction, food and equipment that all have different margins and different capacity limits. 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 Bookinglayer booking 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

Bookinglayer to GA4: deposits, balances and the hosted checkout

Read client_id and session_id before guests hop to Bookinglayer's hosted checkout and pass them into the booking. Send two Measurement Protocol purchases from the booking record, the deposit at booking and the balance when the stay completes, with distinct suffixed transaction_ids and separate room, lesson and add-on items. Send refunds against the deposit on cancellation.

GA4 is where a retreat operator checks which channel produced a guest, and the Bookinglayer-hosted checkout is where that answer usually breaks. When the guest moves from your site to the Bookinglayer booking page, the _ga cookie on your domain does not go with them, so a purchase tag on the confirmation page tends to start a new user or show up as a referral from the booking domain. Read client_id and session_id from the _ga cookies before the hop, pass them into the booking if your Bookinglayer form accepts a hidden field or URL parameter (check your form settings), and keep them on the guest record.

Then send two Measurement Protocol events from the booking record: a purchase for the deposit at the deposit amount, and a second purchase when the stay completes for the balance. Give them distinct transaction_id values, such as the booking reference with a deposit and a balance suffix, so the two payments never collide. List room, lessons and add-ons as separate items to see add-on revenue by source.

Two GA4 limits matter when deposit and arrival are months apart. Measurement Protocol only accepts timestamps a short way into the past (72 hours at the time of writing), so the balance event must be sent when the stay completes, not batched at month end. And an event sent months after the first visit joins the user but not the original session, so judge it in user-acquisition and attribution reports. Send a refund event against the deposit's transaction_id when a guest cancels.

Bookinglayer → GA4 · what breaks

Why this join usually fails — Bookinglayer → GA4

  1. 01

    The GA4 client_id never reaches Bookinglayer

    Retreat decisions run weeks to months, frequently start on Instagram and finish on a Bookinglayer-hosted checkout, and deposits are taken long before arrival.

  2. 02

    One package price hiding four different constraints

    A camp can be sold out on beds while instructors sit idle, or the reverse. A single booking count cannot show which resource is actually binding, so advertising keeps pushing the package that is already full.

  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.

Bookinglayer → GA4 · the fix

What working looks like — Bookinglayer → GA4

  • The GA4 client_id on every booking

  • 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

Bookinglayer → GA4 · architecture

How Bookinglayer and GA4 actually connect

  1. 1

    Bookinglayer holds the truth

    A package is not one product. Rooms are capacity-limited by beds, lessons by instructors, and add-ons carry the best margin — so two bookings at the same price can be quite different businesses.

  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 Bookinglayer booking.

  4. 4

    The event source decides reliability

    Send the deposit at its amount and the completed stay at full package value, as two separate events rather than one optimistic total.

  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.

Bookinglayer → GA4 · normal or broken

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

Normal, not a fault

  • The GA4 client_id present on the booking

  • Sent from the Bookinglayer booking record

  • 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

    Retreat decisions run weeks to months, frequently start on Instagram and finish on a Bookinglayer-hosted checkout, and deposits are taken long before arrival.

  • Sent from the browser

    A camp can be sold out on beds while instructors sit idle, or the reverse. A single booking count cannot show which resource is actually binding, so advertising keeps pushing the package that is already full.

  • 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

Bookinglayer → GA4 · diagnose

Diagnostic order — Bookinglayer → GA4

  1. 01

    Count bookings carrying the GA4 client_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Report occupancy separately for beds, lessons and equipment

    Whichever fills first is your real capacity limit, and it decides which package the advertising should be selling.

  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.

Bookinglayer → GA4 · prove

How it gets proven — Bookinglayer → GA4

Source of truth

Bookinglayer bookings by arrival date, with the package composition and any add-ons recorded.

  • The GA4 client_id confirmed present on a live booking.
  • Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
  • Completed stays reconciled at package value against imported conversions, with add-on revenue reported separately.

Bookinglayer → GA4 · free audit

What we check in the free audit

  • Count bookings carrying the GA4 client_id
  • Follow one real conversion end to end
  • Report occupancy separately for beds, lessons and equipment
  • Check whether server events carry a session and a source
  • Read the match rate, not the success message

Checked against

Bookinglayer bookings by arrival date, with the package composition and any add-ons recorded.

Get my free conversion tracking audit

Free30 minutesNo obligation

Bookinglayer → GA4 · when not to buy

When you don't need this — Bookinglayer → GA4

  • Measure identifier coverage yourself first — pull your last hundred bookings and count how many carry the GA4 client_id.
  • If you sell one fixed package with one capacity limit, this is a straightforward booking integration and the composition detail adds nothing.
  • 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.

Bookinglayer → GA4 · what we deliver

What gets built — Bookinglayer → GA4

  • Identifier capture into Bookinglayer

    Capture on your own domain, persist against the guest record, and carry it through the deposit-to-balance gap so the arrival months later still resolves.

  • Event source: the Bookinglayer booking record

    Send the deposit at its amount and the completed stay at full package value, as two separate events rather than one optimistic total.

  • 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 reverse. Retreat cancellation windows are long and the cancellation rate is material.

Written guarantee

95%+ tracking accuracy

Measured against Bookinglayer bookings by arrival date, with the package composition and any add-ons recorded.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Bookinglayer → GA4 questions, answered

Check your Bookinglayer settings for a tracking or tag manager field on the booking form. It can help with funnel steps, but the page still runs on a different domain, so send revenue from the booking record with the carried client_id rather than relying on that tag.

Free · 30 min

Get Bookinglayer and GA4 joined properly

Free30 minutesNo obligation