Skip to main content
Cloudbeds → SegmentIntegration guide

Connecting Cloudbeds to Segment

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. Segment is a customer data platform rather than an ad network, so sending to it is not about matching a conversion — it is about putting one clean event where every other destination can read it. The join between them succeeds or fails on one thing: whether the userId and anonymousId reaches the Cloudbeds reservation before the conversion happens, because Segment can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Cloudbeds through Segment: one reservation event for every tool

Make Cloudbeds a server-side Segment source: the reservation webhook sends Order Completed with the reservation ID as order_id and stay value as revenue. Pass the analytics.js anonymousId into the booking engine, and set messageId from reservation ID plus status. Add channel and consent properties so OTA bookings and opted-out guests stay away from ad platforms.

Segment is worth it for a hotel group sending reservations to several places at once: an ad platform or two, an email tool, a warehouse. For a single property sending to Google and Meta, direct integrations are simpler. If you go through Segment, Cloudbeds becomes a server-side source: the reservation webhook hits your endpoint, which sends an Order Completed event with the reservation ID as order_id, the stay value as revenue, and room types as products.

Identity is the hard part. The Segment anonymousId set by analytics.js on your site does not exist inside the booking engine, so pass it in as a parameter, store it on the reservation, and send it with the track call so the booking joins the session that produced it. Set messageId from the reservation ID plus status so a webhook retry does not fan out a duplicate to every connected destination.

Two properties make this pair safe. A channel property separates direct from OTA reservations, so destination filters, if your Segment plan includes them, can keep OTA bookings away from ad platforms that would otherwise learn from conversions they never drove. A consent property carries the opt-out state the guest set on your website, so ad destinations can be suppressed for guests who opted out of sale or sharing under CCPA.

Cloudbeds → Segment · what breaks

Why this join usually fails — Cloudbeds → Segment

  1. 01

    The userId and anonymousId 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

    One bad event multiplied across every destination

    Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.

  4. 04

    Nothing reconciles afterwards

    Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.

Cloudbeds → Segment · the fix

What working looks like — Cloudbeds → Segment

  • The userId and anonymousId on every reservation

  • Conversions arriving in Segment

    Events land in Segment and forward to every connected destination, warehouse included, on one shared definition.

  • Reconciled against the source

Cloudbeds → Segment · architecture

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

    Segment needs a click to match

    Segment needs a consistent identity model — the same userId everywhere, an alias when an anonymous visitor becomes known, and event names that follow one spec. Feeding it inconsistent identities pushes the mess to every connected destination at once.

  3. 3

    The identifier is the bridge

    The userId and anonymousId, 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

    Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.

Cloudbeds → Segment · normal or broken

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

Normal, not a fault

  • The userId and anonymousId present on the reservation

  • Sent from the Cloudbeds reservation webhook

  • Deduplicated correctly

    Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.

  • Reconciles with the source

Actually broken

  • The userId and anonymousId 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

    Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.

  • Nobody has reconciled it

Cloudbeds → Segment · diagnose

Diagnostic order — Cloudbeds → Segment

  1. 01

    Count reservations carrying the userId and anonymousId

  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 identity resolution before checking anything downstream

    If anonymousId is never aliased to userId, every destination sees two people where there is one, and no downstream fix helps.

  5. 05

    Read the match rate, not the success message

    Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.

Cloudbeds → Segment · prove

How it gets proven — Cloudbeds → Segment

Source of truth

Cloudbeds reservations by stay date, split by source channel.

  • The userId and anonymousId confirmed present on a live reservation.
  • An anonymous session confirmed aliased to a known user, with the event visible in at least one downstream destination.
  • Direct reservations reconciled per reservation, with OTA volume reported separately and cancellations reversed.

Cloudbeds → Segment · free audit

What we check in the free audit

  • Count reservations carrying the userId and anonymousId
  • Follow one real conversion end to end
  • Split reservations by source channel before anything else
  • Check identity resolution before checking anything downstream
  • 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 → Segment · when not to buy

When you don't need this — Cloudbeds → Segment

  • Measure identifier coverage yourself first — pull your last hundred reservations and count how many carry the userId and anonymousId.
  • 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 send to one or two destinations, Segment is infrastructure you do not need — direct integrations are simpler and cheaper. It earns its place at genuine fan-out.

Cloudbeds → Segment · what we deliver

What gets built — Cloudbeds → Segment

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

    Server-side track and identify calls with a stable messageId, consistent userId, and the click identifier carried as a trait or property.

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

Check the Cloudbeds marketplace and Segment's catalog. If there is none, send reservations from the Cloudbeds webhook through your own endpoint to Segment's HTTP tracking API.

Free · 30 min

Get Cloudbeds and Segment joined properly

Free30 minutesNo obligation