Skip to main content
MyCase → BigQueryIntegration guide

Connecting MyCase to BigQuery

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

MyCase in BigQuery: matters opened, fees billed, months apart

Load MyCase matters with open date, status and close date, plus invoices and payments keyed to the matter, into BigQuery, separating matters opened from fees collected. Store gclid, fbclid and landing page on the contact at first contact so matters inherit them. Restrict practice-area data to people who see client files, and compute blended averages including no-fee matters.

BigQuery is where a MyCase firm can see the two numbers its reporting tends to blur: matters opened, which is when the marketing worked, and fees collected, which arrive over the months the matter runs. Load matters with open date, status and close date, plus invoices and payments keyed to the matter, and keep the inquiry's stored click IDs on a contact key the matter references.

The join has to start at inquiry, because the consultation is booked by phone or form and staff open the matter later. Store gclid, fbclid and the landing page on the MyCase contact or lead at first contact; the matter inherits them through the contact. Check whether your MyCase plan offers API access or only exports, since that decides whether this is an automated load or a monthly upload someone has to remember.

This is also the only place a practice-area breakdown belongs, and only if the dataset is restricted to people who already see client files. Compute average fee per matter by area here, then decide what may leave the warehouse: one blended value is safer to send to ad platforms than per-area values that identify the area. Include matters closed without fees in the average, or every campaign looks more profitable than it was.

MyCase → BigQuery · what breaks

Why this join usually fails — MyCase → BigQuery

  1. 01

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

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

  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.

MyCase → BigQuery · the fix

What working looks like — MyCase → 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

MyCase → BigQuery · architecture

How MyCase and BigQuery actually connect

  1. 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. 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 MyCase matter.

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

MyCase → BigQuery · normal or broken

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

Normal, not a fault

  • Whatever join key you decide on present on the matter

  • Sent from the MyCase matter record

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

    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

MyCase → BigQuery · diagnose

Diagnostic order — MyCase → BigQuery

  1. 01

    Count matters carrying whatever join key you decide on

  2. 02

    Follow one real conversion end to end

  3. 03

    Read the actual conversion payload field by field

    Not the documentation — the payload. Do this before anything else.

  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.

MyCase → BigQuery · prove

How it gets proven — MyCase → BigQuery

Source of truth

MyCase matters opened, with fee income tracked separately as it is billed.

  • 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.
  • Matters opened reconciled against imported conversions, with the payload shown to carry no case detail.

MyCase → 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
  • Read the actual conversion payload field by field
  • Reconcile warehouse order counts against each platform for one closed window
  • Read the match rate, not the success message

Checked against

MyCase matters opened, with fee income tracked separately as it is billed.

Get my free conversion tracking audit

Free30 minutesNo obligation

MyCase → BigQuery · when not to buy

When you don't need this — MyCase → BigQuery

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

MyCase → BigQuery · what we deliver

What gets built — MyCase → BigQuery

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

Get my free conversion tracking audit

From $400 · See packages

FAQ

MyCase → BigQuery questions, answered

Store click IDs on the MyCase contact at inquiry, load matters and payments into BigQuery, and join on the contact. Report matters opened and fees collected as separate measures.

Free · 30 min

Get MyCase and BigQuery joined properly

Free30 minutesNo obligation