Connecting Bokun to PostHog
Bokun is owned by Tripadvisor and connects operators to Viator, so it is a distribution network with a booking engine attached rather than the other way round. 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 Bokun 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 Bokun booking flow: see where availability stops sales
Capture PostHog's distinct_id on the product page and carry a reference into the Bokun booking if the widget allows; when Bokun confirms, send booking_confirmed server-side with that distinct_id, the confirmation code as event UUID, product, departure date and value. Otherwise join by checkout email. Record viewed dates and whether they were full, separating sold-out drop-off from abandonment.
PostHog helps an operator answer questions about the path to booking: which product pages lead to bookings, whether showing price per person or per group changes completion, how many visitors leave after seeing a sold-out date. Much of that happens before or around the Bokun widget, and steps inside an embedded widget are only visible if it exposes them, so expect a blind spot between widget open and confirmed booking.
Close it from the server. Capture PostHog's distinct_id on the product page, check whether your widget setup can carry a reference into the booking, and when Bokun confirms, send a booking_confirmed event with that distinct_id, the confirmation code as the event UUID, product, departure date and value. If no reference survives, identify the visitor by email at checkout where possible and join on that.
The analysis specific to this pair is availability. Record the dates a visitor looked at and whether they were full. A funnel that shows drop-off at the date picker reads like a design problem; often it is capacity. Separating sold-out drop-off from real abandonment tells you whether to change the page or add departures.
Bokun → PostHog · what breaks
Why this join usually fails — Bokun → PostHog
- 01
The distinct_id never reaches Bokun
Reseller bookings originate on Viator, GetYourGuide or an agent's system. There is no session of yours anywhere in that chain.
- 02
Distribution revenue attributed to advertising
Bokun's purpose is to put your product in front of travellers on other people's platforms. That works, and none of it is something your search campaign caused.
- 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.
Bokun → PostHog · the fix
What working looks like — Bokun → 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
Bokun → PostHog · architecture
How Bokun and PostHog actually connect
- 1
Bokun holds the truth
Reseller bookings carry an OTA commission that can reach a quarter of the ticket price. Your net rate and the traveller's price are different numbers and only one of them is yours.
- 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 Bokun booking.
- 4
The event source decides reliability
Send direct bookings at net value. Never send reseller bookings as conversions.
- 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.
Bokun → PostHog · normal or broken
Working vs. broken, side by side — Bokun → PostHog
Normal, not a fault
The distinct_id present on the booking
Sent from the Bokun 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
Reseller bookings originate on Viator, GetYourGuide or an agent's system. There is no session of yours anywhere in that chain.
Sent from the browser
Bokun's purpose is to put your product in front of travellers on other people's platforms. That works, and none of it is something your search campaign caused.
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
Bokun → PostHog · diagnose
Diagnostic order — Bokun → PostHog
- 01
Count bookings carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Split by channel and check whether values are gross or net
Two questions, both usually answered wrongly, and together they can overstate return by a factor of two.
- 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.
Bokun → PostHog · prove
How it gets proven — Bokun → PostHog
Source of truth
Bokun bookings by departure, split into your own website and reseller channels, valued at your net rate.
- 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 net value against imported conversions.
Bokun → PostHog · free audit
What we check in the free audit
- Count bookings carrying the distinct_id
- Follow one real conversion end to end
- Split by channel and check whether values are gross or net
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Bokun bookings by departure, split into your own website and reseller channels, valued at your net rate.
Free30 minutesNo obligation
Bokun → PostHog · when not to buy
When you don't need this — Bokun → PostHog
- Measure identifier coverage yourself first — pull your last hundred bookings and count how many carry the distinct_id.
- An operator selling mainly through Viator has a distribution question, not a tracking question.
- 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.
Bokun → PostHog · what we deliver
What gets built — Bokun → PostHog
Identifier capture into Bokun
Attribute direct-website bookings only, and report reseller volume as a separate channel at net rate.
Event source: the Bokun booking record
Send direct bookings at net value. Never send reseller bookings as conversions.
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 Bokun bookings by departure, split into your own website and reseller channels, valued at your net rate.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Bokun → PostHog questions, answered
Only if the widget exposes them. Otherwise record the confirmed booking server-side and treat the widget as a black box.
Pass the distinct_id into the booking flow if your setup allows it, or identify by email at checkout and join on that.
Almost always because the distinct_id never reached the Bokun booking. Reseller bookings originate on Viator, GetYourGuide or an agent's system. There is no session of yours anywhere in that chain. 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 Bokun booking record. Send direct bookings at net value. Never send reseller bookings as conversions.
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 Bokun → PostHog
- Bokun → Google AdsConnecting Bokun to Google Ads
- Bokun → MetaConnecting Bokun to Meta Conversions API
- Bokun → GA4Connecting Bokun to GA4
Using Bokun for bookings? How Bokun bookings get tracked end to end
RELATED GUIDES
Where Bokun → PostHog fits in the rest of your tracking
- Rezdy → PostHogConnecting Rezdy to PostHog
- CourtReserve → PostHogConnecting CourtReserve to PostHog
- Rezgo → PostHogConnecting Rezgo to PostHog
- Bokun → GA4Connecting Bokun to GA4
- Bokun → Adobe AnalyticsConnecting Bokun to Adobe Analytics
- Tours and activitiesConversion tracking for tour operators, measured in completed departures
- TrekkSoft → PostHogConnecting TrekkSoft to PostHog
- Resova → PostHogConnecting Resova to PostHog
Free · 30 min
Get Bokun and PostHog joined properly
Free30 minutesNo obligation
