Skip to main content
Bookassist → PostHogIntegration guide

Connecting Bookassist to PostHog

Bookassist runs direct booking engines for independent European hotels, where rate parity obligations mean your own price is frequently identical to the OTA's — so the direct case has to be made on something other than price. 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 Bookassist 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

Bookassist and PostHog: funnels on a booking engine you don't own

PostHog cannot see the hosted Bookassist funnel unless the engine runs your snippet. Otherwise carry the distinct_id into the engine as a URL parameter, if preserved on the reservation, and post a booking event with the booking reference as event UUID, stay value, arrival date and nights. Mask replay on guest-details and payment steps if your snippet runs there.

PostHog shines at funnels and session replay on pages you control. With Bookassist, the booking funnel of dates, room choice, extras and payment runs on the hosted engine, so PostHog on your marketing site watches the visitor leave and never sees them return unless the engine also runs your snippet. Check whether Bookassist allows custom scripts on its pages; hosted engines often restrict this, especially near payment.

Without that, the sensible setup is server-side. Carry the PostHog distinct_id into the engine as a URL parameter, if the engine preserves one onto the reservation, and post a booking event with the booking reference as the event UUID, stay value, arrival date and nights. That gives you a site-to-booking conversion rate by landing page, which is the question a hotel can actually act on.

If the engine does run your snippet, mask or exclude replay on guest-details and payment steps, which would otherwise capture personal data you have no use for. For a single independent hotel, most of PostHog's depth goes unused. It pays off for a group running several property sites that wants to compare which page layouts push guests into the engine, on an EU-hosted or self-hosted instance that keeps guest data in Europe.

Bookassist → PostHog · what breaks

Why this join usually fails — Bookassist → PostHog

  1. 01

    The distinct_id never reaches Bookassist

    The engine is hosted, guests compare on OTAs mid-journey, and the final click frequently comes from a metasearch listing.

  2. 02

    Commission avoided never counted as a benefit

    A direct booking at the same rate as an OTA booking is worth fifteen to twenty percent more to the hotel. If the report shows only room revenue, direct booking campaigns look like they are competing with themselves.

  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.

Bookassist → PostHog · the fix

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

Bookassist → PostHog · architecture

How Bookassist and PostHog actually connect

  1. 1

    Bookassist holds the truth

    The value of a direct booking is the room revenue plus the OTA commission not paid. Reporting only room revenue understates direct booking by exactly the commission rate.

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

  4. 4

    The event source decides reliability

    Send direct bookings at room revenue, and report commission avoided as an explicit second figure.

  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.

Bookassist → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the booking

  • Sent from the Bookassist 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 engine is hosted, guests compare on OTAs mid-journey, and the final click frequently comes from a metasearch listing.

  • Sent from the browser

    A direct booking at the same rate as an OTA booking is worth fifteen to twenty percent more to the hotel. If the report shows only room revenue, direct booking campaigns look like they are competing with themselves.

  • 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

Bookassist → PostHog · diagnose

Diagnostic order — Bookassist → PostHog

  1. 01

    Count bookings carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Add commission avoided as a reported figure alongside room revenue

    It is a simple calculation and it changes the entire business case for direct-booking advertising.

  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.

Bookassist → PostHog · prove

How it gets proven — Bookassist → PostHog

Source of truth

Bookassist direct bookings by arrival, at total stay revenue net of the commission you avoided.

  • 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 room revenue with commission avoided stated separately.

Bookassist → PostHog · free audit

What we check in the free audit

  • Count bookings carrying the distinct_id
  • Follow one real conversion end to end
  • Add commission avoided as a reported figure alongside room revenue
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Bookassist direct bookings by arrival, at total stay revenue net of the commission you avoided.

Get my free conversion tracking audit

Free30 minutesNo obligation

Bookassist → PostHog · when not to buy

When you don't need this — Bookassist → PostHog

  • Measure identifier coverage yourself first — pull your last hundred bookings and count how many carry the distinct_id.
  • If you do not distribute through OTAs, there is no commission to avoid and direct is simply your only channel.
  • 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.

Bookassist → PostHog · what we deliver

What gets built — Bookassist → PostHog

  • Identifier capture into Bookassist

    Capture on your own site and persist across the comparison journey, which routinely includes visits to third-party sites.

  • Event source: the Bookassist booking record

    Send direct bookings at room revenue, and report commission avoided as an explicit second figure.

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

Written guarantee

95%+ tracking accuracy

Measured against Bookassist direct bookings by arrival, at total stay revenue net of the commission you avoided.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Bookassist → PostHog questions, answered

Only if Bookassist lets your snippet run on its pages. Otherwise send the booking server-side with the distinct_id you carried into the engine.

Free · 30 min

Get Bookassist and PostHog joined properly

Free30 minutesNo obligation