Skip to main content
Bookinglayer → MixpanelIntegration guide

Connecting Bookinglayer to Mixpanel

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

Bookinglayer bookings in Mixpanel on the visitor's distinct_id

Record Bookinglayer bookings in Mixpanel against the distinct_id that browsed your site. Pass it into the booking as a hidden field or URL parameter, send the deposit server-side with that distinct_id, and identify guests with a stable ID from your guest records. Keep deposit and completed stay as separate events with package, nights and add-ons as properties.

Mixpanel answers questions the ad platforms do not: how long retreat shoppers browse before booking, which package pages they compare, and whether they come back after the deposit to buy add-ons. All of it depends on the Bookinglayer booking being recorded against the same distinct_id that browsed your site. The booking form is usually a Bookinglayer page or embed, so Mixpanel's browser SDK never sees the booking happen.

Fix that before the handoff. Read the distinct_id from the Mixpanel SDK on your site, pass it into the booking as a hidden field or URL parameter if your Bookinglayer form supports one, and send the server-side booking event with that distinct_id. Then identify the guest with a stable ID from your own guest records, so someone who books again next season merges into the same person. Identify with one value in the browser and a different one on the server and Mixpanel holds two people, one who browsed and one who booked without browsing.

Treat the deposit and the completed stay as separate events, often months apart, so a funnel from first visit to deposit can use a sensible conversion window while a separate report covers deposit to arrival. Put package, nights, room type and add-ons on the events as properties. Events dated well in the past may need Mixpanel's import route rather than live tracking; check the current limits before backfilling a season of bookings.

Bookinglayer → Mixpanel · what breaks

Why this join usually fails — Bookinglayer → Mixpanel

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

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

  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.

Bookinglayer → Mixpanel · the fix

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

Bookinglayer → Mixpanel · architecture

How Bookinglayer and Mixpanel actually connect

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

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

Bookinglayer → Mixpanel · normal or broken

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

Normal, not a fault

  • The distinct_id present on the booking

  • Sent from the Bookinglayer 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

    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

    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

Bookinglayer → Mixpanel · diagnose

Diagnostic order — Bookinglayer → Mixpanel

  1. 01

    Count bookings carrying the distinct_id

  2. 02

    Follow one real conversion end to end

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

  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.

Bookinglayer → Mixpanel · prove

How it gets proven — Bookinglayer → Mixpanel

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 identity aliasing verified across the signup boundary.
  • Completed stays reconciled at package value against imported conversions, with add-on revenue reported separately.

Bookinglayer → Mixpanel · 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
  • List every event name in the project and look for near-duplicates
  • Read the match rate, not the success message

Checked against

Bookinglayer bookings by arrival date, with the package composition and any add-ons recorded.

Get my free conversion tracking audit

Free30 minutesNo obligation

Bookinglayer → Mixpanel · when not to buy

When you don't need this — Bookinglayer → Mixpanel

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

Bookinglayer → Mixpanel · what we deliver

What gets built — Bookinglayer → Mixpanel

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

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

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

Get my free conversion tracking audit

From $400 · See packages

FAQ

Bookinglayer → Mixpanel questions, answered

The server-side booking event was sent without the distinct_id from the browser session. Pass it into the booking from your site and reuse it when you send the event.

Free · 30 min

Get Bookinglayer and Mixpanel joined properly

Free30 minutesNo obligation