Skip to main content
Profitroom → PostHogIntegration guide

Connecting Profitroom to PostHog

Profitroom is built to move hotels away from OTA dependence, which makes the direct-versus-OTA split the entire point of the product and the entire measurement question. 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 Profitroom booking 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

PostHog on a Profitroom hotel site: find where bookers drop out

PostHog shows where hotel visitors abandon the path to booking. Pass the distinct_id into the booking engine URL and send the confirmed reservation from your server with the reservation number as event UUID, including arrival date, nights, rate plan, stay value and lead time. Keep guest personal data out.

PostHog does not feed an ad platform's bidding; on a hotel site its job is showing where people abandon the path from room page to confirmed reservation. The difficulty is that the most important step, date selection and checkout, happens on the Profitroom booking engine domain. Check whether Profitroom lets you load your own snippet there. If not, the funnel ends at the Book Now click, and that is still useful for comparing room pages and offers.

To join the outcome, pass PostHog's distinct_id into the booking engine URL and send the confirmed reservation from your server as a capture event with the same distinct_id. Use the Profitroom reservation number as the event UUID so retries do not duplicate. Useful properties: arrival date, nights, rate plan, total stay value, and lead time in days between booking and arrival. Lead time is the property most hotels have never analyzed by traffic source, and it changes how you read every campaign.

Keep guest personal data out of event properties. Name, email and phone are not needed for funnel analysis, and on a self-hosted instance you carry the responsibility for whatever you store. Record cancellations as a separate event so the funnel shows bookings kept, not just bookings made.

Profitroom → PostHog · what breaks

Why this join usually fails — Profitroom → PostHog

  1. 01

    The distinct_id never reaches Profitroom

    The booking engine sits on a Profitroom-served domain and the decision runs across sessions and devices.

  2. 02

    Direct-share growth invisible in an occupancy number

    A hotel can hold occupancy flat while shifting a fifth of its bookings from OTA to direct, which is worth the whole commission saved. Occupancy reporting shows nothing happened.

  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.

Profitroom → PostHog · the fix

What working looks like — Profitroom → PostHog

  • The distinct_id on every booking

  • Conversions arriving in PostHog

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

  • Reconciled against the source

Profitroom → PostHog · architecture

How Profitroom and PostHog actually connect

  1. 1

    Profitroom holds the truth

    The commercial case for this platform is shifting share from OTA commission to direct booking. That shift is the number worth reporting, and it is not the same as total occupancy.

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

  4. 4

    The event source decides reliability

    Send direct bookings at total stay value, with OTA-sourced reservations reported separately.

  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.

Profitroom → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the booking

  • Sent from the Profitroom booking record

  • 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 Profitroom-served domain and the decision runs across sessions and devices.

  • Sent from the browser

    A hotel can hold occupancy flat while shifting a fifth of its bookings from OTA to direct, which is worth the whole commission saved. Occupancy reporting shows nothing happened.

  • 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

Profitroom → PostHog · diagnose

Diagnostic order — Profitroom → PostHog

  1. 01

    Count bookings carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Report direct share of bookings, not just occupancy

    It is the metric this product exists to move, and it is frequently absent from the marketing report.

  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.

Profitroom → PostHog · prove

How it gets proven — Profitroom → PostHog

Source of truth

Profitroom direct bookings by arrival date, at total stay revenue.

  • The distinct_id confirmed present on a live booking.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • Direct bookings reconciled at total stay value against imported conversions, with direct share stated.

Profitroom → PostHog · free audit

What we check in the free audit

  • Count bookings carrying the distinct_id
  • Follow one real conversion end to end
  • Report direct share of bookings, not just occupancy
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Profitroom direct bookings by arrival date, at total stay revenue.

Get my free conversion tracking audit

Free30 minutesNo obligation

Profitroom → PostHog · when not to buy

When you don't need this — Profitroom → PostHog

  • Measure identifier coverage yourself first — pull your last hundred bookings and count how many carry the distinct_id.
  • If your OTA share is already low, the remaining upside is small and the effort belongs elsewhere.
  • 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.

Profitroom → PostHog · what we deliver

What gets built — Profitroom → PostHog

  • Identifier capture into Profitroom

    Capture on your own site and persist through the handoff, so direct bookings can be separated from channel-manager ones.

  • Event source: the Profitroom booking record

    Send direct bookings at total stay value, with OTA-sourced reservations reported separately.

  • 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, and flexible rates cancel more than non-refundable ones.

Written guarantee

95%+ tracking accuracy

Measured against Profitroom direct bookings by arrival date, at total stay revenue.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Profitroom → PostHog questions, answered

Only if Profitroom lets you add your own tracking to the booking pages; confirm this with them. Otherwise, send the confirmed reservation server-side with the captured distinct_id so at least the outcome joins the visit.

Free · 30 min

Get Profitroom and PostHog joined properly

Free30 minutesNo obligation