Skip to main content
Newbook → PostHogIntegration guide

Connecting Newbook to PostHog

Newbook runs mixed-accommodation properties — cabins, powered sites, glamping tents — where each accommodation type has its own capacity, price and seasonality inside one park. 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 Newbook 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

Newbook and PostHog: see where guests drop before the hosted engine

PostHog sees your own site up to the Book now click. To close the loop, put the PostHog distinct_id on the handoff link or a reservation field, then send a reservation-created event to the capture API with that distinct_id, accommodation type, value and a UUID derived from the booking number. PostHog Cloud is usually enough for one park.

PostHog shows what visitors do on your own site: which accommodation pages they open, which dates they try, and where they click through to book. The Newbook-hosted booking engine is a different site, and unless it runs your PostHog snippet the funnel ends at the Book now click. That is still useful, because the question most parks have is which accommodation type people browse and then abandon.

To close the loop, put the PostHog distinct_id on the handoff link or a field stored with the reservation, then send a reservation-created event server-side to the capture API with that distinct_id, accommodation type, value, and a UUID generated deterministically from the booking number. A funnel can then run from cabin page view to completed reservation, split by type, showing whether glamping visitors book at a different rate from powered-site visitors.

Self-hosting PostHog for one park is more infrastructure than the question deserves; PostHog Cloud does the same job. If you self-host because guest data must stay with you, monitor the ingestion instance before peak booking season, because that is when it fills and when you most need the data.

Newbook → PostHog · what breaks

Why this join usually fails — Newbook → PostHog

  1. 01

    The distinct_id never reaches Newbook

    The booking engine is Newbook-hosted and the channel manager brings OTA reservations with no identifier at all.

  2. 02

    Mixed inventory averaged into one occupancy figure

    A park at ninety percent occupancy can be full on cheap sites and empty on premium cabins. The aggregate looks healthy and the revenue does not follow.

  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.

Newbook → PostHog · the fix

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

Newbook → PostHog · architecture

How Newbook and PostHog actually connect

  1. 1

    Newbook holds the truth

    Mixed inventory means one park is several businesses. Glamping fills in summer at a premium; powered sites fill year-round at a lower rate. Averaging them produces a number that guides nothing.

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

  4. 4

    The event source decides reliability

    Send direct-channel stays at total revenue, with accommodation type attached.

  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.

Newbook → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the reservation

  • Sent from the Newbook reservation 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 is Newbook-hosted and the channel manager brings OTA reservations with no identifier at all.

  • Sent from the browser

    A park at ninety percent occupancy can be full on cheap sites and empty on premium cabins. The aggregate looks healthy and the revenue does not follow.

  • 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

Newbook → PostHog · diagnose

Diagnostic order — Newbook → PostHog

  1. 01

    Count reservations carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Report occupancy and revenue per accommodation type

    It is the difference between knowing the park is busy and knowing which part of it is earning.

  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.

Newbook → PostHog · prove

How it gets proven — Newbook → PostHog

Source of truth

Newbook reservations by arrival, with accommodation type and channel recorded.

  • 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 stays reconciled at total revenue by accommodation type against imported conversions.

Newbook → PostHog · free audit

What we check in the free audit

  • Count reservations carrying the distinct_id
  • Follow one real conversion end to end
  • Report occupancy and revenue per accommodation type
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Newbook reservations by arrival, with accommodation type and channel recorded.

Get my free conversion tracking audit

Free30 minutesNo obligation

Newbook → PostHog · when not to buy

When you don't need this — Newbook → PostHog

  • Measure identifier coverage yourself first — pull your last hundred reservations and count how many carry the distinct_id.
  • Single-inventory parks can use one conversion action without losing anything.
  • 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.

Newbook → PostHog · what we deliver

What gets built — Newbook → PostHog

  • Identifier capture into Newbook

    Capture on your own domain and keep both accommodation type and channel on every reservation downstream.

  • Event source: the Newbook reservation record

    Send direct-channel stays at total revenue, with accommodation type attached.

  • 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, per accommodation type.

Written guarantee

95%+ tracking accuracy

Measured against Newbook reservations by arrival, with accommodation type and channel recorded.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Newbook → PostHog questions, answered

Not directly unless the engine runs your snippet. Send the completed reservation to PostHog server-side with the distinct_id you captured before the handoff.

Free · 30 min

Get Newbook and PostHog joined properly

Free30 minutesNo obligation