Skip to main content
Close → PostHogIntegration guide

Connecting Close to PostHog

Close is a sales CRM built around calling and email sequences, which means most of what it records is outbound activity rather than inbound marketing. 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 Close opportunity 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

PostHog product signals into Close, sales outcomes back

Store the PostHog group key on the Close lead when the product creates it, then send opportunity won back to PostHog with that group key and the buyer's distinct_id if known. Send outbound wins too, flagged, since no usage before a sale is informative. Exclude internal users and rep demo accounts.

PostHog fits product-led companies where a rep closes larger plans on Close after free usage. The richer flow often runs from PostHog to Close: product-qualified accounts, such as teams that invited five users, become Close leads or tasks for reps. The return flow sends opportunity won back to PostHog, so funnels can show which in-product behavior preceded a sale.

The identity mapping is the work. A Close lead is a company, and PostHog's group analytics can track a company as a group, so send the won event with the company's group key attached and with the distinct_id of the buyer if you know it. Store the PostHog group key on the Close lead when the product creates it; matching later on company name produces wrong joins between similar names.

Outbound wins with no product usage should still be sent, flagged, because the absence of usage before a sale is useful information in PostHog. What should not happen is a rep's demo account, or a customer's login during a sales call, polluting the funnel. Exclude internal users by email domain in PostHog, and keep sales-assisted signups distinguishable from self-serve ones.

Close → PostHog · what breaks

Why this join usually fails — Close → PostHog

  1. 01

    The distinct_id never reaches Close

    The identifier has to reach the lead and then the opportunity, and Close's model means many records originate from outbound prospecting with no marketing touch at all. Those must be distinguishable or they contaminate every conversion number.

  2. 02

    Outbound prospecting credited to paid

    Close is built for outbound. If lead source is not recorded and filtered, won deals from cold calling will be attributed to whichever campaign happened to be running.

  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.

Close → PostHog · the fix

What working looks like — Close → PostHog

  • The distinct_id on every opportunity

  • Conversions arriving in PostHog

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

  • Reconciled against the source

Close → PostHog · architecture

How Close and PostHog actually connect

  1. 1

    Close holds the truth

    Close's strength is activity data — calls, emails, sequences. The commercial record is the opportunity, and separating inbound-sourced opportunities from outbound-prospected ones is essential or your paid channels get credit for cold calling.

  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 Close opportunity.

  4. 4

    The event source decides reliability

    Fire when an opportunity is marked won, from inbound-sourced leads only, with the opportunity value.

  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.

Close → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the opportunity

  • Sent from the Close opportunity status 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

    PostHog's count and Close's records agree within a few percent over a closed window.

Actually broken

  • The distinct_id missing on most records

    The identifier has to reach the lead and then the opportunity, and Close's model means many records originate from outbound prospecting with no marketing touch at all. Those must be distinguishable or they contaminate every conversion number.

  • Sent from the browser

    Anyone who closes the tab, blocks the script or converts without a page load is invisible. Close is built for outbound. If lead source is not recorded and filtered, won deals from cold calling will be attributed to whichever campaign happened to be running.

  • 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

Close → PostHog · diagnose

Diagnostic order — Close → PostHog

  1. 01

    Count opportunitys carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check what share of won opportunities originated inbound

    In an outbound-heavy Close instance it is often a small minority, and only that minority should reach an ad platform.

  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.

Close → PostHog · prove

How it gets proven — Close → PostHog

Source of truth

Close's won opportunities by close date, at their values.

  • The distinct_id confirmed present on a live opportunity.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • Won opportunities confirmed filtered to inbound-sourced leads before anything is sent.
  • Reconciled over a fully closed window, matched per record rather than on totals.

Close → PostHog · free audit

What we check in the free audit

  • Count opportunitys carrying the distinct_id
  • Follow one real conversion end to end
  • Check what share of won opportunities originated inbound
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Close's won opportunities by close date, at their values.

Get my free conversion tracking audit

Free30 minutesNo obligation

Close → PostHog · when not to buy

When you don't need this — Close → PostHog

  • Measure identifier coverage yourself first — pull your last hundred opportunitys and count how many carry the distinct_id.
  • If your pipeline is almost entirely outbound, there is very little for paid attribution to measure and we would say so.
  • 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.

Close → PostHog · what we deliver

What gets built — Close → PostHog

  • Identifier capture into Close

    Write the identifier to a custom field on the lead at creation and carry it to the opportunity, and flag lead source so outbound-created records are separable.

  • Event source: the Close opportunity status webhook

    Fire when an opportunity is marked won, from inbound-sourced leads only, with the opportunity value.

  • 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

    An opportunity reopened and lost should not leave a conversion standing.

Written guarantee

95%+ tracking accuracy

Measured against Close's won opportunities by close date, at their values.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Close → PostHog questions, answered

Yes, through your own webhook or pipeline from PostHog events to the Close API, carrying the PostHog group key so the won deal can be sent back.

Free · 30 min

Get Close and PostHog joined properly

Free30 minutesNo obligation