Connecting Bokun to Segment
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. Segment is a customer data platform rather than an ad network, so sending to it is not about matching a conversion — it is about putting one clean event where every other destination can read it. The join between them succeeds or fails on one thing: whether the userId and anonymousId reaches the Bokun booking before the conversion happens, because Segment can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Bokun to Segment: one Order Completed per booking, channel attached
Map each Bokun booking to Segment's Order Completed with the booking reference as order_id, net revenue, currency, tours as products and a direct-or-reseller channel property. Read the anonymousId before the widget opens and pass it with identify at booking. Carry click IDs and consent, derive messageId from the reference, and keep reseller bookings away from ad destinations.
Segment makes sense for an operator sending the same booking to several places at once, say Meta, Google Ads, a warehouse and an email tool, and wanting one definition of a booking feeding all of them. Map the Bokun booking to Segment's Order Completed event with the booking reference as order_id, net value as revenue, currency, and one product per tour line with participants as quantity. Add a channel property that says direct or reseller, because downstream destinations forward whatever they receive.
Identity is the hard part. Travelers browse anonymously and book inside Bokun's widget, so the anonymousId from analytics.js on the tour page has to be read before the widget opens and sent to your server with the booking. At booking you get an email: call identify with a userId you control and include the same anonymousId so Segment stitches the two. Carry gclid, fbclid and rdt_cid plus consent state as properties so ad destinations can use them, and can be filtered when consent is missing. Derive messageId from the booking reference so retries do not fan out twice.
The failure specific to this pair is reseller bookings sent as Order Completed. Segment fans them out to every ad destination, and Viator sales start appearing as Meta and Google conversions. Either send reseller bookings under a separate event name or filter on channel per destination, and test that a reseller booking reaches no ad platform.
Bokun → Segment · what breaks
Why this join usually fails — Bokun → Segment
- 01
The userId and anonymousId 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
One bad event multiplied across every destination
Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.
- 04
Nothing reconciles afterwards
Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.
Bokun → Segment · the fix
What working looks like — Bokun → Segment
The userId and anonymousId on every booking
Conversions arriving in Segment
Events land in Segment and forward to every connected destination, warehouse included, on one shared definition.
Reconciled against the source
Bokun → Segment · architecture
How Bokun and Segment 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
Segment needs a click to match
Segment needs a consistent identity model — the same userId everywhere, an alias when an anonymous visitor becomes known, and event names that follow one spec. Feeding it inconsistent identities pushes the mess to every connected destination at once.
- 3
The identifier is the bridge
The userId and anonymousId, 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
Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.
Bokun → Segment · normal or broken
Working vs. broken, side by side — Bokun → Segment
Normal, not a fault
The userId and anonymousId present on the booking
Sent from the Bokun booking record
Deduplicated correctly
Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.
Reconciles with the source
Actually broken
The userId and anonymousId 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
Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.
Nobody has reconciled it
Bokun → Segment · diagnose
Diagnostic order — Bokun → Segment
- 01
Count bookings carrying the userId and anonymousId
- 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 identity resolution before checking anything downstream
If anonymousId is never aliased to userId, every destination sees two people where there is one, and no downstream fix helps.
- 05
Read the match rate, not the success message
Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.
Bokun → Segment · prove
How it gets proven — Bokun → Segment
Source of truth
Bokun bookings by departure, split into your own website and reseller channels, valued at your net rate.
- The userId and anonymousId confirmed present on a live booking.
- An anonymous session confirmed aliased to a known user, with the event visible in at least one downstream destination.
- Direct bookings reconciled at net value against imported conversions.
Bokun → Segment · free audit
What we check in the free audit
- Count bookings carrying the userId and anonymousId
- Follow one real conversion end to end
- Split by channel and check whether values are gross or net
- Check identity resolution before checking anything downstream
- 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 → Segment · when not to buy
When you don't need this — Bokun → Segment
- Measure identifier coverage yourself first — pull your last hundred bookings and count how many carry the userId and anonymousId.
- An operator selling mainly through Viator has a distribution question, not a tracking question.
- If you send to one or two destinations, Segment is infrastructure you do not need — direct integrations are simpler and cheaper. It earns its place at genuine fan-out.
Bokun → Segment · what we deliver
What gets built — Bokun → Segment
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 Segment
Server-side track and identify calls with a stable messageId, consistent userId, and the click identifier carried as a trait or property.
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 → Segment questions, answered
Use the e-commerce spec event Order Completed with the booking reference as order_id, so destinations that understand the spec map it correctly. Send cancellations as Order Cancelled or Order Refunded against the same order_id.
Yes, if each event carries a channel property and you filter on it per destination; check whether your Segment plan includes destination filters, or split reseller bookings into a different event name at the source.
Almost always because the userId and anonymousId 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.
Segment identifies people by anonymousId before they are known and userId afterwards, and the alias between them is what stitches a session to a customer. Click identifiers travel as event properties or traits rather than as a matching key — Segment does not match anything itself, it forwards. That distinction changes the whole design: get the identity resolution right and every downstream destination inherits it.
The Bokun booking record. Send direct bookings at net value. Never send reseller bookings as conversions.
Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.
More on Bokun → Segment
- Stripe → SegmentConnecting Stripe to Segment
- PayPal → SegmentConnecting PayPal to Segment
- Shopify → SegmentConnecting Shopify to Segment
Using Bokun for bookings? How Bokun bookings get tracked end to end
RELATED GUIDES
Where Bokun → Segment fits in the rest of your tracking
- TripWorks → SegmentConnecting TripWorks to Segment
- Resova → SegmentConnecting Resova to Segment
- Peek Pro → SegmentConnecting Peek Pro to Segment
- Bokun → BigQueryConnecting Bokun to BigQuery
- Ticketing and eventsConversion tracking for ticketing, measured in tickets sold
- Rezgo → SegmentConnecting Rezgo to Segment
- FareHarbor → SegmentConnecting FareHarbor to Segment
- TrekkSoft → SegmentConnecting TrekkSoft to Segment
Free · 30 min
Get Bokun and Segment joined properly
Free30 minutesNo obligation
