Skip to main content
Intercom → PostHogIntegration guide

Connecting Intercom to PostHog

Intercom is mostly a support inbox with a sales product attached, and the difference between those two conversation types is the difference between a lead and a ticket. 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 Intercom 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

Intercom conversations as PostHog events tied to product usage

Make PostHog's distinct_id and Intercom's user_id the same user ID, then send conversation events from an Intercom webhook to PostHog's capture API: started, topic tag, and pre-sales or support. For anonymous visitors, pass PostHog's ID into Intercom as a custom attribute at boot. Derive event UUIDs from the conversation ID and keep message content out of properties.

PostHog and Intercom usually sit in the same product, so the join is simple if both use your user ID: PostHog's distinct_id after identify and Intercom's user_id should be the same value. With that in place, send conversation events from an Intercom webhook to PostHog's capture API: conversation started, the topic tag, and whether it was pre-sales or support.

The value is in what PostHog can then answer. Which feature or screen people were on in the hour before they contacted support, and whether a release raised it. Whether trial users who had a pre-sales conversation activate or convert at a different rate from those who did not, which is the evidence for or against staffing chat for prospects. Neither question can be answered in Intercom alone, and neither involves an ad platform.

For anonymous visitors on the marketing site, the IDs differ until signup: PostHog has an anonymous distinct_id and Intercom a lead. Pass PostHog's ID to Intercom as a custom attribute at boot so pre-signup conversation events can be captured against the same anonymous person and merged when they sign up. Derive each event's UUID deterministically from the conversation ID so a retried webhook does not create a second event, and keep message content out of PostHog properties.

Intercom → PostHog · what breaks

Why this join usually fails — Intercom → PostHog

  1. 01

    The distinct_id never reaches Intercom

    The Messenger runs in an Intercom-served frame with its own storage. It does not see your page's cookies unless you deliberately pass attributes into it.

  2. 02

    Support volume optimized as if it were demand

    This is the single most common failure on chat platforms. Chat-started fires on every customer with a billing question, the platform learns that people with problems are valuable, and spend flows toward exactly the wrong audience.

  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.

Intercom → PostHog · the fix

What working looks like — Intercom → 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

Intercom → PostHog · architecture

How Intercom and PostHog actually connect

  1. 1

    Intercom holds the truth

    The overwhelming majority of conversations in a mature Intercom workspace are existing customers asking for help. Importing conversation volume as a conversion signal tells your ad platforms to go find you more support tickets.

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

  4. 4

    The event source decides reliability

    Send the qualified outcome — a booked demo or a started trial — not the conversation opening. Opening a chat is not intent, it is curiosity or confusion.

  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.

Intercom → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the conversation

  • Sent from the Intercom contact and conversation 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

    The Messenger runs in an Intercom-served frame with its own storage. It does not see your page's cookies unless you deliberately pass attributes into it.

  • Sent from the browser

    This is the single most common failure on chat platforms. Chat-started fires on every customer with a billing question, the platform learns that people with problems are valuable, and spend flows toward exactly the wrong audience.

  • 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

Intercom → PostHog · diagnose

Diagnostic order — Intercom → PostHog

  1. 01

    Count conversations carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Split conversations by whether the person is already a customer

    Run it once. On most SaaS workspaces the pre-sales share is under a fifth, which reframes the entire integration.

  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.

Intercom → PostHog · prove

How it gets proven — Intercom → PostHog

Source of truth

Intercom conversations filtered to pre-sales intent, joined to whatever they became in your CRM.

  • 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.
  • Qualified pre-sales outcomes reconciled against imported conversions, with support conversations demonstrably excluded.

Intercom → PostHog · free audit

What we check in the free audit

  • Count conversations carrying the distinct_id
  • Follow one real conversion end to end
  • Split conversations by whether the person is already a customer
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Intercom conversations filtered to pre-sales intent, joined to whatever they became in your CRM.

Get my free conversion tracking audit

Free30 minutesNo obligation

Intercom → PostHog · when not to buy

When you don't need this — Intercom → PostHog

  • Measure identifier coverage yourself first — pull your last hundred conversations and count how many carry the distinct_id.
  • If you use Intercom purely for customer support, there is no acquisition event in it and the correct integration is none.
  • 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.

Intercom → PostHog · what we deliver

What gets built — Intercom → PostHog

  • Identifier capture into Intercom

    Pass the identifier as a custom attribute at boot, so it is written onto the contact record and survives into the CRM when the conversation converts.

  • Event source: the Intercom contact and conversation API

    Send the qualified outcome — a booked demo or a started trial — not the conversation opening. Opening a chat is not intent, it is curiosity or confusion.

  • 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

    Disqualified conversations should be reversed if they were ever sent as conversions.

Written guarantee

95%+ tracking accuracy

Measured against Intercom conversations filtered to pre-sales intent, joined to whatever they became in your CRM.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Intercom → PostHog questions, answered

Post them from an Intercom webhook to PostHog's capture API, using the same user ID for distinct_id that Intercom uses for user_id.

Free · 30 min

Get Intercom and PostHog joined properly

Free30 minutesNo obligation