Skip to main content
Lodgify → PostHogIntegration guide

Connecting Lodgify to PostHog

Lodgify exists to give vacation-rental owners a direct booking website, which makes it one of the few lodging platforms where the click identifier can actually survive to the booking. 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 Lodgify 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

Lodgify to PostHog: find where guests give up on the dates

Capture property viewed, dates selected, quote shown with availability and booking started under the PostHog distinct_id, then send the confirmed booking from Lodgify's webhook or API with the stored distinct_id and an event UUID built from the booking ID. Store the distinct_id before any payment hand-off, record cancellations with lead time, and mask form inputs in replay.

PostHog is useful on a Lodgify site for a question bookings alone cannot answer: where visitors stop. Capture property viewed, dates selected, quote shown (with whether the dates were available) and booking started, under the visitor's distinct_id, if your plan allows custom scripts on the booking pages. The common finding is that many abandoned sessions hit unavailable dates or a minimum-stay rule, which is a calendar problem rather than a marketing one.

Send the confirmed booking from Lodgify's webhook or API to the PostHog capture API with the distinct_id you stored on the reservation and an event UUID built from the booking ID, so a retried webhook does not record the stay twice. If the payment step runs on another domain, store the distinct_id on your own site before the hand-off.

Session replay on booking pages captures names, emails, phone numbers and sometimes card fields. Mask all form inputs and confirm the payment frame is excluded before turning it on. Record cancellations as their own event with lead time attached, which makes PostHog a quick way to look at cancellation rate by how far ahead guests booked. Self-hosting keeps all of this on your infrastructure, along with the work of keeping it running.

Lodgify → PostHog · what breaks

Why this join usually fails — Lodgify → PostHog

  1. 01

    The distinct_id never reaches Lodgify

    The booking flow may render in a Lodgify-hosted checkout depending on plan, and payment can hand off again to the processor.

  2. 02

    Booking value counted months before the stay

    Long lead times are the defining feature of this business. Send the full booking value on the day it is made and your reported return for March is partly built on stays that will be cancelled in May.

  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.

Lodgify → PostHog · the fix

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

Lodgify → PostHog · architecture

How Lodgify and PostHog actually connect

  1. 1

    Lodgify holds the truth

    Direct bookings originate on your domain and can be attributed. Airbnb and Vrbo bookings arrive through the channel manager with no browser session of yours behind them, ever.

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

  4. 4

    The event source decides reliability

    Send the booking value at confirmation, but be explicit that a vacation rental booked in January for July is revenue you have not yet earned and may not keep.

  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.

Lodgify → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the booking

  • Sent from the Lodgify 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 flow may render in a Lodgify-hosted checkout depending on plan, and payment can hand off again to the processor.

  • Sent from the browser

    Long lead times are the defining feature of this business. Send the full booking value on the day it is made and your reported return for March is partly built on stays that will be cancelled in May.

  • 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

Lodgify → PostHog · diagnose

Diagnostic order — Lodgify → PostHog

  1. 01

    Count bookings carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Measure the cancellation rate by lead time

    Bookings made six months out cancel at a very different rate from bookings made next week, and the difference decides whether you report at booking or at stay.

  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.

Lodgify → PostHog · prove

How it gets proven — Lodgify → PostHog

Source of truth

Lodgify bookings by arrival date, split between your own website and the channels Lodgify syncs with.

  • 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 against imported conversions over a window long enough for the cancellation curve to settle.

Lodgify → PostHog · free audit

What we check in the free audit

  • Count bookings carrying the distinct_id
  • Follow one real conversion end to end
  • Measure the cancellation rate by lead time
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Lodgify bookings by arrival date, split between your own website and the channels Lodgify syncs with.

Get my free conversion tracking audit

Free30 minutesNo obligation

Lodgify → PostHog · when not to buy

When you don't need this — Lodgify → PostHog

  • Measure identifier coverage yourself first — pull your last hundred bookings and count how many carry the distinct_id.
  • If nearly all your bookings come from Airbnb and Vrbo, there is no identifier to track and your lever is listing quality, not conversion tracking.
  • 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.

Lodgify → PostHog · what we deliver

What gets built — Lodgify → PostHog

  • Identifier capture into Lodgify

    Capture on landing, persist in first-party storage on your own domain, and attach to the reservation at confirmation rather than relying on the checkout page to carry it.

  • Event source: the Lodgify booking record

    Send the booking value at confirmation, but be explicit that a vacation rental booked in January for July is revenue you have not yet earned and may not keep.

  • 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 must reverse, and in vacation rentals the cancellation window is long enough that a meaningful share will.

Written guarantee

95%+ tracking accuracy

Measured against Lodgify bookings by arrival date, split between your own website and the channels Lodgify syncs with.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Lodgify → PostHog questions, answered

If your plan allows custom scripts, capture date selection, quote and booking-start events client-side, then send the confirmed booking server-side with the same distinct_id.

Free · 30 min

Get Lodgify and PostHog joined properly

Free30 minutesNo obligation