Connecting Nutshell to PostHog
Nutshell is a small-business CRM with marketing features attached, which means the same platform sends the emails and records the deals. 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 Nutshell lead 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
Nutshell to PostHog: put won deals on the company, not the person
Match the Nutshell contact to your user by email and to PostHog's distinct_id. Because a Nutshell lead is a company deal, set won status, plan, contract value and close date on the PostHog company group, plus one deal-won event with a UUID derived from the Nutshell lead ID. Check your plan includes groups.
PostHog shows how people used the product; Nutshell shows which accounts paid. Joining them answers the question product-led teams actually ask: what did the accounts that bought do during the trial? The join key is your own user ID, used as PostHog's distinct_id. Nutshell's contact ID appears nowhere in PostHog, so match the Nutshell contact to your user by email, then to the distinct_id.
Because a Nutshell lead is a company deal, the cleaner model is PostHog group analytics: the won lead sets properties on the company group, such as customer status, plan, contract value and close date, rather than firing a revenue event on whichever individual happened to be the contact. Otherwise a deal with four users either records revenue four times or credits only the signer's trial behavior. Check your PostHog plan includes groups.
Send a single deal-won event as well, with its UUID derived from the Nutshell lead ID so a retried webhook can't duplicate it on a self-hosted instance. And if Nutshell leads come from your website forms rather than product signups, capture the PostHog distinct_id into the Nutshell form at submission, so a won lead can be traced back to the anonymous visits that preceded it.
Nutshell → PostHog · what breaks
Why this join usually fails — Nutshell → PostHog
- 01
The distinct_id never reaches Nutshell
Nutshell's own email marketing touches contacts repeatedly, and an unguarded custom field will be overwritten by later activity — handing credit for paid-acquired customers to your own email.
- 02
Vocabulary that inverts the usual meaning
In Nutshell a lead is what other CRMs call an opportunity. Teams routinely build conversions on the wrong object because they assumed the standard meaning.
- 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.
Nutshell → PostHog · the fix
What working looks like — Nutshell → PostHog
The distinct_id on every lead
Conversions arriving in PostHog
The event lands on the person profile and becomes available in insights, funnels and session replay.
Reconciled against the source
Nutshell → PostHog · architecture
How Nutshell and PostHog actually connect
- 1
Nutshell holds the truth
Nutshell calls its opportunity object a lead, which confuses every conversation about lead-versus-deal. Establish the vocabulary before agreeing what a conversion is.
- 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 Nutshell lead.
- 4
The event source decides reliability
Fire on won, with the value. Email engagement is reporting, never a conversion.
- 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.
Nutshell → PostHog · normal or broken
Working vs. broken, side by side — Nutshell → PostHog
Normal, not a fault
The distinct_id present on the lead
Sent from a Nutshell webhook on lead status 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
Actually broken
The distinct_id missing on most records
Nutshell's own email marketing touches contacts repeatedly, and an unguarded custom field will be overwritten by later activity — handing credit for paid-acquired customers to your own email.
Sent from the browser
In Nutshell a lead is what other CRMs call an opportunity. Teams routinely build conversions on the wrong object because they assumed the standard meaning.
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
Nutshell → PostHog · diagnose
Diagnostic order — Nutshell → PostHog
- 01
Count leads carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Confirm which Nutshell object your team means by lead
Getting this wrong produces a conversion feed built on the wrong record entirely.
- 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.
Nutshell → PostHog · prove
How it gets proven — Nutshell → PostHog
Source of truth
Nutshell leads marked won by close date, at their values.
- The distinct_id confirmed present on a live lead.
- Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
- The object model confirmed in writing, with the identifier surviving a later marketing email touch.
Nutshell → PostHog · free audit
What we check in the free audit
- Count leads carrying the distinct_id
- Follow one real conversion end to end
- Confirm which Nutshell object your team means by lead
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Nutshell leads marked won by close date, at their values.
Free30 minutesNo obligation
Nutshell → PostHog · when not to buy
When you don't need this — Nutshell → PostHog
- Measure identifier coverage yourself first — pull your last hundred leads and count how many carry the distinct_id.
- If money is taken in a separate system, that system is authoritative and Nutshell holds the pipeline only.
- 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.
Nutshell → PostHog · what we deliver
What gets built — Nutshell → PostHog
Identifier capture into Nutshell
Write the identifier to a custom field at contact creation with a guard against later overwriting.
Event source: a Nutshell webhook on lead status change
Fire on won, with the value. Email engagement is reporting, never a conversion.
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
Leads reopened and lost should not stand.
Written guarantee
95%+ tracking accuracy
Measured against Nutshell leads marked won by close date, at their values.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Nutshell → PostHog questions, answered
From the Nutshell lead-status webhook, call PostHog's capture API with your user's distinct_id, and set the deal fields on the company group if you use group analytics.
If your product already identifies users by an internal ID, a second ID creates a separate person. Use the same ID your product passes when it identifies the user.
Almost always because the distinct_id never reached the Nutshell lead. Nutshell's own email marketing touches contacts repeatedly, and an unguarded custom field will be overwritten by later activity — handing credit for paid-acquired customers to your own email. 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 Nutshell webhook on lead status change. Fire on won, with the value. Email engagement is reporting, never a conversion.
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 Nutshell → PostHog
- Nutshell → Google AdsConnecting Nutshell to Google Ads
- Nutshell → MetaConnecting Nutshell to Meta Conversions API
- Nutshell → GA4Connecting Nutshell to GA4
RELATED GUIDES
Where Nutshell → PostHog fits in the rest of your tracking
- Zoho → PostHogConnecting Zoho CRM to PostHog
- Zoho Books → PostHogConnecting Zoho Books to PostHog
- Keap → PostHogConnecting Keap to PostHog
- Nutshell → AmplitudeConnecting Nutshell to Amplitude
- Nutshell → MatomoConnecting Nutshell to Matomo
- Home servicesConversion tracking for home service businesses, measured in completed jobs
- Close → PostHogConnecting Close to PostHog
- Copper → PostHogConnecting Copper to PostHog
Free · 30 min
Get Nutshell and PostHog joined properly
Free30 minutesNo obligation
