Skip to main content
Clio → BigQueryIntegration guide

Connecting Clio to BigQuery

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. BigQuery has no attribution model, no deduplication rules and no opinion about your data — which makes it the only destination on this site where every number is exactly as good as the query that produced it. The join between them succeeds or fails on one thing: whether whatever join key you decide on reaches the Clio matter before the conversion happens, because BigQuery can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Clio to BigQuery: matters, billing and click IDs in one table

Load Clio matters and bills into BigQuery as separate tables keyed on the matter ID and join through the raw click ID (gclid, fbclid) your intake writes to a Clio contact custom field. Merge bills on the bill ID because they get edited after the fact, track empty-identifier matters as intake coverage, and keep matter descriptions out.

BigQuery is where Clio's two numbers finally sit next to ad spend: matters opened, which is the acquisition event, and billed revenue by matter, which arrives over months. Load matters and bills as separate tables keyed on the Clio matter ID, load spend from each ad platform beside them, and you can answer the question no ad dashboard can: what a signed case from paid search actually billed over the following eighteen months.

The join to advertising runs through the custom field your intake writes to the Clio contact: gclid, fbclid or whichever click ID the form captured, plus the landing page and submission time. Store the raw identifier, not only a channel label someone inferred from it, because the raw value is what you will later upload as an offline conversion. Count matters with an empty identifier field separately; that number is your intake coverage, and it belongs on the same dashboard as the revenue.

Two traps are specific to this pair. Clio bills can be edited, written down or reassigned after the fact, so a nightly append duplicates them; load bills with a merge on the bill ID instead. And the warehouse will hold client names and matter descriptions if you let it. Load only the fields the analysis needs, restrict the dataset's access, and keep matter descriptions out entirely.

Clio → BigQuery · what breaks

Why this join usually fails — Clio → BigQuery

  1. 01

    Whatever join key you decide on 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

    The warehouse quietly disagreeing with every platform

    This is not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.

  4. 04

    Nothing reconciles afterwards

    BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.

Clio → BigQuery · the fix

What working looks like — Clio → BigQuery

  • Whatever join key you decide on on every matter

  • Conversions arriving in BigQuery

    The row lands in a table you own, joinable to every other table you own, with no window and no expiry.

  • Reconciled against the source

Clio → BigQuery · architecture

How Clio and BigQuery 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

    BigQuery needs a click to match

    BigQuery needs a schema and consistent types. The failure mode is not rejection, it is silent divergence: a column that arrives as a string in one load and an integer in the next, or a timestamp in the wrong zone, which produces answers that look plausible and are not.

  3. 3

    The identifier is the bridge

    Whatever join key you decide on, 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

    Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.

Clio → BigQuery · normal or broken

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

Normal, not a fault

  • Whatever join key you decide on present on the matter

  • Sent from the Clio matter creation webhook

  • Deduplicated correctly

    Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.

  • Reconciles with the source

Actually broken

  • Whatever join key you decide on 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

    This is not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.

  • Nobody has reconciled it

Clio → BigQuery · diagnose

Diagnostic order — Clio → BigQuery

  1. 01

    Count matters carrying whatever join key you decide on

  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

    Reconcile warehouse order counts against each platform for one closed window

    The gaps localize the problem: a gap against all platforms is a collection issue, a gap against one is that platform's window or matching.

  5. 05

    Read the match rate, not the success message

    BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.

Clio → BigQuery · prove

How it gets proven — Clio → BigQuery

Source of truth

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

  • Whatever join key you decide on confirmed present on a live matter.
  • Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
  • A matter confirmed to carry the identifier from the original web enquiry.

Clio → BigQuery · free audit

What we check in the free audit

  • Count matters carrying whatever join key you decide on
  • Follow one real conversion end to end
  • Open a recent matter and look for the identifier
  • Reconcile warehouse order counts against each platform for one closed window
  • 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 → BigQuery · when not to buy

When you don't need this — Clio → BigQuery

  • Measure identifier coverage yourself first — pull your last hundred matters and count how many carry whatever join key you decide on.
  • 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 one store and one ad platform, a warehouse is infrastructure you will maintain for a reconciliation you could do in a spreadsheet.

Clio → BigQuery · what we deliver

What gets built — Clio → BigQuery

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

    Streaming inserts or scheduled batch loads from your order system, with the raw event retained alongside whatever you derive from it.

  • 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 → BigQuery questions, answered

Pull matters, contacts and bills from the Clio API on a schedule, or use a connector if one supports Clio in your account, and load them into tables keyed on the matter ID. Confirm the API access your Clio plan allows before designing the pipeline.

Free · 30 min

Get Clio and BigQuery joined properly

Free30 minutesNo obligation