Skip to main content
Clio → MatomoIntegration guide

Connecting Clio to Matomo

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. Matomo can be self-hosted with no third party in the chain, which makes it the one analytics destination where the data genuinely never leaves infrastructure you control. The join between them succeeds or fails on one thing: whether the first-party visitor ID reaches the Clio matter before the conversion happens, because Matomo can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Clio matters as Matomo goals, on analytics the firm controls

Store the Matomo visitor ID from the first-party cookie on the Clio contact, and when the matter opens post a goal conversion through the HTTP Tracking API with an expected value by matter type. Backdated hits need a tracking-only auth token, and raw-log deletion settings can remove the visit before late matters arrive. Send nothing about the matter.

Matomo suits law firms for a specific reason: self-hosted on the firm's domain, no third party learns that a visitor read the DUI defense or Chapter 7 page. The join is Matomo's visitor ID. Read it from the first-party cookie when the intake form submits, store it in a Clio contact custom field, and carry it onto the matter. When the matter opens, post a goal conversion through the Matomo HTTP Tracking API with that visitor ID and an expected value by matter type.

Timing is where this pair breaks. A matter can open weeks after the first visit, and Matomo only accepts hits backdated beyond a short window when they carry an auth token, so confirm the limit on your version and use a token scoped to tracking only. Also check your raw-data deletion setting: if the firm purges visit logs after thirty days for privacy, a matter opened on day forty-five has no visit left to attach to.

Send the goal value as expected case value, never billed-to-date, and send nothing about the matter itself. No practice area in the goal name, no client name in custom dimensions. Matters closed without billing can be handled by excluding them in reporting rather than trying to delete a historic Matomo goal, which the tracking API does not do cleanly.

Clio → Matomo · what breaks

Why this join usually fails — Clio → Matomo

  1. 01

    The first-party visitor 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.

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

  3. 03

    Owning the pipeline means owning the outage

    The advantage is that nothing blocks it. The cost is that when the tracking database fills or falls behind on a weekend, the data is gone and no vendor is paging anyone. Hosted tools fail more visibly.

  4. 04

    Nothing reconciles afterwards

    Matomo exposes raw visit logs, so you can inspect the actual hit rather than an aggregate. Check the log, and check ingestion lag alongside it.

Clio → Matomo · the fix

What working looks like — Clio → Matomo

  • The first-party visitor ID on every matter

  • Conversions arriving in Matomo

    The event lands in your own database and is queryable directly, including the raw log, which most analytics products do not expose.

  • Reconciled against the source

Clio → Matomo · architecture

How Clio and Matomo actually connect

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

    Matomo needs a click to match

    The site ID, the visitor identifier and the event or ecommerce order. Self-hosted instances additionally need the tracker endpoint reachable and the database keeping up, which hosted tools do not fail at.

  3. 3

    The identifier is the bridge

    The first-party visitor ID, captured at the visit and carried into the Clio matter.

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

    Deduplication at the destination

    Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.

Clio → Matomo · normal or broken

Working vs. broken, side by side — Clio → Matomo

Normal, not a fault

  • The first-party visitor ID present on the matter

  • Sent from the Clio matter creation webhook

  • Deduplicated correctly

    Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.

  • Reconciles with the source

Actually broken

  • The first-party visitor 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 is that nothing blocks it. The cost is that when the tracking database fills or falls behind on a weekend, the data is gone and no vendor is paging anyone. Hosted tools fail more visibly.

  • Nobody has reconciled it

Clio → Matomo · diagnose

Diagnostic order — Clio → Matomo

  1. 01

    Count matters carrying the first-party visitor ID

  2. 02

    Follow one real conversion end to end

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

  4. 04

    Check tracker reachability and database lag before debugging any tag

    On self-hosted analytics the answer is infrastructure more often than instrumentation.

  5. 05

    Read the match rate, not the success message

    Matomo exposes raw visit logs, so you can inspect the actual hit rather than an aggregate. Check the log, and check ingestion lag alongside it.

Clio → Matomo · prove

How it gets proven — Clio → Matomo

Source of truth

Clio's matters opened by open date, and billed revenue by matter, for the same window.

  • The first-party visitor ID confirmed present on a live matter.
  • Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
  • A matter confirmed to carry the identifier from the original web enquiry.

Clio → Matomo · free audit

What we check in the free audit

  • Count matters carrying the first-party visitor ID
  • Follow one real conversion end to end
  • Open a recent matter and look for the identifier
  • Check tracker reachability and database lag before debugging any tag
  • 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.

Get my free conversion tracking audit

Free30 minutesNo obligation

Clio → Matomo · when not to buy

When you don't need this — Clio → Matomo

  • Measure identifier coverage yourself first — pull your last hundred matters and count how many carry the first-party visitor 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 privacy or ownership requirement and no team to run it, a hosted product removes the only real cost of this one.

Clio → Matomo · what we deliver

What gets built — Clio → Matomo

  • 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 Matomo

    The Matomo HTTP Tracking API, posted server-side from your order system.

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

Get my free conversion tracking audit

From $400 · See packages

FAQ

Clio → Matomo questions, answered

Yes, if the Matomo visitor ID is captured on the intake form, stored on the Clio contact and sent back as a goal when the matter opens. Without that stored ID, Matomo only sees form submissions.

Free · 30 min

Get Clio and Matomo joined properly

Free30 minutesNo obligation