Connecting Freshsales to PostHog
Freshsales is Freshworks' CRM, usually bought alongside their support and marketing products, which means contact records arrive from several directions. 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 Freshsales deal 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
Freshsales deals in PostHog: which product use precedes a sale
Write your product user ID and company ID onto the Freshsales contact when the trial starts. On won, the workflow webhook calls your server, which sends PostHog a deal won event with that distinct_id, the company group key, value and plan, and a UUID derived from the deal ID. Never invent distinct_ids for sales-led deals without product users.
PostHog and Freshsales answer a question neither answers alone: what did a trial account do in the product before sales closed it? Send the won deal from Freshsales into PostHog as an event, attached to the company through PostHog group analytics, and you can compare product behavior between accounts that bought and those that did not.
The join is the PostHog distinct_id, which should be your product user ID. Freshsales does not know it unless you put it there, so write the user ID and your company or workspace ID onto the Freshsales contact when the trial starts. On the won transition, the workflow webhook calls your server, which sends a deal won event with that distinct_id, the company group key, deal value and plan. Use a UUID derived from the Freshsales deal ID so a retried webhook does not create a second event.
The common break is sales-led deals with no product user at all. A buyer who signs after a demo may never have logged in, and the Freshsales contact has no distinct_id. Do not invent one per deal, or PostHog fills with one-event users. Either send the event against an existing user in the same company group, or leave those deals in Freshsales and report the share of won deals PostHog can see.
Freshsales → PostHog · what breaks
Why this join usually fails — Freshsales → PostHog
- 01
The distinct_id never reaches Freshsales
Contacts can originate in Freshdesk, in Freshmarketer, or in Freshsales itself, and a custom field populated on one path is empty on the others. Support-originated contacts in particular carry no marketing context at all.
- 02
Contacts arriving from the support product
In a Freshworks stack, existing customers raising tickets create contacts that look identical to new leads. Counting them credits acquisition for your own support volume.
- 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.
Freshsales → PostHog · the fix
What working looks like — Freshsales → PostHog
The distinct_id on every deal
Conversions arriving in PostHog
The event lands on the person profile and becomes available in insights, funnels and session replay.
Reconciled against the source
Freshsales → PostHog · architecture
How Freshsales and PostHog actually connect
- 1
Freshsales holds the truth
Freshsales runs its own lead scoring and contact lifecycle stages, which are useful internally and are not conversion events. Only the deal is money.
- 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 Freshsales deal.
- 4
The event source decides reliability
Fire on the transition to won, carrying the deal value. Not on lead score thresholds, which are an internal signal.
- 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.
Freshsales → PostHog · normal or broken
Working vs. broken, side by side — Freshsales → PostHog
Normal, not a fault
The distinct_id present on the deal
Sent from a Freshsales workflow webhook on deal stage 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
Contacts can originate in Freshdesk, in Freshmarketer, or in Freshsales itself, and a custom field populated on one path is empty on the others. Support-originated contacts in particular carry no marketing context at all.
Sent from the browser
In a Freshworks stack, existing customers raising tickets create contacts that look identical to new leads. Counting them credits acquisition for your own support volume.
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
Freshsales → PostHog · diagnose
Diagnostic order — Freshsales → PostHog
- 01
Count deals carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Check what share of deals originated from support rather than marketing
Only marketing-originated deals should reach an ad platform.
- 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.
Freshsales → PostHog · prove
How it gets proven — Freshsales → PostHog
Source of truth
Freshsales deals marked won by close date, at their deal values.
- The distinct_id confirmed present on a live deal.
- Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
- A deal confirmed to carry the identifier from the original web enquiry rather than from a support ticket.
Freshsales → PostHog · free audit
What we check in the free audit
- Count deals carrying the distinct_id
- Follow one real conversion end to end
- Check what share of deals originated from support rather than marketing
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Freshsales deals marked won by close date, at their deal values.
Free30 minutesNo obligation
Freshsales → PostHog · when not to buy
When you don't need this — Freshsales → PostHog
- Measure identifier coverage yourself first — pull your last hundred deals and count how many carry the distinct_id.
- If most of your deals come from existing customers via support, paid attribution has very little to reach.
- 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.
Freshsales → PostHog · what we deliver
What gets built — Freshsales → PostHog
Identifier capture into Freshsales
Create the custom field on both contact and deal, populate it at contact creation from the web form, and copy it onto the deal via workflow.
Event source: a Freshsales workflow webhook on deal stage change
Fire on the transition to won, carrying the deal value. Not on lead score thresholds, which are an internal signal.
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
Deals reopened and later lost should not leave a conversion standing.
Written guarantee
95%+ tracking accuracy
Measured against Freshsales deals marked won by close date, at their deal values.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Freshsales → PostHog questions, answered
Store your product user ID and company ID on the Freshsales contact, then send a deal won event from the won-stage webhook with that distinct_id and the company group.
Yes, with group analytics keyed on your company ID, provided the Freshsales deal can be tied back to at least one product user at that company.
Almost always because the distinct_id never reached the Freshsales deal. Contacts can originate in Freshdesk, in Freshmarketer, or in Freshsales itself, and a custom field populated on one path is empty on the others. Support-originated contacts in particular carry no marketing context at all. 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 Freshsales workflow webhook on deal stage change. Fire on the transition to won, carrying the deal value. Not on lead score thresholds, which are an internal signal.
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 Freshsales → PostHog
- Freshsales → Google AdsConnecting Freshsales to Google Ads
- Freshsales → MetaConnecting Freshsales to Meta Conversions API
- Freshsales → GA4Connecting Freshsales to GA4
RELATED GUIDES
Where Freshsales → PostHog fits in the rest of your tracking
- Less Annoying CRM → PostHogConnecting Less Annoying CRM to PostHog
- Nutshell → PostHogConnecting Nutshell to PostHog
- monday → PostHogConnecting monday CRM to PostHog
- Freshsales → AmplitudeConnecting Freshsales to Amplitude
- Freshsales → GA4Connecting Freshsales to GA4
- Law firmsConversion tracking for law firms, without sending case details anywhere
- Close → PostHogConnecting Close to PostHog
- Zoho → PostHogConnecting Zoho CRM to PostHog
Free · 30 min
Get Freshsales and PostHog joined properly
Free30 minutesNo obligation
