Skip to main content
Doctolib → AmplitudeIntegration guide

Connecting Doctolib to Amplitude

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. Amplitude is built around behavioural cohorts, which makes the identity resolution and the event taxonomy load-bearing in a way they never are for an ad pixel. The join between them succeeds or fails on one thing: whether the user ID and device ID pair reaches the Doctolib appointment before the conversion happens, because Amplitude can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Doctolib bookings in Amplitude without patient data

Amplitude can only measure the click handing patients to Doctolib: track Booking Started with practice location and never specialty, practitioner type or symptoms. Do not call setUserId with a patient number or Doctolib email. Keep weekly attended counts from the practice system outside Amplitude, and have your data protection officer approve any stored identifier.

Amplitude makes sense here only for a practice group with its own digital front door, a site or patient app whose journey ends in a hand-off to Doctolib. What Amplitude can measure honestly is the click on the booking button, the departure to Doctolib, not the appointment, which happens on Doctolib's domain. Track it as Booking Started with the practice location, and never with specialty, practitioner type or symptoms; in Amplitude those become user properties that persist and build up a health history per person.

Attended appointments can only come back from your practice system, as an aggregate or with a pseudonymous ID you have a documented lawful basis for. Do not call setUserId with a patient number or the email Doctolib holds, because that turns a product analytics project into a patient record held by a third party. Have your data protection officer approve whatever identifier Amplitude stores before launch.

Where this pair misleads: the funnel ends at Booking Started, so Amplitude reports clicks to Doctolib as conversions, including people who abandon on Doctolib's calendar. Keep the event named for what it is and pair it with a weekly attended count from the practice system, kept outside Amplitude.

Doctolib → Amplitude · what breaks

Why this join usually fails — Doctolib → Amplitude

  1. 01

    The user ID and device ID pair never reaches Doctolib

    Booking happens on Doctolib's domain, and directory bookings never touch any property of yours at all.

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

  3. 03

    Revenue events that carry no revenue

    Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.

  4. 04

    Nothing reconciles afterwards

    Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.

Doctolib → Amplitude · the fix

What working looks like — Doctolib → Amplitude

  • The user ID and device ID pair on every appointment

  • Conversions arriving in Amplitude

    The event lands on the user, joins their behavioural history, and becomes available for cohorts, funnels and retention.

  • Reconciled against the source

Doctolib → Amplitude · architecture

How Doctolib and Amplitude actually connect

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

    Amplitude needs a click to match

    Amplitude needs a device or user identifier, an event type and its properties. Revenue events need the price and quantity fields specifically, or the revenue reporting stays empty while events flow normally.

  3. 3

    The identifier is the bridge

    The user ID and device ID pair, captured at the visit and carried into the Doctolib appointment.

  4. 4

    The event source decides reliability

    Send attended appointments as a count, per practice, with no specialty or reason-for-visit field.

  5. 5

    Deduplication at the destination

    Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.

Doctolib → Amplitude · normal or broken

Working vs. broken, side by side — Doctolib → Amplitude

Normal, not a fault

  • The user ID and device ID pair present on the appointment

  • Sent from your practice system

  • Deduplicated correctly

    Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.

  • Reconciles with the source

Actually broken

  • The user ID and device ID pair 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

    Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.

  • Nobody has reconciled it

Doctolib → Amplitude · diagnose

Diagnostic order — Doctolib → Amplitude

  1. 01

    Count appointments carrying the user ID and device ID pair

  2. 02

    Follow one real conversion end to end

  3. 03

    Split appointments by booking origin

    Own site versus directory. Without it the paid numbers cannot be interpreted in either direction.

  4. 04

    Check a purchase event for the price and quantity fields specifically

    Not whether the event arrived — whether the revenue fields are populated, in the exact names Amplitude expects.

  5. 05

    Read the match rate, not the success message

    Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.

Doctolib → Amplitude · prove

How it gets proven — Doctolib → Amplitude

Source of truth

Attended appointments in your own system, split by whether the patient came through your site or through Doctolib's directory.

  • The user ID and device ID pair confirmed present on a live appointment.
  • Revenue reconciled per transaction against your billing system, with identity merge behaviour verified across signup.
  • Own-site attended appointments reconciled against imported conversions, with directory volume reported separately.

Doctolib → Amplitude · free audit

What we check in the free audit

  • Count appointments carrying the user ID and device ID pair
  • Follow one real conversion end to end
  • Split appointments by booking origin
  • Check a purchase event for the price and quantity fields specifically
  • 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.

Get my free conversion tracking audit

Free30 minutesNo obligation

Doctolib → Amplitude · when not to buy

When you don't need this — Doctolib → Amplitude

  • Measure identifier coverage yourself first — pull your last hundred appointments and count how many carry the user ID and device ID pair.
  • If the directory fills your calendar already, the honest recommendation is to skip advertising rather than to measure it better.
  • If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.

Doctolib → Amplitude · what we deliver

What gets built — Doctolib → Amplitude

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

    The Amplitude HTTP V2 API, posted server-side with the identity, event type and 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.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Doctolib → Amplitude questions, answered

Only the hand-off from your own site to Doctolib, not the appointment. Bringing attended appointments back needs your practice system and a lawful basis for any identifier.

Free · 30 min

Get Doctolib and Amplitude joined properly

Free30 minutesNo obligation