Connecting Doctolib to BigQuery
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. BigQuery has no attribution model, no deduplication rules and no opinion about your data — which makes it the only destination on this site where every number is exactly as good as the query that produced it. The join between them succeeds or fails on one thing: whether whatever join key you decide on reaches the Doctolib appointment before the conversion happens, because BigQuery can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Doctolib booking origin and attended visits in BigQuery
Load attended appointments from your Doctolib or practice-system export into an EU BigQuery dataset as pseudonymous counts per practice per day with booking origin. Join them in aggregate to own-site booking clicks by campaign, or on a Doctolib referral value if one exists. Drop specialty and visit reason at load, and record cancellations and no-shows as status changes.
BigQuery is the right place for the split this source demands: appointments that started on your site versus those that came through Doctolib's directory. Check what export or reporting access your Doctolib contract and practice system give you, because that is the only feed of attended appointments. Load it as counts per practice per day with booking origin, keep it pseudonymous unless you have a documented lawful basis, and put EU patient data in an EU dataset location with restricted access.
The join key is the awkward part. On your side there is a session with click IDs and a click on the Doctolib button; on Doctolib's side there is an appointment. Often no shared ID survives the domain hop, so the honest model is aggregate: own-site booking clicks by campaign joined to attended own-site appointments by day and practice. If Doctolib records a referral or tracking value on bookings that start from your site, confirm it in your account and join on it.
Keep clinical fields out of the dataset even when the export includes them: drop specialty and visit reason at load time, not in a view, because column permissions are easy to get wrong later. Cancellations and no-shows must arrive as status changes so attended counts can be recomputed after the fact.
Doctolib → BigQuery · what breaks
Why this join usually fails — Doctolib → BigQuery
- 01
Whatever join key you decide on 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
The warehouse quietly disagreeing with every platform
This is not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.
- 04
Nothing reconciles afterwards
BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.
Doctolib → BigQuery · the fix
What working looks like — Doctolib → BigQuery
Whatever join key you decide on on every appointment
Conversions arriving in BigQuery
The row lands in a table you own, joinable to every other table you own, with no window and no expiry.
Reconciled against the source
Doctolib → BigQuery · architecture
How Doctolib and BigQuery 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
BigQuery needs a click to match
BigQuery needs a schema and consistent types. The failure mode is not rejection, it is silent divergence: a column that arrives as a string in one load and an integer in the next, or a timestamp in the wrong zone, which produces answers that look plausible and are not.
- 3
The identifier is the bridge
Whatever join key you decide on, 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
Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.
Doctolib → BigQuery · normal or broken
Working vs. broken, side by side — Doctolib → BigQuery
Normal, not a fault
Whatever join key you decide on present on the appointment
Sent from your practice system
Deduplicated correctly
Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.
Reconciles with the source
Actually broken
Whatever join key you decide on 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
This is not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.
Nobody has reconciled it
Doctolib → BigQuery · diagnose
Diagnostic order — Doctolib → BigQuery
- 01
Count appointments carrying whatever join key you decide on
- 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
Reconcile warehouse order counts against each platform for one closed window
The gaps localize the problem: a gap against all platforms is a collection issue, a gap against one is that platform's window or matching.
- 05
Read the match rate, not the success message
BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.
Doctolib → BigQuery · prove
How it gets proven — Doctolib → BigQuery
Source of truth
Attended appointments in your own system, split by whether the patient came through your site or through Doctolib's directory.
- Whatever join key you decide on confirmed present on a live appointment.
- Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
- Own-site attended appointments reconciled against imported conversions, with directory volume reported separately.
Doctolib → BigQuery · free audit
What we check in the free audit
- Count appointments carrying whatever join key you decide on
- Follow one real conversion end to end
- Split appointments by booking origin
- Reconcile warehouse order counts against each platform for one closed window
- 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 → BigQuery · when not to buy
When you don't need this — Doctolib → BigQuery
- Measure identifier coverage yourself first — pull your last hundred appointments and count how many carry whatever join key you decide on.
- If the directory fills your calendar already, the honest recommendation is to skip advertising rather than to measure it better.
- If you have one store and one ad platform, a warehouse is infrastructure you will maintain for a reconciliation you could do in a spreadsheet.
Doctolib → BigQuery · what we deliver
What gets built — Doctolib → BigQuery
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 BigQuery
Streaming inserts or scheduled batch loads from your order system, with the raw event retained alongside whatever you derive from it.
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 → BigQuery questions, answered
Load booking origin with each appointment from your practice system or Doctolib export and report own-site and directory volumes separately. Only own-site bookings can be related to ad spend.
Possibly, with a lawful basis, an EU dataset location for EU patients and no clinical fields. Aggregated counts per practice avoid most of the problem.
Almost always because whatever join key you decide on 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.
There is no vendor identifier here. You choose the key — order ID, user ID, click identifier, hashed email — and you live with the consequences. That is the whole appeal and the whole risk: nothing is standardised for you and nothing is silently wrong in a vendor's favour either.
Your practice system. Send attended appointments as a count, per practice, with no specialty or reason-for-visit field.
BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.
More on Doctolib → BigQuery
- Doctolib → Google AdsConnecting Doctolib to Google Ads
- Doctolib → MetaConnecting Doctolib to Meta Conversions API
- Doctolib → GA4Connecting Doctolib to GA4
RELATED GUIDES
Where Doctolib → BigQuery fits in the rest of your tracking
- Luma Health → BigQueryConnecting Luma Health to BigQuery
- NexHealth → BigQueryConnecting NexHealth to BigQuery
- Dentrix Ascend → BigQueryConnecting Dentrix Ascend to BigQuery
- Doctolib → SegmentConnecting Doctolib to Segment
- Doctolib → SnowflakeConnecting Doctolib to Snowflake
- DentistsConversion tracking for dental practices, measured in new patients
- Solutionreach → BigQueryConnecting Solutionreach to BigQuery
- Zocdoc → BigQueryConnecting Zocdoc to BigQuery
Free · 30 min
Get Doctolib and BigQuery joined properly
Free30 minutesNo obligation
