Connecting Doctolib to Mixpanel
Doctolib is a patient-facing marketplace as much as a booking system, so a large share of the appointments it produces were found by Doctolib 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 Doctolib appointment 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
Doctolib hand-offs in Mixpanel, with no health properties
Mixpanel sees only your site, so name the last event Doctolib Hand-off, not Appointment Booked. Disable autocapture on booking pages or strip URLs naming specialties, and never identify visitors with patient emails. Bring attended appointments as aggregate events per practice and day under a fixed system distinct_id, with an $insert_id per practice-day.
Mixpanel can show where patients drop off on your own site before they reach Doctolib: practice page, location chosen, booking button clicked. After that click they are on Doctolib's domain and Mixpanel sees nothing more, so the last event you control is a hand-off. Call it Doctolib Hand-off rather than Appointment Booked, or every funnel built on it will be read as appointments.
Mixpanel's autocapture and default properties can record the current URL and page title. On a practice site those often name a specialty or condition, and in Mixpanel they attach to that distinct_id's history. Turn autocapture off on booking pages or strip URLs before sending, and never identify visitors with patient emails or Doctolib account details; leave the distinct_id anonymous.
If attended appointments are needed alongside, bring them from the practice system as aggregate events per practice and day under a fixed system distinct_id, with an $insert_id per practice-day so reloads do not double. That lets you compare hand-offs with attended own-site visits without ever tying a person to a visit.
Doctolib → Mixpanel · what breaks
Why this join usually fails — Doctolib → Mixpanel
- 01
The distinct_id never reaches Doctolib
Booking happens on Doctolib's domain, and directory bookings never touch any property of yours at all.
- 02
Marketplace demand read as campaign performance
Doctolib's directory fills calendars independently of anything you spend. Pool the two and your advertising takes credit for the platform's own reach.
- 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.
- 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.
Doctolib → Mixpanel · the fix
What working looks like — Doctolib → Mixpanel
The distinct_id on every appointment
Conversions arriving in Mixpanel
The event lands on the user profile and becomes available in funnels, retention and cohort analysis.
Reconciled against the source
Doctolib → Mixpanel · architecture
How Doctolib and Mixpanel actually connect
- 1
Doctolib holds the truth
Directory-sourced patients are real and are not evidence that your advertising worked. Under European rules the consent position on health data is also stricter than most advertisers assume.
- 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
The identifier is the bridge
The distinct_id, captured at the visit and carried into the Doctolib appointment.
- 4
The event source decides reliability
Send attended appointments as a count, per practice, with no specialty or reason-for-visit field.
- 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.
Doctolib → Mixpanel · normal or broken
Working vs. broken, side by side — Doctolib → Mixpanel
Normal, not a fault
The distinct_id present on the appointment
Sent from your practice system
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
Booking happens on Doctolib's domain, and directory bookings never touch any property of yours at all.
Sent from the browser
Doctolib's directory fills calendars independently of anything you spend. Pool the two and your advertising takes credit for the platform's own reach.
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
Doctolib → Mixpanel · diagnose
Diagnostic order — Doctolib → Mixpanel
- 01
Count appointments carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Split appointments by booking origin
Own site versus directory. Without it the paid numbers cannot be interpreted in either direction.
- 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.
- 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.
Doctolib → Mixpanel · prove
How it gets proven — Doctolib → Mixpanel
Source of truth
Attended appointments in your own system, split by whether the patient came through your site or through Doctolib's directory.
- The distinct_id confirmed present on a live appointment.
- Purchase events reconciled per transaction against your billing system, with identity aliasing verified across the signup boundary.
- Own-site attended appointments reconciled against imported conversions, with directory volume reported separately.
Doctolib → Mixpanel · free audit
What we check in the free audit
- Count appointments carrying the distinct_id
- Follow one real conversion end to end
- Split appointments by booking origin
- List every event name in the project and look for near-duplicates
- Read the match rate, not the success message
Checked against
Attended appointments in your own system, split by whether the patient came through your site or through Doctolib's directory.
Free30 minutesNo obligation
Doctolib → Mixpanel · when not to buy
When you don't need this — Doctolib → Mixpanel
- Measure identifier coverage yourself first — pull your last hundred appointments and count how many carry the distinct_id.
- If the directory fills your calendar already, the honest recommendation is to skip advertising rather than to measure it better.
- 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.
Doctolib → Mixpanel · what we deliver
What gets built — Doctolib → Mixpanel
Identifier capture into Doctolib
Attribute only bookings that began on your own site, and then only with a consented identifier and no clinical detail attached.
Event source: your practice system
Send attended appointments as a count, per practice, with no specialty or reason-for-visit field.
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 Attended appointments in your own system, split by whether the patient came through your site or through Doctolib's directory.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Doctolib → Mixpanel questions, answered
It tracks the click that sends a visitor to Doctolib, not the booking. Attended visits have to come from your practice system, ideally as aggregates.
It can collect URLs and page titles, which on practice sites often name a specialty or condition. Disable it on booking pages or sanitize URLs first.
Almost always because the distinct_id never reached the Doctolib appointment. Booking happens on Doctolib's domain, and directory bookings never touch any property of yours at all. Measure coverage before debugging the dispatch.
Mixpanel identifies people by distinct_id, which starts as an anonymous device value and should be aliased to your own user ID at signup. Getting that alias wrong is the single most common Mixpanel implementation failure: the anonymous pre-signup activity and the identified user become two separate people, and every funnel that crosses signup is broken.
Your practice system. Send attended appointments as a count, per practice, with no specialty or reason-for-visit field.
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.
More on Doctolib → Mixpanel
- Doctolib → Google AdsConnecting Doctolib to Google Ads
- Doctolib → MetaConnecting Doctolib to Meta Conversions API
- Doctolib → GA4Connecting Doctolib to GA4
RELATED GUIDES
Where Doctolib → Mixpanel fits in the rest of your tracking
- Solutionreach → MixpanelConnecting Solutionreach to Mixpanel
- Dentrix Ascend → MixpanelConnecting Dentrix Ascend to Mixpanel
- Zocdoc → MixpanelConnecting Zocdoc to Mixpanel
- Doctolib → MatomoConnecting Doctolib to Matomo
- Doctolib → AmplitudeConnecting Doctolib to Amplitude
- OrthodonticsConversion tracking for orthodontics, measured in started treatment
- Weave → MixpanelConnecting Weave to Mixpanel
- Luma Health → MixpanelConnecting Luma Health to Mixpanel
Free · 30 min
Get Doctolib and Mixpanel joined properly
Free30 minutesNo obligation
