Skip to main content
RoomRaccoon → PostHogIntegration guide

Connecting RoomRaccoon to PostHog

RoomRaccoon leans on automated upselling after the booking is made, so the value of a reservation at confirmation is routinely not the value at checkout. 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 RoomRaccoon 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

RoomRaccoon bookings in PostHog on the same distinct_id

PostHog's browser library does not follow guests onto RoomRaccoon's booking-engine domain. Store the distinct_id server-side at click-through, then capture a backend booking event with that distinct_id, reservation number, arrival date, nights and room value. Capture a second event for the settled folio at checkout, using UUIDs derived from the reservation number to prevent duplicates.

PostHog can show a hotel which pages and offers lead to a booking, but RoomRaccoon's booking engine sits on another domain, and PostHog's browser library on your site does not follow the guest there. Whether you can install PostHog on the booking engine pages is a question for RoomRaccoon; assume you cannot until they confirm it.

The workable route is to store the PostHog distinct_id on your server when the guest clicks through to book, carry a reference across to the reservation, and capture a booking event from your backend when RoomRaccoon reports the reservation, with that same distinct_id, the reservation number, arrival date, nights and room value. At checkout, capture a second event for the settled folio with its upsell lines, again on the same distinct_id. Use a UUID derived from the reservation number so retries do not duplicate.

What you then get is a funnel that most hotels never see: which visitors searched dates but did not book, which booked and later bought an upgrade from a pre-arrival email, and which room pages lead to the highest folio. If the guest identifies later, for example by logging into a loyalty page, check that PostHog merges the anonymous person with the identified one so the folio event does not end up on an orphaned profile.

RoomRaccoon → PostHog · what breaks

Why this join usually fails — RoomRaccoon → PostHog

  1. 01

    The distinct_id never reaches RoomRaccoon

    The booking engine sits on a RoomRaccoon domain, and the upsell emails that generate the extra revenue arrive days later on another device.

  2. 02

    Upsell revenue invisible to the ad account

    If you report at booking, every campaign looks worse than it is by whatever your upsell attach rate happens to be — and the campaigns that bring the guests most likely to upgrade are penalized hardest.

  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.

RoomRaccoon → PostHog · the fix

What working looks like — RoomRaccoon → 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

RoomRaccoon → PostHog · architecture

How RoomRaccoon and PostHog actually connect

  1. 1

    RoomRaccoon holds the truth

    The folio includes the upsells — early check-in, room upgrade, breakfast, parking — that the platform is designed to sell after the guest has already committed. On some properties that is a fifth of the revenue.

  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 RoomRaccoon reservation.

  4. 4

    The event source decides reliability

    Send the settled folio, not the reservation. Sending at booking systematically undercounts exactly the revenue the platform exists to create.

  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.

RoomRaccoon → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the reservation

  • Sent from the RoomRaccoon folio at checkout

  • 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 sits on a RoomRaccoon domain, and the upsell emails that generate the extra revenue arrive days later on another device.

  • Sent from the browser

    If you report at booking, every campaign looks worse than it is by whatever your upsell attach rate happens to be — and the campaigns that bring the guests most likely to upgrade are penalized hardest.

  • 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

RoomRaccoon → PostHog · diagnose

Diagnostic order — RoomRaccoon → PostHog

  1. 01

    Count reservations carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare booking value against folio value

    The gap is your upsell revenue and it is the amount your current reporting is throwing away.

  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.

RoomRaccoon → PostHog · prove

How it gets proven — RoomRaccoon → PostHog

Source of truth

RoomRaccoon folios at checkout, not reservations at booking.

  • 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.
  • Checkout folios reconciled against imported conversions across a fully departed month.

RoomRaccoon → PostHog · free audit

What we check in the free audit

  • Count reservations carrying the distinct_id
  • Follow one real conversion end to end
  • Compare booking value against folio value
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

RoomRaccoon folios at checkout, not reservations at booking.

Get my free conversion tracking audit

Free30 minutesNo obligation

RoomRaccoon → PostHog · when not to buy

When you don't need this — RoomRaccoon → PostHog

  • Measure identifier coverage yourself first — pull your last hundred reservations and count how many carry the distinct_id.
  • If you do not upsell, reporting at booking is fine and simpler. This page is about the case where you do.
  • 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.

RoomRaccoon → PostHog · what we deliver

What gets built — RoomRaccoon → PostHog

  • Identifier capture into RoomRaccoon

    Capture the identifier before the booking engine and persist it against the reservation, so the folio total at checkout can still be traced to the original click.

  • Event source: the RoomRaccoon folio at checkout

    Send the settled folio, not the reservation. Sending at booking systematically undercounts exactly the revenue the platform exists to create.

  • 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 reverse; removed upsells reduce.

Written guarantee

95%+ tracking accuracy

Measured against RoomRaccoon folios at checkout, not reservations at booking.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

RoomRaccoon → PostHog questions, answered

Through server-side capture, yes: store the distinct_id before the guest leaves your site and send the reservation from your backend with it.

Free · 30 min

Get RoomRaccoon and PostHog joined properly

Free30 minutesNo obligation