Skip to main content
Loox → BigQueryIntegration guide

Connecting Loox to BigQuery

Loox is photo reviews and referrals for Shopify, and the referral half is where the measurement problem lives — a customer-to-customer referral is not paid media, no matter which cookie is still sitting in the browser. 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 Loox referral order 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

Loox and BigQuery: counting referral-versus-paid collisions

Load Shopify orders with discount codes, landing_site, referring_site and stored click IDs into BigQuery, then count orders carrying both a Loox referral marker and a paid click ID. Flag referrals by coupon and landing parameter after confirming Loox's formats, key on order ID, and feed only the non-referral set to paid conversion imports.

The warehouse is where the Loox precedence problem stops being a theory. Load Shopify orders with their discount codes, landing_site and referring_site, plus the click identifiers your own capture stored for that visitor. Then count the orders that carry both a Loox referral marker and a stored paid click ID. That count, and its revenue, is how much your ad platforms have been claiming for word of mouth.

Mark referral orders with two signals, not one: the referral coupon the friend redeemed and the referral parameter on the landing URL. Confirm the code format and parameter Loox uses in your account before writing the filter, because a pattern match on a guessed prefix will misclassify orders silently. Key everything on the Shopify order ID, load refunds as their own rows against it, and deduplicate on order ID before any reporting, since re-running a backfill duplicates rows.

The output is a clean non-referral order set: the list that should feed paid conversion imports. It also gives the referral program its own honest number, which most stores have never seen because the ad dashboards absorbed it. If the collision count is near zero, your storage logic already gives referrals precedence and the rest of the Loox setup is simple.

Loox → BigQuery · what breaks

Why this join usually fails — Loox → BigQuery

  1. 01

    Whatever join key you decide on never reaches Loox

    Referral links route through Loox and land on your store with their own parameters, frequently overwriting or colliding with whatever was already stored.

  2. 02

    Word of mouth billed to the ad account

    The more successful your referral program is, the worse your paid reporting gets, which is a genuinely perverse outcome and an entirely avoidable one.

  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.

Loox → BigQuery · the fix

What working looks like — Loox → BigQuery

  • Whatever join key you decide on on every order

  • 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

Loox → BigQuery · architecture

How Loox and BigQuery actually connect

  1. 1

    Loox holds the truth

    Referral orders arrive from a friend's shared link. If your last-touch model has an old paid identifier persisted, that campaign takes the credit for a sale word of mouth produced.

  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 Loox referral order.

  4. 4

    The event source decides reliability

    Purchases, with referral-sourced orders marked and held out of paid conversion imports.

  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.

Loox → BigQuery · normal or broken

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

Normal, not a fault

  • Whatever join key you decide on present on the order

  • Sent from the Shopify order 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

    Referral links route through Loox and land on your store with their own parameters, frequently overwriting or colliding with whatever was already stored.

  • Sent from the browser

    The more successful your referral program is, the worse your paid reporting gets, which is a genuinely perverse outcome and an entirely avoidable one.

  • 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

Loox → BigQuery · diagnose

Diagnostic order — Loox → BigQuery

  1. 01

    Count orders carrying whatever join key you decide on

  2. 02

    Follow one real conversion end to end

  3. 03

    Check precedence between referral and paid parameters

    Whichever wins in your storage logic determines who gets credit, and almost nobody has consciously chosen this.

  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.

Loox → BigQuery · prove

How it gets proven — Loox → BigQuery

Source of truth

Shopify orders, flagged by whether a Loox referral link or review-reward coupon produced them.

  • Whatever join key you decide on confirmed present on a live order.
  • Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
  • Non-referral orders reconciled against imported conversions; referral volume reported separately.

Loox → BigQuery · free audit

What we check in the free audit

  • Count orders carrying whatever join key you decide on
  • Follow one real conversion end to end
  • Check precedence between referral and paid parameters
  • Reconcile warehouse order counts against each platform for one closed window
  • Read the match rate, not the success message

Checked against

Shopify orders, flagged by whether a Loox referral link or review-reward coupon produced them.

Get my free conversion tracking audit

Free30 minutesNo obligation

Loox → BigQuery · when not to buy

When you don't need this — Loox → BigQuery

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry whatever join key you decide on.
  • No referral program means no conflict. Keep review events out of the conversion list and there is nothing else to do.
  • 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.

Loox → BigQuery · what we deliver

What gets built — Loox → BigQuery

  • Identifier capture into Loox

    Detect the referral parameter explicitly and let it take precedence, rather than allowing a stale paid identifier to win by default.

  • Event source: the Shopify order record

    Purchases, with referral-sourced orders marked and held out of paid conversion imports.

  • 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 reduce the figure.

Written guarantee

95%+ tracking accuracy

Measured against Shopify orders, flagged by whether a Loox referral link or review-reward coupon produced them.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Loox → BigQuery questions, answered

Load orders into BigQuery with discount codes, landing URL parameters and stored click IDs, then count orders carrying both a Loox referral marker and a paid click ID.

Free · 30 min

Get Loox and BigQuery joined properly

Free30 minutesNo obligation