Skip to main content
Cal.com → PostHogIntegration guide

Connecting Cal.com to PostHog

Cal.com holds the booking and, unusually, will let you self-host and query the database directly. 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 Cal.com 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

Cal.com bookings in PostHog on the visitor's distinct_id

Read posthog.get_distinct_id() on your page, pass it into the Cal.com URL as a hidden booking question, and capture a booking event server-side on BOOKING_CREATED with that distinct_id and a stable UUID derived from the booking UID. A PostHog app on Cal.com cloud starts a separate person. Capture cancellations and MEETING_ENDED separately, and backfill gaps nightly if both are self-hosted.

PostHog users usually want the booking as a funnel step: ad landing, pricing page, booking page, booked, attended. That needs the booking event on the same distinct_id the browser used. Read it with posthog.get_distinct_id() on your page, pass it into the Cal.com URL as a prefilled hidden question, and capture a booking event server-side on BOOKING_CREATED with that distinct_id. PostHog expects a real UUID if you supply one, and Cal.com's booking UID is not in that format, so derive a stable UUID from it.

Check whether Cal.com's app store offers a PostHog app for your version; if it does, it runs PostHog's snippet on the booking page. On Cal.com cloud that page is another domain, so it starts a separate anonymous person and the funnel step breaks. On a self-hosted Cal.com under your own domain it may share PostHog's cookie, but test it rather than assume.

When both tools are self-hosted, the advantage is that gaps are recoverable. A nightly job can read the Cal.com bookings table, find booking UIDs with no matching event in PostHog, and capture them with the original booking timestamp and the same derived UUID, so a rerun never duplicates. Capture cancellations and MEETING_ENDED as separate events, so the funnel's last step is attendance.

Cal.com → PostHog · what breaks

Why this join usually fails — Cal.com → PostHog

  1. 01

    The distinct_id never reaches Cal.com

    As with any hosted booking page, the identifier must be passed on the booking URL and captured into a booking question. Cal.com's routing forms add a second surface that also needs to carry it, and they are commonly missed.

  2. 02

    Routing forms are a second capture surface

    Cal.com routing forms sit in front of the booking and are easy to forget. An identifier captured on the booking page but not on the routing form leaves a hole in exactly the traffic that used routing.

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

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

Cal.com → PostHog · the fix

What working looks like — Cal.com → PostHog

  • The distinct_id on every booking

  • Conversions arriving in PostHog

    The event lands on the person profile and becomes available in insights, funnels and session replay.

  • Reconciled against the source

Cal.com → PostHog · architecture

How Cal.com and PostHog actually connect

  1. 1

    Cal.com holds the truth

    The booking carries the attendee, the event type, the time and any custom booking-question responses. Self-hosted instances give you direct database access, which makes reconciliation genuinely easy compared with every other booking tool.

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

    The identifier is the bridge

    The distinct_id, captured at the visit and carried into the Cal.com booking.

  4. 4

    The event source decides reliability

    Send from your server on the webhook, and handle BOOKING_CANCELLED for reversals. Self-hosted instances can read from the database instead, which is the most reliable option available on any booking platform.

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

Cal.com → PostHog · normal or broken

Working vs. broken, side by side — Cal.com → PostHog

Normal, not a fault

  • The distinct_id present on the booking

  • Sent from the BOOKING_CREATED webhook

  • 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

    As with any hosted booking page, the identifier must be passed on the booking URL and captured into a booking question. Cal.com's routing forms add a second surface that also needs to carry it, and they are commonly missed.

  • Sent from the browser

    Cal.com routing forms sit in front of the booking and are easy to forget. An identifier captured on the booking page but not on the routing form leaves a hole in exactly the traffic that used routing.

  • 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

Cal.com → PostHog · diagnose

Diagnostic order — Cal.com → PostHog

  1. 01

    Count bookings carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Query recent bookings for the identifier field

    Direct database query on self-hosted, API on cloud. Then repeat for bookings that came through a routing form specifically.

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

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

Cal.com → PostHog · prove

How it gets proven — Cal.com → PostHog

Source of truth

Cal.com's bookings list for the same window, with cancellations separated.

  • The distinct_id confirmed present on a live booking.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • Coverage confirmed separately for direct bookings and for routing-form bookings.

Cal.com → PostHog · free audit

What we check in the free audit

  • Count bookings carrying the distinct_id
  • Follow one real conversion end to end
  • Query recent bookings for the identifier field
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Cal.com's bookings list for the same window, with cancellations separated.

Get my free conversion tracking audit

Free30 minutesNo obligation

Cal.com → PostHog · when not to buy

When you don't need this — Cal.com → PostHog

  • Measure identifier coverage yourself first — pull your last hundred bookings and count how many carry the distinct_id.
  • Self-hosting Cal.com already gives you the data. If you have engineering capacity in-house, this is one of the few integrations a competent developer can genuinely do alone.
  • 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.

Cal.com → PostHog · what we deliver

What gets built — Cal.com → PostHog

  • Identifier capture into Cal.com

    Add a hidden booking question, append the identifier via Cal.com's prefill query parameters, and verify through the API or directly in the database on a self-hosted instance.

  • Event source: the BOOKING_CREATED webhook

    Send from your server on the webhook, and handle BOOKING_CANCELLED for reversals. Self-hosted instances can read from the database instead, which is the most reliable option available on any booking platform.

  • 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

    BOOKING_CANCELLED and BOOKING_REJECTED both fire with the reference, so reversals are straightforward.

Written guarantee

95%+ tracking accuracy

Measured against Cal.com's bookings list for the same window, with cancellations separated.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Cal.com → PostHog questions, answered

The booking page runs on another domain with its own anonymous distinct_id. Carry your page's distinct_id into the booking and capture the event server-side.

Free · 30 min

Get Cal.com and PostHog joined properly

Free30 minutesNo obligation