Skip to main content
Keap → PostHogIntegration guide

Connecting Keap to PostHog

Keap holds the order, the subscription and the opportunity for small businesses running on automation. 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 Keap contact record 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

Keap to PostHog: tying Keap payments to product usage

Alias the anonymous PostHog visitor to the member's email or your own user ID at signup, then send Keap's paid-order event with that value as distinct_id, plus Keap contact and order IDs as properties. Derive the event UUID from the Keap order ID, since re-run sequences can repeat posts. Send only money events and cancellations.

PostHog fits Keap businesses that sell something people log into: a course portal, a membership site, a client dashboard. The question there is whether paying customers actually use what they bought. Keap knows who paid; PostHog knows what they did afterwards. The join is a distinct_id both sides agree on, and Keap does not supply one by default.

Use a stable key you control. If your members area identifies users by email, alias the anonymous PostHog visitor to that email at signup, then send Keap's paid-order event with the same value as distinct_id, plus the Keap contact ID and order ID as properties. Derive the event UUID from the Keap order ID so a repeated post does not record two purchases. That matters with Keap, because re-running a sequence for a contact can fire the same HTTP post again.

The common break: the Keap order form sits on a Keap-hosted page, so the PostHog session that saw the ad ends at checkout, and the purchase lands on a separate person unless it is keyed by email or your own user ID. Do not send Keap tags or email clicks into PostHog as events. They describe your marketing automation, not product behavior, and they crowd usage out of funnels. Send money events and cancellations, nothing else from Keap.

Keap → PostHog · what breaks

Why this join usually fails — Keap → PostHog

  1. 01

    The distinct_id never reaches Keap

    Keap's automation touches contacts constantly, so an identifier written to a contact field without a guard will be overwritten by a later nurture sequence, quietly reassigning credit from paid acquisition to your own email.

  2. 02

    Tags that look like conversions and are not

    Sending tag applications teaches an ad platform to find people who trigger your own automation, which is a far larger and far less valuable population than your buyers.

  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.

Keap → PostHog · the fix

What working looks like — Keap → PostHog

  • The distinct_id on every order

  • Conversions arriving in PostHog

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

  • Reconciled against the source

Keap → PostHog · architecture

How Keap and PostHog actually connect

  1. 1

    Keap holds the truth

    Keap carries two money models at once — product orders and service opportunities — and which applies depends on what the business sells.

  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 Keap contact record.

  4. 4

    The event source decides reliability

    Fire on order paid or opportunity won. Not on tag applied — Keap tags come from automated sequences as readily as from sales events and nothing outside Keap can tell them apart.

  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.

Keap → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the order

  • Sent from an HTTP post from a Keap automation on a money event

  • 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

    Keap's automation touches contacts constantly, so an identifier written to a contact field without a guard will be overwritten by a later nurture sequence, quietly reassigning credit from paid acquisition to your own email.

  • Sent from the browser

    Sending tag applications teaches an ad platform to find people who trigger your own automation, which is a far larger and far less valuable population than your buyers.

  • 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

Keap → PostHog · diagnose

Diagnostic order — Keap → PostHog

  1. 01

    Count orders carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether the identifier field survives a nurture click

    Look at a contact who engaged after converting. If the field changed, your email is taking credit from paid.

  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.

Keap → PostHog · prove

How it gets proven — Keap → PostHog

Source of truth

Keap's paid orders and won opportunities by date, at their amounts.

  • The distinct_id confirmed present on a live order.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • A contact confirmed to retain its original identifier after a later automation touch.

Keap → PostHog · free audit

What we check in the free audit

  • Count orders carrying the distinct_id
  • Follow one real conversion end to end
  • Check whether the identifier field survives a nurture click
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Keap's paid orders and won opportunities by date, at their amounts.

Get my free conversion tracking audit

Free30 minutesNo obligation

Keap → PostHog · when not to buy

When you don't need this — Keap → PostHog

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the distinct_id.
  • If money is taken in a separate system you already track, the Keap side may only need the identifier preserved.
  • 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.

Keap → PostHog · what we deliver

What gets built — Keap → PostHog

  • Identifier capture into Keap

    Write the identifier to a custom contact field once at first touch, with a condition preventing later sequences from rewriting it.

  • Event source: an HTTP post from a Keap automation on a money event

    Fire on order paid or opportunity won. Not on tag applied — Keap tags come from automated sequences as readily as from sales events and nothing outside Keap can tell them apart.

  • 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 are recorded and should reduce the reported figure.

Written guarantee

95%+ tracking accuracy

Measured against Keap's paid orders and won opportunities by date, at their amounts.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Keap → PostHog questions, answered

Yes, if the paid-order event and the product events share a distinct_id, typically email or your own user ID. A cohort of paying customers can then be filtered by usage.

Free · 30 min

Get Keap and PostHog joined properly

Free30 minutesNo obligation