Connecting MyCase to PostHog
MyCase runs small law firms, where a signed matter can take months to produce fee income and the case type decides everything about its value. 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 MyCase 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
MyCase and PostHog: session replay on a legal intake form
First mask all inputs and text areas in PostHog session replay, since intake boxes capture personal accounts. At form submission, alias the anonymous ID to an opaque intake ID stored on the MyCase lead, then post matter opened through the capture API with an event UUID. Mark no-fee closures with a later event rather than deleting.
PostHog is usually added to a law firm's site for funnels and session replay, and replay is where this pair goes wrong. An intake form asks the visitor to describe their situation in a free-text box, and a replay that records that typing captures an account of someone's arrest, injury or marriage, stored next to their IP and session. Turn on masking for all inputs and text areas before anything else, and check a real recording to confirm the box shows as masked.
The join to MyCase is the distinct_id. When the form is submitted, alias the anonymous ID to an opaque intake ID, store that same ID on the MyCase lead, and post a matter-opened event through the capture API when staff open the matter, with the event UUID set so a retry does not duplicate it. That gives you a funnel from landing page to matter without putting a name or email on the person profile.
Self-hosting suits firms that want the data on their own servers, with the usual cost: if ingestion stops over a weekend, intake from that weekend never joins. Fee income stays in MyCase. Matters closed without fees can be marked with a later event rather than deleted, so the funnel keeps an honest history.
MyCase → PostHog · what breaks
Why this join usually fails — MyCase → PostHog
- 01
The distinct_id never reaches MyCase
The consultation is booked by phone or form and the matter is opened by staff days later, with no session in the chain.
- 02
Case type sent as a conversion label
Attaching a practice area to a conversion tells an ad platform that a specific person has a criminal, family or bankruptcy matter. That is a disclosure, and no optimisation benefit is worth it.
- 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.
MyCase → PostHog · the fix
What working looks like — MyCase → 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
MyCase → PostHog · architecture
How MyCase and PostHog actually connect
- 1
MyCase holds the truth
A signed retainer is a commitment; the fees arrive over the life of the matter. Which one you report changes the timing and the size of every figure.
- 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 MyCase matter.
- 4
The event source decides reliability
Send matters opened as a count, with a value if you use an average by practice area. Never send the practice area itself.
- 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.
MyCase → PostHog · normal or broken
Working vs. broken, side by side — MyCase → PostHog
Normal, not a fault
The distinct_id present on the matter
Sent from the MyCase matter record
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 consultation is booked by phone or form and the matter is opened by staff days later, with no session in the chain.
Sent from the browser
Attaching a practice area to a conversion tells an ad platform that a specific person has a criminal, family or bankruptcy matter. That is a disclosure, and no optimisation benefit is worth it.
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
MyCase → PostHog · diagnose
Diagnostic order — MyCase → PostHog
- 01
Count matters carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Read the actual conversion payload field by field
Not the documentation — the payload. Do this before anything else.
- 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.
MyCase → PostHog · prove
How it gets proven — MyCase → PostHog
Source of truth
MyCase matters opened, with fee income tracked separately as it is billed.
- 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.
- Matters opened reconciled against imported conversions, with the payload shown to carry no case detail.
MyCase → PostHog · free audit
What we check in the free audit
- Count matters carrying the distinct_id
- Follow one real conversion end to end
- Read the actual conversion payload field by field
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
MyCase matters opened, with fee income tracked separately as it is billed.
Free30 minutesNo obligation
MyCase → PostHog · when not to buy
When you don't need this — MyCase → PostHog
- Measure identifier coverage yourself first — pull your last hundred matters and count how many carry the distinct_id.
- If you cannot guarantee a clean payload, send a bare count or nothing at all. That is a worse campaign and the correct decision.
- 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.
MyCase → PostHog · what we deliver
What gets built — MyCase → PostHog
Identifier capture into MyCase
Capture at the enquiry and store on the contact so the matter opened later resolves to the original source. Send no case detail — the practice area is sensitive information about a person.
Event source: the MyCase matter record
Send matters opened as a count, with a value if you use an average by practice area. Never send the practice area itself.
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 fees reverse.
Written guarantee
95%+ tracking accuracy
Measured against MyCase matters opened, with fee income tracked separately as it is billed.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
MyCase → PostHog questions, answered
Only with input masking on for every field, including free-text descriptions. Verify it on a real recording before going live.
Alias the visitor to an opaque intake ID at form submission, store it on the MyCase lead, and send a matter-opened event with that ID later.
Almost always because the distinct_id never reached the MyCase matter. The consultation is booked by phone or form and the matter is opened by staff days later, with no session in the chain. 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 MyCase matter record. Send matters opened as a count, with a value if you use an average by practice area. Never send the practice area itself.
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 MyCase → PostHog
- Stripe → PostHogConnecting Stripe to PostHog
- PayPal → PostHogConnecting PayPal to PostHog
- Shopify → PostHogConnecting Shopify to PostHog
Using MyCase for bookings? How MyCase bookings get tracked end to end
RELATED GUIDES
Where MyCase → PostHog fits in the rest of your tracking
- PracticePanther → PostHogConnecting PracticePanther to PostHog
- Karbon → PostHogConnecting Karbon to PostHog
- Filevine → PostHogConnecting Filevine to PostHog
- MyCase → AmplitudeConnecting MyCase to Amplitude
- MyCase → MatomoConnecting MyCase to Matomo
- Family lawConversion tracking for family law, measured in signed retainers
Free · 30 min
Get MyCase and PostHog joined properly
Free30 minutesNo obligation
