Skip to main content
Mailchimp → BigQueryIntegration guide

Connecting Mailchimp to BigQuery

Mailchimp holds the audience and the engagement, and it is almost never the system that took the money. 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 Mailchimp contact 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

Mailchimp to BigQuery: snapshot the first-touch field

Load Mailchimp audience members into BigQuery on a schedule with merge fields, tags, status and unique_email_id, appending timestamped snapshots so overwritten click IDs survive. Keep the MD5 member ID, unique_email_id, lowercase email and your user ID to join store orders. Add campaign activity from the reports API, treat opens as unreliable, and load revenue from the store.

BigQuery is where Mailchimp's overwrite problem can be fixed after the fact, as long as you load history rather than current state. Pull audience members on a schedule with their merge fields, tags, status and unique_email_id, and append each load with a timestamp instead of replacing the table. If a campaign click later rewrites the click-identifier field, an earlier snapshot still holds the value paid media set at subscribe.

Choose the join key deliberately. Mailchimp's member ID is an MD5 hash of the lowercase email, stable per address but different once a subscriber changes email; unique_email_id is what Mailchimp appends as mc_eid on tracked links. Your store's orders join on lowercase email or customer ID. Keep all three, plus your own user ID if you write it to a merge field, so a sale in the store table can be traced to the subscriber, the campaign click and the original paid source.

Load campaign activity (sends, clicks, unsubscribes) from the reports API alongside, and treat opens as an unreliable column. Do not load Mailchimp's ecommerce order mirror as revenue; load orders from the store, and use Mailchimp's copy only to measure its sync delay. With both in one place, whether email or paid media produced a sale becomes a query with a defined answer rather than two platforms each claiming it.

Mailchimp → BigQuery · what breaks

Why this join usually fails — Mailchimp → BigQuery

  1. 01

    Whatever join key you decide on never reaches Mailchimp

    Mailchimp campaign clicks will overwrite an unguarded identifier field, which means your own email programme takes credit for sales that paid media produced.

  2. 02

    A mirror mistaken for a source

    Orders arrive in Mailchimp through an integration with a delay, so reconciling against it produces gaps that look like tracking bugs and are actually timing.

  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.

Mailchimp → BigQuery · the fix

What working looks like — Mailchimp → BigQuery

  • Whatever join key you decide on on every contact

  • 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

Mailchimp → BigQuery · architecture

How Mailchimp and BigQuery actually connect

  1. 1

    Mailchimp holds the truth

    Mailchimp is authoritative for audience and engagement and a delayed copy for anything financial. Treating the mirror as the source is how small ecommerce businesses end up with revenue nobody can reconcile.

  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 Mailchimp contact.

  4. 4

    The event source decides reliability

    Source the money event from the store rather than Mailchimp's mirror — the mirror adds a sync delay and a class of discrepancy that is genuinely hard to debug later.

  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.

Mailchimp → BigQuery · normal or broken

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

Normal, not a fault

  • Whatever join key you decide on present on the contact

  • Sent from your store's order webhook, with the identifier Mailchimp preserved

  • 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

    Mailchimp campaign clicks will overwrite an unguarded identifier field, which means your own email programme takes credit for sales that paid media produced.

  • Sent from the browser

    Orders arrive in Mailchimp through an integration with a delay, so reconciling against it produces gaps that look like tracking bugs and are actually timing.

  • 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

Mailchimp → BigQuery · diagnose

Diagnostic order — Mailchimp → BigQuery

  1. 01

    Count contacts carrying whatever join key you decide on

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare Mailchimp's revenue figure against the store's

    A gap here is a sync issue and it tells you which system to trust for money.

  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.

Mailchimp → BigQuery · prove

How it gets proven — Mailchimp → BigQuery

Source of truth

Your store's orders — Mailchimp mirrors them through an integration and is not the original.

  • Whatever join key you decide on confirmed present on a live contact.
  • Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
  • A contact confirmed to retain its original identifier after a later campaign click.

Mailchimp → BigQuery · free audit

What we check in the free audit

  • Count contacts carrying whatever join key you decide on
  • Follow one real conversion end to end
  • Compare Mailchimp's revenue figure against the store's
  • Reconcile warehouse order counts against each platform for one closed window
  • Read the match rate, not the success message

Checked against

Your store's orders — Mailchimp mirrors them through an integration and is not the original.

Get my free conversion tracking audit

Free30 minutesNo obligation

Mailchimp → BigQuery · when not to buy

When you don't need this — Mailchimp → BigQuery

  • Measure identifier coverage yourself first — pull your last hundred contacts and count how many carry whatever join key you decide on.
  • If your store is already tracked properly, the Mailchimp side may only need the identifier preserved and exclusion audiences wired.
  • 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.

Mailchimp → BigQuery · what we deliver

What gets built — Mailchimp → BigQuery

  • Identifier capture into Mailchimp

    Write the identifier to an audience field once at subscribe, guarded so later campaign activity cannot rewrite it.

  • Event source: your store's order webhook, with the identifier Mailchimp preserved

    Source the money event from the store rather than Mailchimp's mirror — the mirror adds a sync delay and a class of discrepancy that is genuinely hard to debug later.

  • 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

    Refunds come from the store. An unsubscribe is not a revenue reversal and conflating the two confuses different things.

Written guarantee

95%+ tracking accuracy

Measured against Your store's orders — Mailchimp mirrors them through an integration and is not the original.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Mailchimp → BigQuery questions, answered

Lowercase email for orders, with Mailchimp's member ID and unique_email_id kept alongside for joining campaign activity and tracked clicks.

Free · 30 min

Get Mailchimp and BigQuery joined properly

Free30 minutesNo obligation