Skip to main content
Treatwell → MixpanelIntegration guide

Connecting Treatwell to Mixpanel

Treatwell is a beauty marketplace with a salon booking system attached, so most of the bookings flowing through it were generated by Treatwell rather than by you. 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 Treatwell 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

Treatwell to Mixpanel: you can only see up to the widget

Mixpanel sees your salon site up to the Book Now tap but not inside the Treatwell widget, so it often adds little. To close the funnel, match booking emails to ones captured earlier and send matched bookings server-side with the site distinct_id, booking reference as $insert_id, net value and channel property.

Mixpanel can show what happens on your own salon website: which service pages people read, how many tap Book Now, and from which campaign. It cannot see inside the Treatwell-served widget or the Treatwell marketplace, so the funnel stops exactly where the booking starts. For most single salons that makes Mixpanel a poor fit; the click count it adds is available from simpler tools.

If you want the full funnel, the question is whether you can learn which bookings came from your widget and tie them back. Check whether Treatwell's widget exposes any booking-complete callback or passes parameters you can read; if it does not, the only join is after the fact, matching the client email on the Treatwell booking to an email you captured earlier, which most first-time clients will not have given you. Send matched bookings server-side with the distinct_id from your site and the booking reference as $insert_id.

Value on those events should be net of Treatwell commission and discount, in pounds or euros as the booking was made, with the channel as a property so marketplace bookings are never counted as your own funnel's output. Send no-shows separately; a Book Now click that ends in a no-show is not a conversion.

Treatwell → Mixpanel · what breaks

Why this join usually fails — Treatwell → Mixpanel

  1. 01

    The distinct_id never reaches Treatwell

    The widget is Treatwell-served, and marketplace bookings originate entirely inside Treatwell.

  2. 02

    Commission and discount both omitted from the value

    A marketplace booking at a promotional rate, minus new-client commission, can be worth half its headline price. Import the headline and the channel looks twice as good as it is.

  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.

Treatwell → Mixpanel · the fix

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

Treatwell → Mixpanel · architecture

How Treatwell and Mixpanel actually connect

  1. 1

    Treatwell holds the truth

    Marketplace bookings carry a commission on new clients and often a promotional discount as well. Two deductions, both invisible if you import the headline price.

  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 Treatwell booking.

  4. 4

    The event source decides reliability

    Send completed appointments net of commission and discount.

  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.

Treatwell → Mixpanel · normal or broken

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

Normal, not a fault

  • The distinct_id present on the booking

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

    The widget is Treatwell-served, and marketplace bookings originate entirely inside Treatwell.

  • Sent from the browser

    A marketplace booking at a promotional rate, minus new-client commission, can be worth half its headline price. Import the headline and the channel looks twice as good as it is.

  • 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

Treatwell → Mixpanel · diagnose

Diagnostic order — Treatwell → Mixpanel

  1. 01

    Count bookings carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Reconcile against the payout, not the booking

    The payout report is the only place where both deductions have already been applied.

  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.

Treatwell → Mixpanel · prove

How it gets proven — Treatwell → Mixpanel

Source of truth

Treatwell bookings by service date, split between your own booking widget and the Treatwell marketplace.

  • 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.
  • Own-widget bookings reconciled net against imported conversions, with marketplace volume reported separately.

Treatwell → Mixpanel · free audit

What we check in the free audit

  • Count bookings carrying the distinct_id
  • Follow one real conversion end to end
  • Reconcile against the payout, not the booking
  • List every event name in the project and look for near-duplicates
  • Read the match rate, not the success message

Checked against

Treatwell bookings by service date, split between your own booking widget and the Treatwell marketplace.

Get my free conversion tracking audit

Free30 minutesNo obligation

Treatwell → Mixpanel · when not to buy

When you don't need this — Treatwell → Mixpanel

  • Measure identifier coverage yourself first — pull your last hundred bookings and count how many carry the distinct_id.
  • If Treatwell is purely a client-acquisition marketplace for you, evaluate it on commission economics rather than building a tracking integration.
  • 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.

Treatwell → Mixpanel · what we deliver

What gets built — Treatwell → Mixpanel

  • Identifier capture into Treatwell

    Attribute widget bookings placed from your own site; report marketplace volume separately with its commission stated.

  • Event source: the Treatwell booking record

    Send completed appointments net of commission and discount.

  • 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 and no-shows reverse.

Written guarantee

95%+ tracking accuracy

Measured against Treatwell bookings by service date, split between your own booking widget and the Treatwell marketplace.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Treatwell → Mixpanel questions, answered

Not directly, because the widget is served by Treatwell. Check whether Treatwell exposes a completion callback; otherwise you can only track clicks up to the widget.

Free · 30 min

Get Treatwell and Mixpanel joined properly

Free30 minutesNo obligation