Skip to main content
Bokun → MixpanelIntegration guide

Connecting Bokun to Mixpanel

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. Mixpanel is a product analytics tool, not an ad platform, which means it has no attribution model of its own and will faithfully report whatever event schema you give it — including a bad one. The join between them succeeds or fails on one thing: whether the distinct_id reaches the Bokun booking before the conversion happens, because Mixpanel can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Bokun bookings in Mixpanel: one distinct_id from tour page to booking

Read the Mixpanel distinct_id in the browser before the Bokun widget opens, carry it to your server with the booking reference, and send one event such as Booking Completed with booking reference, product ID, participants, departure date, net value and channel, timed from the booking. Use the reference as $insert_id, send cancellations separately, and keep reseller bookings out.

Mixpanel answers funnel questions the Bokun dashboard cannot: which tour pages, filters and date selections lead to a completed booking. The booking event has to carry the same distinct_id the Mixpanel browser SDK assigned on the tour page. Travelers rarely have accounts on an operator site, so there is no signup alias to rely on. Read the distinct_id in the browser before the widget opens, carry it to your server with the Bokun booking reference, and send the booking with it. Without that, every booking is a new person with no prior events and the funnel shows almost nobody converting.

Name the event once, for example "Booking Completed", with properties for booking reference, product ID, participants, departure date, net value and channel. Departure date as a property lets you report lead time (booked three days out versus three months out), which matters for tour pricing and is invisible in click-based ad reports. Set the event time from the booking, not from when your sync ran.

Keep reseller bookings out of that event name. If you load Viator and GetYourGuide bookings for completeness, give them their own event with no website distinct_id, or they dilute every funnel that starts on your site. Use the booking reference as $insert_id so a retried notification does not double a booking, and send cancellations as their own event rather than deleting history.

Bokun → Mixpanel · what breaks

Why this join usually fails — Bokun → Mixpanel

  1. 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.

  2. 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.

  3. 03

    One event schema, two teams, no agreement

    Marketing names an event Purchase, the product team names it purchase_completed, and both are sent. Mixpanel treats them as unrelated, every funnel silently splits, and two teams spend a quarter arguing about which number is right when both are.

  4. 04

    Nothing reconciles afterwards

    Mixpanel shows events in the live view within moments. Check that the distinct_id matches the signed-in user rather than a lingering anonymous ID, because that is the failure that quietly breaks every cross-signup funnel.

Bokun → Mixpanel · the fix

What working looks like — Bokun → Mixpanel

  • The distinct_id on every booking

  • Conversions arriving in Mixpanel

    The event lands on the user profile and becomes available in funnels, retention and cohort analysis.

  • Reconciled against the source

Bokun → Mixpanel · architecture

How Bokun and Mixpanel actually connect

  1. 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. 2

    Mixpanel needs a click to match

    Mixpanel needs a distinct_id, an event name and its properties. Events without a distinct_id are rejected; events with the wrong one land on a stranger's profile.

  3. 3

    The identifier is the bridge

    The distinct_id, captured at the visit and carried into the Bokun booking.

  4. 4

    The event source decides reliability

    Send direct bookings at net value. Never send reseller bookings as conversions.

  5. 5

    Deduplication at the destination

    Mixpanel deduplicates on $insert_id within a time window. Without it, a retried server request creates a second event, and because Mixpanel is where product decisions get made, that inflation ends up in a roadmap rather than in an ad report.

Bokun → Mixpanel · normal or broken

Working vs. broken, side by side — Bokun → Mixpanel

Normal, not a fault

  • The distinct_id present on the booking

  • Sent from the Bokun booking record

  • Deduplicated correctly

    Mixpanel deduplicates on $insert_id within a time window. Without it, a retried server request creates a second event, and because Mixpanel is where product decisions get made, that inflation ends up in a roadmap rather than in an ad report.

  • 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

    Marketing names an event Purchase, the product team names it purchase_completed, and both are sent. Mixpanel treats them as unrelated, every funnel silently splits, and two teams spend a quarter arguing about which number is right when both are.

  • Nobody has reconciled it

Bokun → Mixpanel · diagnose

Diagnostic order — Bokun → Mixpanel

  1. 01

    Count bookings carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 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.

  4. 04

    List every event name in the project and look for near-duplicates

    Case differences, tense differences and synonyms are the usual finding, and they are cheap to fix before a year of data is built on them.

  5. 05

    Read the match rate, not the success message

    Mixpanel shows events in the live view within moments. Check that the distinct_id matches the signed-in user rather than a lingering anonymous ID, because that is the failure that quietly breaks every cross-signup funnel.

Bokun → Mixpanel · prove

How it gets proven — Bokun → Mixpanel

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 identity aliasing verified across the signup boundary.
  • Direct bookings reconciled at net value against imported conversions.

Bokun → Mixpanel · 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
  • List every event name in the project and look for near-duplicates
  • 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.

Get my free conversion tracking audit

Free30 minutesNo obligation

Bokun → Mixpanel · when not to buy

When you don't need this — Bokun → Mixpanel

  • 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 already have the same events in a warehouse and nobody is running product analysis on them, adding Mixpanel adds a second source of truth rather than an answer.

Bokun → Mixpanel · what we deliver

What gets built — Bokun → Mixpanel

  • 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 Mixpanel

    The Mixpanel ingestion API, posted server-side from your backend with the distinct_id and event properties.

  • 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.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Bokun → Mixpanel questions, answered

The booking was sent with a new or missing distinct_id. Pass the browser's distinct_id through to your server before the Bokun widget opens and send the booking with it.

Free · 30 min

Get Bokun and Mixpanel joined properly

Free30 minutesNo obligation