Skip to main content
Doctolib → MatomoIntegration guide

Connecting Doctolib to Matomo

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. Matomo can be self-hosted with no third party in the chain, which makes it the one analytics destination where the data genuinely never leaves infrastructure you control. The join between them succeeds or fails on one thing: whether the first-party visitor ID reaches the Doctolib appointment before the conversion happens, because Matomo can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Doctolib booking clicks in Matomo, configured for health pages

Matomo fits a practice well when self-hosted or on a European cloud. Set a goal on the outbound click to Doctolib, with source from mtm_campaign or pk_campaign, and treat it as intent; attended appointments stay in the practice system. Anonymize IPs, avoid User ID and specialty dimensions, and shorten Doctolib outlink URLs. Check CNIL exemption conditions.

Matomo is one of the better fits on this list for a practice. Self-hosted or on a European cloud, it keeps visit data out of advertising networks, and in France the CNIL has described a configuration under which audience measurement can run without a consent banner. Check the exact conditions before relying on it, because adding user IDs or sharing the data with anyone else breaks the exemption.

What Matomo can measure is the visit up to the booking button: a goal on the outbound click to Doctolib, with the source taken from mtm_campaign or pk_campaign on your landing URLs. The appointment itself is confirmed on Doctolib's domain, so there is no ecommerce order to record and no order ID to deduplicate on. Treat the click as intent, and keep attended appointments in the practice system, split by own-site versus directory.

The configuration choices matter more than the tag. Anonymize IP addresses, do not use User ID or set custom dimensions that hold a specialty for an identifiable visitor, and look at what Matomo stores as the outlink: Doctolib profile URLs typically include specialty and city, which you may want to shorten before it lands in the raw log you own.

Doctolib → Matomo · what breaks

Why this join usually fails — Doctolib → Matomo

  1. 01

    The first-party visitor ID 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

    Owning the pipeline means owning the outage

    The advantage is that nothing blocks it. The cost is that when the tracking database fills or falls behind on a weekend, the data is gone and no vendor is paging anyone. Hosted tools fail more visibly.

  4. 04

    Nothing reconciles afterwards

    Matomo exposes raw visit logs, so you can inspect the actual hit rather than an aggregate. Check the log, and check ingestion lag alongside it.

Doctolib → Matomo · the fix

What working looks like — Doctolib → Matomo

  • The first-party visitor ID on every appointment

  • Conversions arriving in Matomo

    The event lands in your own database and is queryable directly, including the raw log, which most analytics products do not expose.

  • Reconciled against the source

Doctolib → Matomo · architecture

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

    Matomo needs a click to match

    The site ID, the visitor identifier and the event or ecommerce order. Self-hosted instances additionally need the tracker endpoint reachable and the database keeping up, which hosted tools do not fail at.

  3. 3

    The identifier is the bridge

    The first-party visitor ID, 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

    Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.

Doctolib → Matomo · normal or broken

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

Normal, not a fault

  • The first-party visitor ID present on the appointment

  • Sent from your practice system

  • Deduplicated correctly

    Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.

  • Reconciles with the source

Actually broken

  • The first-party visitor 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

    The advantage is that nothing blocks it. The cost is that when the tracking database fills or falls behind on a weekend, the data is gone and no vendor is paging anyone. Hosted tools fail more visibly.

  • Nobody has reconciled it

Doctolib → Matomo · diagnose

Diagnostic order — Doctolib → Matomo

  1. 01

    Count appointments carrying the first-party visitor ID

  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 tracker reachability and database lag before debugging any tag

    On self-hosted analytics the answer is infrastructure more often than instrumentation.

  5. 05

    Read the match rate, not the success message

    Matomo exposes raw visit logs, so you can inspect the actual hit rather than an aggregate. Check the log, and check ingestion lag alongside it.

Doctolib → Matomo · prove

How it gets proven — Doctolib → Matomo

Source of truth

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

  • The first-party visitor ID confirmed present on a live appointment.
  • Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
  • Own-site attended appointments reconciled against imported conversions, with directory volume reported separately.

Doctolib → Matomo · free audit

What we check in the free audit

  • Count appointments carrying the first-party visitor ID
  • Follow one real conversion end to end
  • Split appointments by booking origin
  • Check tracker reachability and database lag before debugging any tag
  • 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 → Matomo · when not to buy

When you don't need this — Doctolib → Matomo

  • Measure identifier coverage yourself first — pull your last hundred appointments and count how many carry the first-party visitor ID.
  • If the directory fills your calendar already, the honest recommendation is to skip advertising rather than to measure it better.
  • If you have no privacy or ownership requirement and no team to run it, a hosted product removes the only real cost of this one.

Doctolib → Matomo · what we deliver

What gets built — Doctolib → Matomo

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

    The Matomo HTTP Tracking API, posted server-side from your order system.

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

It can track visits and the click to Doctolib under a strict configuration that the CNIL treats as exempt in France; check the current conditions. It cannot see the booking itself, which happens on Doctolib's site.

Free · 30 min

Get Doctolib and Matomo joined properly

Free30 minutesNo obligation