Skip to main content
Crisp → PostHogIntegration guide

Connecting Crisp to PostHog

Crisp bundles chat, a shared inbox and a knowledge base, so the same widget answers pre-sales questions and password resets — and only one of those has anything to do with advertising. 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 Crisp conversation 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

Crisp and PostHog on one distinct_id, with replay on chats

Join Crisp and PostHog on the distinct_id: pass PostHog's ID to Crisp as user identity or session data and store the Crisp session ID as a PostHog property. Capture chat events with posthog.capture from Crisp's JavaScript callbacks, and use webhooks with a UUID only for off-page actions. Mask the chatbox in session replay.

PostHog is the destination where a Crisp conversation can be tied to exactly what the person did on the site before and after it. The join is the distinct_id. When PostHog identifies a signed-in user, pass that same ID to Crisp as the user identity or session data, and store the Crisp session ID as a PostHog person or event property. An agent can then open the session replay of the visit that led to the chat, and an analyst can build a funnel of visits that chatted versus visits that did not.

Track chat events from Crisp's JavaScript callbacks on your page with posthog.capture, not from webhooks, so they attach to the browser session and the replay. Use webhooks only for what happens away from the page, such as an agent tagging a conversation as qualified, and send those through the capture API on the same distinct_id with a UUID so retries do not duplicate.

Be careful with replay: the Crisp chatbox renders on your page, and anything the visitor types into it can appear in a recording unless the chat element is masked. Mask it, and keep transcripts out of event properties; PostHog needs to know a conversation happened and how it was tagged, not what was said.

Crisp → PostHog · what breaks

Why this join usually fails — Crisp → PostHog

  1. 01

    The distinct_id never reaches Crisp

    The chatbox is a third-party frame, and knowledge-base articles are frequently served from a Crisp-hosted subdomain where your tracking is not present.

  2. 02

    The knowledge base outside the measured perimeter

    A visitor who lands on your site, gets routed to a Crisp-hosted help article and returns to buy looks like a direct visit. The paid click that started it is gone.

  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.

Crisp → PostHog · the fix

What working looks like — Crisp → PostHog

  • The distinct_id on every conversation

  • Conversions arriving in PostHog

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

  • Reconciled against the source

Crisp → PostHog · architecture

How Crisp and PostHog actually connect

  1. 1

    Crisp holds the truth

    Crisp captures an email early in most conversations, which is a usable join key. It is not a conversion in itself; plenty of people give an email and never buy anything.

  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 Crisp conversation.

  4. 4

    The event source decides reliability

    Send the commercial outcome. Keep conversation counts in Crisp's own reporting, where they belong.

  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.

Crisp → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the conversation

  • Sent from your order or CRM record

  • 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 chatbox is a third-party frame, and knowledge-base articles are frequently served from a Crisp-hosted subdomain where your tracking is not present.

  • Sent from the browser

    A visitor who lands on your site, gets routed to a Crisp-hosted help article and returns to buy looks like a direct visit. The paid click that started it is gone.

  • 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

Crisp → PostHog · diagnose

Diagnostic order — Crisp → PostHog

  1. 01

    Count conversations carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether help-center traffic breaks the session

    Look for a spike in direct or self-referral traffic originating at the help subdomain. That is your leak.

  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.

Crisp → PostHog · prove

How it gets proven — Crisp → PostHog

Source of truth

Your order or CRM system, with Crisp conversations joined on the email the visitor gave.

  • The distinct_id confirmed present on a live conversation.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • Commercial outcomes reconciled against imported conversions across a window long enough to include help-center detours.

Crisp → PostHog · free audit

What we check in the free audit

  • Count conversations carrying the distinct_id
  • Follow one real conversion end to end
  • Check whether help-center traffic breaks the session
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Your order or CRM system, with Crisp conversations joined on the email the visitor gave.

Get my free conversion tracking audit

Free30 minutesNo obligation

Crisp → PostHog · when not to buy

When you don't need this — Crisp → PostHog

  • Measure identifier coverage yourself first — pull your last hundred conversations and count how many carry the distinct_id.
  • Support-only use means no integration. If nobody is buying anything through chat, do not wire chat into your ad accounts.
  • 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.

Crisp → PostHog · what we deliver

What gets built — Crisp → PostHog

  • Identifier capture into Crisp

    Set the identifier as session data when the chatbox loads, so it travels with the conversation into whatever the contact becomes.

  • Event source: your order or CRM record

    Send the commercial outcome. Keep conversation counts in Crisp's own reporting, where they belong.

  • 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

    Refunds and disqualifications reverse.

Written guarantee

95%+ tracking accuracy

Measured against Your order or CRM system, with Crisp conversations joined on the email the visitor gave.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Crisp → PostHog questions, answered

Use the same user ID in both, and store the Crisp session ID as a PostHog property. Mask the chat element so typed messages are not recorded.

Free · 30 min

Get Crisp and PostHog joined properly

Free30 minutesNo obligation