Skip to main content
Freshsales → PostHogIntegration guide

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

  1. 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.

  2. 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.

  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.

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. 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. 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 Freshsales deal.

  4. 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. 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

  1. 01

    Count deals carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check what share of deals originated from support rather than marketing

    Only marketing-originated deals 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.

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.

Get my free conversion tracking audit

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.

Get my free conversion tracking audit

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.

Free · 30 min

Get Freshsales and PostHog joined properly

Free30 minutesNo obligation