Connecting Capsule CRM to PostHog
Capsule is a deliberately simple CRM for small businesses, which means fewer places for the identifier to hide and fewer features to work with. 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 Capsule 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
Capsule wins in PostHog: group the deal under the company
When someone signs up, write the PostHog distinct_id onto the Capsule party and link the organization. At the won milestone, capture a server-side event against that distinct_id with value and an event UUID derived from the opportunity ID, attached to a company group keyed on the Capsule organization party ID. Check the previous milestone so reopened wins send once.
For a SaaS company whose product analytics run on PostHog and whose larger deals close in Capsule, the useful question is which product behavior precedes a won deal. The join starts in the product: when someone signs up, your backend creates or updates the Capsule party and writes the PostHog distinct_id into a custom field, and links the person to their organization party.
When the opportunity reaches won, capture a server-side event against that distinct_id with the value and the opportunity ID, and use the opportunity ID to derive the event UUID so a repeated webhook does not create a second event. If you use PostHog's group analytics, attach the event to a company group keyed on the Capsule organization party ID, because B2B deals are signed by a company, and the person who signed may not be the person who used the product most.
Capsule fires its webhook on opportunity updates in general, so check the previous milestone before sending. A deal that is reopened and won again should produce one won event, not two, or the funnel from trial to paid will overstate conversion.
Capsule → PostHog · what breaks
Why this join usually fails — Capsule → PostHog
- 01
The distinct_id never reaches Capsule
Custom fields exist on parties and opportunities but must be populated deliberately, and Capsule's web-form capture is basic enough that many small businesses enter records by hand.
- 02
Manual record entry
At Capsule's typical business size, records are frequently created by a person retyping details from an email. Nothing typed by hand carries a click identifier.
- 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.
- 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.
Capsule → PostHog · the fix
What working looks like — Capsule → 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
Capsule CRM's own records are the reference, not either dashboard.
Capsule → PostHog · architecture
How Capsule and PostHog actually connect
- 1
Capsule CRM holds the truth
Capsule's simplicity is an advantage here — one party record, one opportunity, and a clear won state. There is less to get wrong than in an enterprise CRM.
- 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
The identifier is the bridge
The distinct_id, captured at the visit and carried into the Capsule opportunity.
- 4
The event source decides reliability
Fire on the won milestone with the opportunity value.
- 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.
Capsule → PostHog · normal or broken
Working vs. broken, side by side — Capsule → PostHog
Normal, not a fault
The distinct_id present on the opportunity
Visible on the record itself in Capsule CRM, not merely captured somewhere on the site.
Sent from a Capsule webhook on opportunity milestone change
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 Capsule CRM's records agree within a few percent over a closed window.
Actually broken
The distinct_id missing on most records
Custom fields exist on parties and opportunities but must be populated deliberately, and Capsule's web-form capture is basic enough that many small businesses enter records by hand.
Sent from the browser
At Capsule's typical business size, records are frequently created by a person retyping details from an email. Nothing typed by hand carries a click identifier.
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
The dashboard shows a number and no one has compared it to Capsule CRM.
Capsule → PostHog · diagnose
Diagnostic order — Capsule → PostHog
- 01
Count opportunitys carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Check what share of parties were created via the API rather than manually
Manual creation is the coverage ceiling and it is an operational fix, not a technical one.
- 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.
- 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.
Capsule → PostHog · prove
How it gets proven — Capsule → PostHog
Against Capsule CRM's own records, not against either platform's dashboard.
Source of truth
Capsule opportunities marked won 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.
- A web-form-originated party confirmed to carry the identifier onto its opportunity.
Capsule → 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 parties were created via the API rather than manually
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Capsule opportunities marked won by close date, at their values.
Free30 minutesNo obligation
Capsule → PostHog · when not to buy
When you don't need this — Capsule → PostHog
- If PostHog already reports conversions that reconcile against Capsule CRM's records within a few percent, this join is working and there is nothing to buy.
- Measure identifier coverage yourself first — pull your last hundred opportunitys and count how many carry the distinct_id.
- This is a small build. If you have a developer, the API work is an afternoon 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.
Capsule → PostHog · what we deliver
What gets built — Capsule → PostHog
Identifier capture into Capsule
Add a custom field to the party, populate it from the web form via the API, and carry it onto the opportunity when created.
Event source: a Capsule webhook on opportunity milestone change
Fire on the won milestone 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
Opportunities reopened should not double-count when they win again.
Written guarantee
95%+ tracking accuracy
Measured against Capsule opportunities marked won by close date, at their values.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Capsule → PostHog questions, answered
Store the distinct_id on the Capsule party at sign-up, then on the won milestone capture a server-side event with that ID and a UUID derived from the opportunity ID.
Both, if you use group analytics: the person who signed, plus a company group keyed on the Capsule organization party.
Almost always because the distinct_id never reached the Capsule opportunity. Custom fields exist on parties and opportunities but must be populated deliberately, and Capsule's web-form capture is basic enough that many small businesses enter records by hand. Measure coverage before debugging the dispatch.
PostHog identifies by distinct_id with an alias call to merge anonymous and identified users. On a self-hosted instance you also control the ingestion endpoint, which means the identifier survives ad blockers that would kill a third-party pixel — one of the few genuine technical advantages available to a first-party setup.
A Capsule webhook on opportunity milestone change. Fire on the won milestone with the opportunity value.
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.
More on Capsule → PostHog
- Capsule → Google AdsConnecting Capsule CRM to Google Ads
- Capsule → MetaConnecting Capsule CRM to Meta Conversions API
- Capsule → GA4Connecting Capsule CRM to GA4
RELATED GUIDES
Where Capsule → PostHog fits in the rest of your tracking
- GoHighLevel → PostHogConnecting GoHighLevel to PostHog
- Nimble → PostHogConnecting Nimble to PostHog
- HubSpot → PostHogConnecting HubSpot to PostHog
- Capsule → GA4Connecting Capsule CRM to GA4
- Capsule → MatomoConnecting Capsule CRM to Matomo
- Law firmsConversion tracking for law firms, without sending case details anywhere
- Less Annoying CRM → PostHogConnecting Less Annoying CRM to PostHog
- SugarCRM → PostHogConnecting SugarCRM to PostHog
Free · 30 min
Get Capsule and PostHog joined properly
Free30 minutesNo obligation
