Connecting Clio to GA4
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. GA4 is where the business goes to understand what happened, which makes an unattributed conversion there expensive in decisions rather than in ad spend. The join between them succeeds or fails on one thing: whether the GA4 client_id reaches the Clio matter before the conversion happens, because GA4 can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Clio matters in GA4: tie the opened case back to the first visit
Capture the GA4 client_id from the _ga cookie on the intake form, store it on the Clio contact, and when the matter webhook fires send a Measurement Protocol matter_opened event with that client_id, dated at matter opening. Send only a value and an internal practice code, and never fire it from the browser too.
GA4 answers one question for a firm on Clio that the ad platforms cannot: which channel, including organic search and legal directory referrals, produced the matters that were actually opened. That requires the visitor's client_id to travel with the enquiry. Capture it from the _ga cookie in the intake form, store it on the Clio contact, and carry it onto the matter.
When Clio's matter webhook fires, send a Measurement Protocol event, a custom matter_opened alongside the generate_lead you already record for the form, with that client_id. Measurement Protocol only accepts timestamps up to 72 hours old, so the event is dated when the matter opens, weeks after the enquiry; read it through user-scoped dimensions such as first user source, because the original session is long over. Set user_id only to a meaningless internal ID, never a client name or email.
GA4 prohibits personally identifiable information in event data, and for a law firm the line sits wider than names and emails: a parameter like practice_area = criminal defense next to a visitor's browsing history describes a person's legal situation. Send a value and an internal practice group code at most. Do not also fire the matter event from a browser page; GA4 will count both.
Clio → GA4 · what breaks
Why this join usually fails — Clio → GA4
- 01
The GA4 client_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
Everything lands under (direct)/(none)
The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.
- 04
Nothing reconciles afterwards
GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.
Clio → GA4 · the fix
What working looks like — Clio → GA4
The GA4 client_id on every matter
Conversions arriving in GA4
Conversions appear in GA4 attributed to the original session's source and medium, so acquisition reporting reflects what actually drove revenue.
Reconciled against the source
Clio → GA4 · architecture
How Clio and GA4 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
GA4 needs a click to match
GA4 needs the client_id to attach a server event to the user and session that produced the click. Without it there is no attribution to inherit and the event is orphaned.
- 3
The identifier is the bridge
The GA4 client_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
GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.
Clio → GA4 · normal or broken
Working vs. broken, side by side — Clio → GA4
Normal, not a fault
The GA4 client_id present on the matter
Sent from the Clio matter creation webhook
Deduplicated correctly
GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.
Reconciles with the source
Actually broken
The GA4 client_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 classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.
Nobody has reconciled it
Clio → GA4 · diagnose
Diagnostic order — Clio → GA4
- 01
Count matters carrying the GA4 client_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 whether server events carry a session and a source
In GA4 Realtime or DebugView, find the event and look at its session and traffic source. A brand-new user with no source on every server event is the missing-client_id signature.
- 05
Read the match rate, not the success message
GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.
Clio → GA4 · prove
How it gets proven — Clio → GA4
Source of truth
Clio's matters opened by open date, and billed revenue by matter, for the same window.
- The GA4 client_id confirmed present on a live matter.
- Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
- A matter confirmed to carry the identifier from the original web enquiry.
Clio → GA4 · free audit
What we check in the free audit
- Count matters carrying the GA4 client_id
- Follow one real conversion end to end
- Open a recent matter and look for the identifier
- Check whether server events carry a session and a source
- 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 → GA4 · when not to buy
When you don't need this — Clio → GA4
- Measure identifier coverage yourself first — pull your last hundred matters and count how many carry the GA4 client_id.
- If your intake is entirely manual and cannot be changed, measure what coverage you can achieve honestly before committing to a build.
- GA4 is reporting, not bidding. If your problem is ad platform optimization, fix the ad platform destination first — GA4 will not change what any campaign does.
Clio → GA4 · what we deliver
What gets built — Clio → GA4
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 GA4
Measurement Protocol events with the client_id, session_id and the correct measurement ID and API secret, sent server-side.
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 → GA4 questions, answered
Yes, if the client_id from the enquiry is stored on the Clio contact and sent with the matter event. Read it with first user source, not session source.
Send a neutral internal code rather than a description. A case type sitting next to browsing history can describe a person's legal situation, which GA4 data should not hold.
Almost always because the GA4 client_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.
The client_id, from the _ga cookie. Measurement Protocol events without it are rejected or create a brand-new user with no session and no source, which is how server events end up filed under (direct)/(none) and make paid channels look worse than they are. Send session_id alongside it so the event joins the existing session, and include engagement_time_msec or the event may not appear as expected in reports.
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.
GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.
More on Clio → GA4
- Stripe → GA4Connecting Stripe to GA4
- PayPal → GA4Connecting PayPal to GA4
- HubSpot → GA4Connecting HubSpot to GA4
RELATED GUIDES
Where Clio → GA4 fits in the rest of your tracking
- Insightly → GA4Connecting Insightly to GA4
- Capsule → GA4Connecting Capsule CRM to GA4
- Less Annoying CRM → GA4Connecting Less Annoying CRM to GA4
- Clio → PostHogConnecting Clio to PostHog
- Clio → AmplitudeConnecting Clio to Amplitude
- Home servicesConversion tracking for home service businesses, measured in completed jobs
- Salesforce → GA4Connecting Salesforce to GA4
- SugarCRM → GA4Connecting SugarCRM to GA4
