Connecting Zocdoc to PostHog
Zocdoc is a patient marketplace that books appointments into your practice, which makes it a competing acquisition channel rather than a tracking tool. PostHog can be self-hosted, which changes the calculus entirely: the data stays on infrastructure you control, and so does the responsibility for everything that goes wrong with it. The join between them succeeds or fails on one thing: whether the distinct_id reaches the Zocdoc booking before the conversion happens, because PostHog can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
PostHog on a practice website that hands off to Zocdoc
Use PostHog only for your own site, where the funnel ends at the click to Zocdoc. Send anonymous events with no person profile, such as provider page viewed, Zocdoc link clicked and phone clicked, and never alias visitors to patient records. Mask inputs in session replay, consider disabling it on condition pages, and compare clicks with attended Zocdoc patients.
PostHog can show where visitors drop off on your site before they book, and that is the part of a Zocdoc flow you own. The funnel ends at the click to Zocdoc: the appointment, its time and whether the patient attended live in Zocdoc and your practice system, neither of which knows the PostHog distinct_id. Do not try to identify visitors or alias them to patient records; nothing on a Zocdoc booking gives you a key to do it with, and a guessed match attaches health activity to the wrong person.
Configure PostHog for a healthcare site before using it. Session replay records page content and form fields, so mask all inputs, consider disabling replay on condition and provider pages, and do not capture URL query strings that might carry search terms. Self-hosting keeps events on your infrastructure, which is the strongest reason a practice would choose PostHog, but a self-hosted instance also means you own access control and retention.
Useful events: viewed a provider page, clicked a book-on-Zocdoc link, clicked a phone number. Send them as anonymous events with no person profile. Compare the clicks-to-Zocdoc trend with attended Zocdoc patients by recorded source each month; the ratio tells you whether site changes are helping or just moving clicks around.
Zocdoc → PostHog · what breaks
Why this join usually fails — Zocdoc → PostHog
- 01
The distinct_id never reaches Zocdoc
The patient searches on Zocdoc, not on your site, so there is no click identifier and cannot be. Zocdoc-sourced patients look identical to ad-sourced ones in the practice system unless the source is recorded.
- 02
A paid marketplace counted as organic success
Zocdoc bookings cost money per patient. Counting them alongside ad-driven bookings makes your advertising look more effective than it is and hides what Zocdoc actually costs.
- 03
Self-hosting the analytics and the outage together
The advantage of owning the pipeline is that nothing blocks it. The cost is that when the ingestion instance fills its disk on a Saturday, the events are gone and nobody is paged. Hosted tools fail differently and more visibly.
- 04
Nothing reconciles afterwards
PostHog shows events in the activity view within moments. On a self-hosted instance, check the ingestion lag as well — events that are queued are not events that are lost, and the two need different responses.
Zocdoc → PostHog · the fix
What working looks like — Zocdoc → PostHog
The distinct_id on every appointment
Conversions arriving in PostHog
The event lands on the person profile and becomes available in insights, funnels and session replay.
Reconciled against the source
Zocdoc → PostHog · architecture
How Zocdoc and PostHog actually connect
- 1
Zocdoc holds the truth
Zocdoc charges per booking or per new patient, so its bookings have an acquisition cost of their own that has nothing to do with your advertising.
- 2
PostHog needs a click to match
PostHog needs a distinct_id, an event name and its properties. Self-hosted instances additionally need the ingestion endpoint reachable and the project API key correct, which is a class of failure hosted tools do not have.
- 3
The identifier is the bridge
The distinct_id, captured at the visit and carried into the Zocdoc booking.
- 4
The event source decides reliability
Send attended appointments from patients acquired through your own channels. Zocdoc-sourced patients belong in a separate report.
- 5
Deduplication at the destination
PostHog deduplicates on the event UUID where supplied. Without one, a retried batch duplicates, and on a self-hosted instance there is no vendor support desk to notice it for you.
Zocdoc → PostHog · normal or broken
Working vs. broken, side by side — Zocdoc → PostHog
Normal, not a fault
The distinct_id present on the appointment
Sent from your practice management system, with source recorded
Deduplicated correctly
PostHog deduplicates on the event UUID where supplied. Without one, a retried batch duplicates, and on a self-hosted instance there is no vendor support desk to notice it for you.
Reconciles with the source
Actually broken
The distinct_id missing on most records
The patient searches on Zocdoc, not on your site, so there is no click identifier and cannot be. Zocdoc-sourced patients look identical to ad-sourced ones in the practice system unless the source is recorded.
Sent from the browser
Zocdoc bookings cost money per patient. Counting them alongside ad-driven bookings makes your advertising look more effective than it is and hides what Zocdoc actually costs.
Counted twice, or not at all
The advantage of owning the pipeline is that nothing blocks it. The cost is that when the ingestion instance fills its disk on a Saturday, the events are gone and nobody is paged. Hosted tools fail differently and more visibly.
Nobody has reconciled it
Zocdoc → PostHog · diagnose
Diagnostic order — Zocdoc → PostHog
- 01
Count appointments carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Check whether booking source is recorded on the patient record
Without it, two paid channels are being reported as one and neither can be judged.
- 04
Check ingestion health and disk before debugging any missing event
On self-hosted instances the answer is infrastructure far more often than it is instrumentation.
- 05
Read the match rate, not the success message
PostHog shows events in the activity view within moments. On a self-hosted instance, check the ingestion lag as well — events that are queued are not events that are lost, and the two need different responses.
Zocdoc → PostHog · prove
How it gets proven — Zocdoc → PostHog
Source of truth
Your practice management system — Zocdoc books the appointment and your system records whether it happened.
- The distinct_id confirmed present on a live appointment.
- Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
- Zocdoc-sourced patients confirmed separated from ad-sourced ones in the practice system.
Zocdoc → PostHog · free audit
What we check in the free audit
- Count appointments carrying the distinct_id
- Follow one real conversion end to end
- Check whether booking source is recorded on the patient record
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Your practice management system — Zocdoc books the appointment and your system records whether it happened.
Free30 minutesNo obligation
Zocdoc → PostHog · when not to buy
When you don't need this — Zocdoc → PostHog
- Measure identifier coverage yourself first — pull your last hundred appointments and count how many carry the distinct_id.
- If Zocdoc is your main acquisition channel, the useful analysis is its cost per patient against your own — not tracking it as though it were free.
- If you have no reason to keep the data on your own infrastructure and no team to run it, the hosted product removes the only real downside of this one.
Zocdoc → PostHog · what we deliver
What gets built — Zocdoc → PostHog
Identifier capture into Zocdoc
Record the booking source on the patient record so Zocdoc volume can be separated. There is no way to attribute a Zocdoc booking to your own advertising, because your advertising did not produce it.
Event source: your practice management system, with source recorded
Send attended appointments from patients acquired through your own channels. Zocdoc-sourced patients belong in a separate report.
Dispatch to PostHog
The PostHog capture API, posted server-side from your backend to your own instance or to PostHog Cloud.
Reversals where they exist
No-shows and cancellations reduce the figure.
Written guarantee
95%+ tracking accuracy
Measured against Your practice management system — Zocdoc books the appointment and your system records whether it happened.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Zocdoc → PostHog questions, answered
Only the click from your site to Zocdoc. The booking itself happens on Zocdoc, so attended appointments must be counted in your practice system by source.
Only with inputs masked and replay limited or disabled on pages about conditions or providers. Review what is captured before turning it on.
Almost always because the distinct_id never reached the Zocdoc booking. The patient searches on Zocdoc, not on your site, so there is no click identifier and cannot be. Zocdoc-sourced patients look identical to ad-sourced ones in the practice system unless the source is recorded. Measure coverage before debugging the dispatch.
PostHog identifies by distinct_id with an alias call to merge anonymous and identified users. On a self-hosted instance you also control the ingestion endpoint, which means the identifier survives ad blockers that would kill a third-party pixel — one of the few genuine technical advantages available to a first-party setup.
Your practice management system, with source recorded. Send attended appointments from patients acquired through your own channels. Zocdoc-sourced patients belong in a separate report.
PostHog shows events in the activity view within moments. On a self-hosted instance, check the ingestion lag as well — events that are queued are not events that are lost, and the two need different responses.
More on Zocdoc → PostHog
- Zocdoc → Google AdsConnecting Zocdoc to Google Ads
- Zocdoc → MetaConnecting Zocdoc to Meta Conversions API
- Zocdoc → GA4Connecting Zocdoc to GA4
Using Zocdoc for bookings? How Zocdoc bookings get tracked end to end
RELATED GUIDES
Where Zocdoc → PostHog fits in the rest of your tracking
- Doctolib → PostHogConnecting Doctolib to PostHog
- Luma Health → PostHogConnecting Luma Health to PostHog
- Solutionreach → PostHogConnecting Solutionreach to PostHog
- Zocdoc → Adobe AnalyticsConnecting Zocdoc to Adobe Analytics
- Zocdoc → MixpanelConnecting Zocdoc to Mixpanel
- DermatologyConversion tracking for dermatology, split medical from cosmetic
- NexHealth → PostHogConnecting NexHealth to PostHog
- Weave → PostHogConnecting Weave to PostHog
Free · 30 min
Get Zocdoc and PostHog joined properly
Free30 minutesNo obligation
