Connecting Clio to PostHog
Clio is legal practice management, so it holds the matter and the billing for law firms where a single signed case can justify an entire quarter of advertising. 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 Clio matter 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
Intake funnel to opened Clio matter in PostHog, replay masked
Capture PostHog's distinct_id when a multi-step intake flow submits, write it to a Clio contact custom field, and send a server-side capture event with that distinct_id when the matter opens, carrying expected value and the matter ID. Mask every session replay input and exclude narrative fields, since intake text describes arrests or injuries. Phone intake gets no distinct_id.
PostHog earns its place at firms whose intake is a multi-step online flow rather than a contact form: an eligibility checker, a document upload, a scheduling step. Capture PostHog's distinct_id when the flow submits, write it to a Clio contact custom field, and when the matter opens send a server-side capture event with that same distinct_id. The funnel then runs from first step to opened matter, which shows which intake step loses the clients worth having.
Session replay is the risk specific to this pair. Intake forms are where people type what happened to them: the arrest, the injury, the immigration status, the custody dispute. Recorded unmasked, that text sits in PostHog. Mask every input by default, exclude the narrative fields entirely, and if you self-host, treat the PostHog database as holding confidential client communications, because it may.
Keep the matter event thin: an event name, expected value by matter type, and the Clio matter ID as a property so you can reconcile. No practice area labels that would let anyone browsing insights read who needed which kind of lawyer. Firms whose clients mostly call rather than fill in a flow will see little here; the phone path never gets a distinct_id.
Clio → PostHog · what breaks
Why this join usually fails — Clio → PostHog
- 01
The distinct_id never reaches Clio
The identifier has to survive from the website through intake into the matter record, and in most firms intake is a separate system or a person with a notepad. That handoff is where legal attribution dies.
- 02
Intake as a black hole
The web form has the identifier and the matter record does not, because a human retyped the details into Clio. This single handoff explains most broken law firm attribution.
- 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.
Clio → PostHog · the fix
What working looks like — Clio → PostHog
The distinct_id on every matter
Conversions arriving in PostHog
The event lands on the person profile and becomes available in insights, funnels and session replay.
Reconciled against the source
Clio → PostHog · architecture
How Clio and PostHog actually connect
- 1
Clio holds the truth
A matter opened is the acquisition event; billed revenue accrues over months or years afterwards. Which one a report means has to be stated, because in legal the two are very far apart.
- 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 Clio matter.
- 4
The event source decides reliability
Fire when a matter is opened, valued at expected case value by practice area rather than at billed-to-date.
- 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.
Clio → PostHog · normal or broken
Working vs. broken, side by side — Clio → PostHog
Normal, not a fault
The distinct_id present on the matter
Sent from the Clio matter creation 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
Actually broken
The distinct_id missing on most records
The identifier has to survive from the website through intake into the matter record, and in most firms intake is a separate system or a person with a notepad. That handoff is where legal attribution dies.
Sent from the browser
The web form has the identifier and the matter record does not, because a human retyped the details into Clio. This single handoff explains most broken law firm attribution.
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
Clio → PostHog · diagnose
Diagnostic order — Clio → PostHog
- 01
Count matters carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Open a recent matter and look for the identifier
If intake is manual, coverage will be poor and no downstream work fixes it — the fix is at intake.
- 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.
Clio → PostHog · prove
How it gets proven — Clio → PostHog
Source of truth
Clio's matters opened by open date, and billed revenue by matter, for the same window.
- The distinct_id confirmed present on a live matter.
- Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
- A matter confirmed to carry the identifier from the original web enquiry.
Clio → PostHog · free audit
What we check in the free audit
- Count matters carrying the distinct_id
- Follow one real conversion end to end
- Open a recent matter and look for the identifier
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Clio's matters opened by open date, and billed revenue by matter, for the same window.
Free30 minutesNo obligation
Clio → PostHog · when not to buy
When you don't need this — Clio → PostHog
- Measure identifier coverage yourself first — pull your last hundred matters and count how many carry the distinct_id.
- If your intake is entirely manual and cannot be changed, measure what coverage you can achieve honestly before committing to a build.
- 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.
Clio → PostHog · what we deliver
What gets built — Clio → PostHog
Identifier capture into Clio
Write the identifier to a custom field on the Clio contact at intake, and carry it onto the matter when the matter is opened.
Event source: the Clio matter creation webhook
Fire when a matter is opened, valued at expected case value by practice area rather than at billed-to-date.
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
Matters closed without billing should not stand as conversions.
Written guarantee
95%+ tracking accuracy
Measured against Clio's matters opened by open date, and billed revenue by matter, for the same window.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Clio → PostHog questions, answered
Yes, if the distinct_id from the intake flow is stored on the Clio contact and a server-side event is sent with it when the matter opens.
Only with every input masked and narrative fields excluded. Unmasked replay records what prospective clients type about their legal problem.
Almost always because the distinct_id never reached the Clio matter. The identifier has to survive from the website through intake into the matter record, and in most firms intake is a separate system or a person with a notepad. That handoff is where legal attribution dies. 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.
The Clio matter creation webhook. Fire when a matter is opened, valued at expected case value by practice area rather than at billed-to-date.
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 Clio → PostHog
- Clio → Google AdsConnecting Clio to Google Ads
- Clio → MetaConnecting Clio to Meta Conversions API
- Clio → GA4Connecting Clio to GA4
RELATED GUIDES
Where Clio → PostHog fits in the rest of your tracking
- Copper → PostHogConnecting Copper to PostHog
- GoHighLevel → PostHogConnecting GoHighLevel to PostHog
- Freshsales → PostHogConnecting Freshsales to PostHog
- Clio → AmplitudeConnecting Clio to Amplitude
- Clio → Adobe AnalyticsConnecting Clio to Adobe Analytics
- Home servicesConversion tracking for home service businesses, measured in completed jobs
- Nimble → PostHogConnecting Nimble to PostHog
- Insightly → PostHogConnecting Insightly to PostHog
Free · 30 min
Get Clio and PostHog joined properly
Free30 minutesNo obligation
