Connecting Bookinglayer to PostHog
Bookinglayer sells a stay bundled with an experience — a surf camp, a yoga retreat — which means the package price contains accommodation, instruction, food and equipment that all have different margins and different capacity limits. 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 Bookinglayer 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
Bookinglayer in PostHog: one distinct_id from retreat page to deposit
To see which retreat pages precede a Bookinglayer deposit in PostHog, store the distinct_id at click-through, attach it to the booking, and send the deposit through the capture API with that distinct_id, package and arrival date. Use a stable event UUID from the booking reference so retried webhooks do not double count, and send stays separately.
PostHog is useful to a retreat operator for one question: which retreat pages, videos and FAQ sections precede a deposit. Answering it needs the same distinct_id on the browsing session and on the Bookinglayer booking. If the booking runs on a Bookinglayer-hosted page, PostHog is not loaded there unless the form allows your own scripts, so the funnel stops at the click on Book Now.
Store the distinct_id on your domain when the guest clicks through, attach it to the booking, and send a deposit event server-side from the booking record through the capture API with the same distinct_id, the package and the arrival date. Use an identify or alias call with the guest's email once known, so a returning visitor who books on a second device still lands on one person.
Send a stable event UUID derived from the booking reference. Bookinglayer webhooks or polling jobs can retry, and without a UUID a retried batch records two deposits; on a self-hosted instance nobody else will notice. Keep the completed stay as a separate event weeks later, so funnel conversion rates measure deposits while revenue analysis uses stays. Breaking out bed, lesson and add-on properties lets you see which pages sell which part of the package.
Bookinglayer → PostHog · what breaks
Why this join usually fails — Bookinglayer → PostHog
- 01
The distinct_id never reaches Bookinglayer
Retreat decisions run weeks to months, frequently start on Instagram and finish on a Bookinglayer-hosted checkout, and deposits are taken long before arrival.
- 02
One package price hiding four different constraints
A camp can be sold out on beds while instructors sit idle, or the reverse. A single booking count cannot show which resource is actually binding, so advertising keeps pushing the package that is already full.
- 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.
- 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.
Bookinglayer → PostHog · the fix
What working looks like — Bookinglayer → 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
Bookinglayer → PostHog · architecture
How Bookinglayer and PostHog actually connect
- 1
Bookinglayer holds the truth
A package is not one product. Rooms are capacity-limited by beds, lessons by instructors, and add-ons carry the best margin — so two bookings at the same price can be quite different businesses.
- 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
The identifier is the bridge
The distinct_id, captured at the visit and carried into the Bookinglayer booking.
- 4
The event source decides reliability
Send the deposit at its amount and the completed stay at full package value, as two separate events rather than one optimistic total.
- 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.
Bookinglayer → PostHog · normal or broken
Working vs. broken, side by side — Bookinglayer → PostHog
Normal, not a fault
The distinct_id present on the booking
Sent from the Bookinglayer 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
Retreat decisions run weeks to months, frequently start on Instagram and finish on a Bookinglayer-hosted checkout, and deposits are taken long before arrival.
Sent from the browser
A camp can be sold out on beds while instructors sit idle, or the reverse. A single booking count cannot show which resource is actually binding, so advertising keeps pushing the package that is already full.
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
Bookinglayer → PostHog · diagnose
Diagnostic order — Bookinglayer → PostHog
- 01
Count bookings carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Report occupancy separately for beds, lessons and equipment
Whichever fills first is your real capacity limit, and it decides which package the advertising should be selling.
- 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.
- 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.
Bookinglayer → PostHog · prove
How it gets proven — Bookinglayer → PostHog
Source of truth
Bookinglayer bookings by arrival date, with the package composition and any add-ons recorded.
- 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.
- Completed stays reconciled at package value against imported conversions, with add-on revenue reported separately.
Bookinglayer → PostHog · free audit
What we check in the free audit
- Count bookings carrying the distinct_id
- Follow one real conversion end to end
- Report occupancy separately for beds, lessons and equipment
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Bookinglayer bookings by arrival date, with the package composition and any add-ons recorded.
Free30 minutesNo obligation
Bookinglayer → PostHog · when not to buy
When you don't need this — Bookinglayer → PostHog
- Measure identifier coverage yourself first — pull your last hundred bookings and count how many carry the distinct_id.
- If you sell one fixed package with one capacity limit, this is a straightforward booking integration and the composition detail adds nothing.
- 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.
Bookinglayer → PostHog · what we deliver
What gets built — Bookinglayer → PostHog
Identifier capture into Bookinglayer
Capture on your own domain, persist against the guest record, and carry it through the deposit-to-balance gap so the arrival months later still resolves.
Event source: the Bookinglayer booking record
Send the deposit at its amount and the completed stay at full package value, as two separate events rather than one optimistic total.
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. Retreat cancellation windows are long and the cancellation rate is material.
Written guarantee
95%+ tracking accuracy
Measured against Bookinglayer bookings by arrival date, with the package composition and any add-ons recorded.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Bookinglayer → PostHog questions, answered
Only if the form loads your PostHog snippet, which you should check. Otherwise send the booking server-side with the distinct_id you stored before the guest left your site.
Usually a retried webhook or sync job sent the event again without a stable UUID. Derive the UUID from the booking reference so retries are recognized.
Almost always because the distinct_id never reached the Bookinglayer booking. Retreat decisions run weeks to months, frequently start on Instagram and finish on a Bookinglayer-hosted checkout, and deposits are taken long before arrival. Measure coverage before debugging the dispatch.
PostHog identifies by distinct_id with an alias call to merge anonymous and identified users. On a self-hosted instance you also control the ingestion endpoint, which means the identifier survives ad blockers that would kill a third-party pixel — one of the few genuine technical advantages available to a first-party setup.
The Bookinglayer booking record. Send the deposit at its amount and the completed stay at full package value, as two separate events rather than one optimistic total.
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.
More on Bookinglayer → PostHog
- Stripe → PostHogConnecting Stripe to PostHog
- PayPal → PostHogConnecting PayPal to PostHog
- Shopify → PostHogConnecting Shopify to PostHog
RELATED GUIDES
Where Bookinglayer → PostHog fits in the rest of your tracking
- Retreat Guru → PostHogConnecting Retreat Guru to PostHog
- WeTravel → PostHogConnecting WeTravel to PostHog
- SquadTrip → PostHogConnecting SquadTrip to PostHog
- Bookinglayer → Adobe AnalyticsConnecting Bookinglayer to Adobe Analytics
- Bookinglayer → AmplitudeConnecting Bookinglayer to Amplitude
- Yoga and pilatesConversion tracking for studios, measured in converted members
Free · 30 min
Get Bookinglayer and PostHog joined properly
Free30 minutesNo obligation
