Skip to main content
Cloudbeds → PostHogIntegration guide

Connecting Cloudbeds to PostHog

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. PostHog can be self-hosted, which changes the calculus entirely: the data stays on infrastructure you control, and so does the responsibility for everything that goes wrong with it. The join between them succeeds or fails on one thing: whether the distinct_id reaches the Cloudbeds reservation before the conversion happens, because PostHog can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Cloudbeds to PostHog: joining your site funnel to the reservation

PostHog can't see inside the Cloudbeds booking engine, so close the funnel from the other end. Append the PostHog distinct_id to the booking link, confirm the reservation stores it, and capture a server-side reservation event from the webhook with that distinct_id, the reservation number as UUID basis, stay value and arrival date. Exclude OTA reservations, which have no sessions.

PostHog is useful to a property that wants to understand its own website: which pages lead to a booking attempt, where mobile visitors drop off, which offers get clicked. The limit is that the Cloudbeds booking engine is not your page. You can record everything up to the moment a visitor clicks Book Now; after that the steps happen on a Cloudbeds-hosted page you may not be able to instrument at all, and the funnel goes dark.

Close it from the other end. Append the PostHog distinct_id to the booking engine link, confirm it is stored on the reservation, and capture a reservation event server-side from the reservation webhook with that distinct_id, the reservation number as the event UUID basis, the stay value and the arrival date. Your funnel then runs from landing page to confirmed reservation, with the middle missing but the outcome attached to the right person.

Self-hosting is a fair choice for a hotel group that wants guest behavior kept on its own infrastructure, but someone has to own the instance. A disk that fills over a holiday weekend loses the busiest booking days. Do not send OTA reservations; they never visited your site and would show up as bookings by people with no sessions, which distorts every conversion rate in the project.

Cloudbeds → PostHog · what breaks

Why this join usually fails — Cloudbeds → PostHog

  1. 01

    The distinct_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

    Self-hosting the analytics and the outage together

    The advantage of owning the pipeline is that nothing blocks it. The cost is that when the ingestion instance fills its disk on a Saturday, the events are gone and nobody is paged. Hosted tools fail differently and more visibly.

  4. 04

    Nothing reconciles afterwards

    PostHog shows events in the activity view within moments. On a self-hosted instance, check the ingestion lag as well — events that are queued are not events that are lost, and the two need different responses.

Cloudbeds → PostHog · the fix

What working looks like — Cloudbeds → PostHog

  • The distinct_id on every reservation

  • Conversions arriving in PostHog

    The event lands on the person profile and becomes available in insights, funnels and session replay.

  • Reconciled against the source

Cloudbeds → PostHog · architecture

How Cloudbeds and PostHog 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

    PostHog needs a click to match

    PostHog needs a distinct_id, an event name and its properties. Self-hosted instances additionally need the ingestion endpoint reachable and the project API key correct, which is a class of failure hosted tools do not have.

  3. 3

    The identifier is the bridge

    The distinct_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

    PostHog deduplicates on the event UUID where supplied. Without one, a retried batch duplicates, and on a self-hosted instance there is no vendor support desk to notice it for you.

Cloudbeds → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the reservation

  • Sent from the Cloudbeds reservation webhook

  • Deduplicated correctly

    PostHog deduplicates on the event UUID where supplied. Without one, a retried batch duplicates, and on a self-hosted instance there is no vendor support desk to notice it for you.

  • Reconciles with the source

Actually broken

  • The distinct_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 advantage of owning the pipeline is that nothing blocks it. The cost is that when the ingestion instance fills its disk on a Saturday, the events are gone and nobody is paged. Hosted tools fail differently and more visibly.

  • Nobody has reconciled it

Cloudbeds → PostHog · diagnose

Diagnostic order — Cloudbeds → PostHog

  1. 01

    Count reservations carrying the distinct_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 ingestion health and disk before debugging any missing event

    On self-hosted instances the answer is infrastructure far more often than it is instrumentation.

  5. 05

    Read the match rate, not the success message

    PostHog shows events in the activity view within moments. On a self-hosted instance, check the ingestion lag as well — events that are queued are not events that are lost, and the two need different responses.

Cloudbeds → PostHog · prove

How it gets proven — Cloudbeds → PostHog

Source of truth

Cloudbeds reservations by stay date, split by source channel.

  • The distinct_id confirmed present on a live reservation.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • Direct reservations reconciled per reservation, with OTA volume reported separately and cancellations reversed.

Cloudbeds → PostHog · free audit

What we check in the free audit

  • Count reservations carrying the distinct_id
  • Follow one real conversion end to end
  • Split reservations by source channel before anything else
  • Check ingestion health and disk before debugging any missing event
  • 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 → PostHog · when not to buy

When you don't need this — Cloudbeds → PostHog

  • Measure identifier coverage yourself first — pull your last hundred reservations and count how many carry the distinct_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.
  • If you have no reason to keep the data on your own infrastructure and no team to run it, the hosted product removes the only real downside of this one.

Cloudbeds → PostHog · what we deliver

What gets built — Cloudbeds → PostHog

  • 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 PostHog

    The PostHog capture API, posted server-side from your backend to your own instance or to PostHog Cloud.

  • 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 → PostHog questions, answered

Generally not, because the engine runs on a Cloudbeds-hosted page. Track your site up to the booking click and attach the reservation server-side with the same distinct_id.

Free · 30 min

Get Cloudbeds and PostHog joined properly

Free30 minutesNo obligation