Skip to main content
Drift → PostHogIntegration guide

Connecting Drift to PostHog

Drift is the one chat platform genuinely built for acquisition — its whole design is chat-to-meeting on B2B websites — which makes the booked meeting a legitimate conversion and the conversation opening still not one. 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 Drift meeting 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

Drift to PostHog: one distinct_id from chat to product signup

Capture Drift's meeting-booked event in the browser with PostHog's capture call, and set the distinct_id as a Drift user attribute. Send CRM-confirmed held meetings through the capture API with that distinct_id, building the event UUID from the meeting ID. Merge the anonymous distinct_id at signup, or meetings and product usage split.

The point of sending Drift into PostHog is to see the sales-assisted path next to the self-serve one: which pages produced held meetings, and whether those prospects went on to use the product. That only works if the meeting events sit on the same person as the later signup. Capture the meeting-booked event in the browser from Drift's JavaScript API with PostHog's capture call, so it lands on the current distinct_id, and set that distinct_id as a Drift user attribute at widget load so the server knows it later.

The held meeting comes from the CRM outcome days later and goes to PostHog's capture API from your backend with the stored distinct_id. Use the meeting's own ID to build the event UUID, so a resync of the CRM does not record the same meeting twice.

The common break is identity. When the prospect signs up after the demo, PostHog's identify call uses your user ID, and unless the anonymous distinct_id from the Drift visit is merged in at that moment, the meeting and the product usage live on two people. Signups on a different device or browser than the chat will never merge without an email-based alias, so expect a share of the funnel to stay split and say so in the report.

Drift → PostHog · what breaks

Why this join usually fails — Drift → PostHog

  1. 01

    The distinct_id never reaches Drift

    Drift's widget is a third-party frame, and the meeting scheduler frequently hands off to a calendar surface on another domain again.

  2. 02

    Bookings counted, attendance ignored

    A booked meeting costs the prospect nothing. Optimize toward it and the platform will reliably find you people happy to book and disinclined to show up.

  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.

Drift → PostHog · the fix

What working looks like — Drift → PostHog

  • The distinct_id on every meeting

  • Conversions arriving in PostHog

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

  • Reconciled against the source

Drift → PostHog · architecture

How Drift and PostHog actually connect

  1. 1

    Drift holds the truth

    Booked and held are different numbers and the gap is large. B2B demo no-show rates routinely run a third or worse, and optimizing toward bookings buys you no-shows.

  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 Drift meeting booking.

  4. 4

    The event source decides reliability

    Send held meetings, and send the CRM opportunity separately as a higher-value downstream event.

  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.

Drift → PostHog · normal or broken

Working vs. broken, side by side — Drift → PostHog

Normal, not a fault

  • The distinct_id present on the meeting

  • Sent from the Drift conversation and meeting API

  • 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

    Drift's widget is a third-party frame, and the meeting scheduler frequently hands off to a calendar surface on another domain again.

  • Sent from the browser

    A booked meeting costs the prospect nothing. Optimize toward it and the platform will reliably find you people happy to book and disinclined to show up.

  • 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

Drift → PostHog · diagnose

Diagnostic order — Drift → PostHog

  1. 01

    Count meetings carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare booked against held for one closed month

    The ratio tells you immediately whether your conversion definition is measuring intent or measuring politeness.

  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.

Drift → PostHog · prove

How it gets proven — Drift → PostHog

Source of truth

Meetings booked through Drift that were subsequently held, joined to the CRM opportunity.

  • The distinct_id confirmed present on a live meeting.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • Held meetings reconciled against imported conversions over a fully closed booking window.

Drift → PostHog · free audit

What we check in the free audit

  • Count meetings carrying the distinct_id
  • Follow one real conversion end to end
  • Compare booked against held for one closed month
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Meetings booked through Drift that were subsequently held, joined to the CRM opportunity.

Get my free conversion tracking audit

Free30 minutesNo obligation

Drift → PostHog · when not to buy

When you don't need this — Drift → PostHog

  • Measure identifier coverage yourself first — pull your last hundred meetings and count how many carry the distinct_id.
  • If your sales motion is self-serve with no meetings, Drift is a support tool for you and none of this applies.
  • 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.

Drift → PostHog · what we deliver

What gets built — Drift → PostHog

  • Identifier capture into Drift

    Pass the identifier into Drift as a contact attribute at load, and carry it through the scheduler into the calendar event so the CRM record inherits it.

  • Event source: the Drift conversation and meeting API

    Send held meetings, and send the CRM opportunity separately as a higher-value downstream event.

  • 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

    Cancelled and no-show meetings should reverse.

Written guarantee

95%+ tracking accuracy

Measured against Meetings booked through Drift that were subsequently held, joined to the CRM opportunity.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Drift → PostHog questions, answered

Capture the booked event in the browser from Drift's widget event, and send the held meeting from your server with the same distinct_id stored on the Drift contact. Then build the funnel from those two events to signup.

Free · 30 min

Get Drift and PostHog joined properly

Free30 minutesNo obligation