Skip to main content
Doctolib → SegmentIntegration guide

Connecting Doctolib to Segment

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. Segment is a customer data platform rather than an ad network, so sending to it is not about matching a conversion — it is about putting one clean event where every other destination can read it. The join between them succeeds or fails on one thing: whether the userId and anonymousId reaches the Doctolib appointment before the conversion happens, because Segment can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Doctolib hand-offs through Segment, filtered before fan-out

Segment forwards events to every destination, so give a practice site a strict tracking plan where the booking event carries only practice location and step, enforced by Protocols or destination filters. Keep anonymousId as the only identity, pass consent state, and never identify patients by email. Load aggregate attended counts straight into your warehouse, not through Segment.

Segment's fan-out is the risk with a health source: one Booking Started event carrying a specialty property is forwarded to every connected destination, ad platforms included. If Segment sits in front of a practice website, define a strict tracking plan where the booking event carries only practice location and step, and use Protocols or destination filters, if your plan includes them, to block anything else from leaving.

Identity is the second problem. Do not call identify with a patient email captured on a contact form, because Segment passes that trait to every destination that accepts traits. Keep the anonymousId as the only identity on booking events and pass the visitor's consent state, so ad destinations only receive events from people who opted in.

Appointments themselves do not flow through Segment from Doctolib; the booking happens on Doctolib's domain. If an aggregate attended count is needed downstream, load it from the practice system straight into your warehouse rather than routing it through Segment where an ad destination could pick it up.

Doctolib → Segment · what breaks

Why this join usually fails — Doctolib → Segment

  1. 01

    The userId and anonymousId 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

    One bad event multiplied across every destination

    Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.

  4. 04

    Nothing reconciles afterwards

    Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.

Doctolib → Segment · the fix

What working looks like — Doctolib → Segment

  • The userId and anonymousId on every appointment

  • Conversions arriving in Segment

    Events land in Segment and forward to every connected destination, warehouse included, on one shared definition.

  • Reconciled against the source

Doctolib → Segment · architecture

How Doctolib and Segment 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

    Segment needs a click to match

    Segment needs a consistent identity model — the same userId everywhere, an alias when an anonymous visitor becomes known, and event names that follow one spec. Feeding it inconsistent identities pushes the mess to every connected destination at once.

  3. 3

    The identifier is the bridge

    The userId and anonymousId, 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

    Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.

Doctolib → Segment · normal or broken

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

Normal, not a fault

  • The userId and anonymousId present on the appointment

  • Sent from your practice system

  • Deduplicated correctly

    Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.

  • Reconciles with the source

Actually broken

  • The userId and anonymousId 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

    Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.

  • Nobody has reconciled it

Doctolib → Segment · diagnose

Diagnostic order — Doctolib → Segment

  1. 01

    Count appointments carrying the userId and anonymousId

  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 identity resolution before checking anything downstream

    If anonymousId is never aliased to userId, every destination sees two people where there is one, and no downstream fix helps.

  5. 05

    Read the match rate, not the success message

    Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.

Doctolib → Segment · prove

How it gets proven — Doctolib → Segment

Source of truth

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

  • The userId and anonymousId confirmed present on a live appointment.
  • An anonymous session confirmed aliased to a known user, with the event visible in at least one downstream destination.
  • Own-site attended appointments reconciled against imported conversions, with directory volume reported separately.

Doctolib → Segment · free audit

What we check in the free audit

  • Count appointments carrying the userId and anonymousId
  • Follow one real conversion end to end
  • Split appointments by booking origin
  • Check identity resolution before checking anything downstream
  • 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 → Segment · when not to buy

When you don't need this — Doctolib → Segment

  • Measure identifier coverage yourself first — pull your last hundred appointments and count how many carry the userId and anonymousId.
  • If the directory fills your calendar already, the honest recommendation is to skip advertising rather than to measure it better.
  • If you send to one or two destinations, Segment is infrastructure you do not need — direct integrations are simpler and cheaper. It earns its place at genuine fan-out.

Doctolib → Segment · what we deliver

What gets built — Doctolib → Segment

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

    Server-side track and identify calls with a stable messageId, consistent userId, and the click identifier carried as a trait or property.

  • 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 → Segment questions, answered

It can forward your own site's booking-click event, but only without clinical properties and only for consented visitors. The appointment itself is not visible to Segment.

Free · 30 min

Get Doctolib and Segment joined properly

Free30 minutesNo obligation