Skip to main content
ShipBob → BigQueryIntegration guide

Connecting ShipBob to BigQuery

ShipBob is outsourced fulfilment, which means pick, pack and storage fees sit between the order value and what you keep — and none of them are visible at checkout. 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 ShipBob 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

ShipBob to BigQuery: contribution margin per campaign

Load ShipBob shipments with their order reference into BigQuery, store fees at ShipBob's own grain, keep a separate shipment-to-order mapping table, and deduplicate on shipment ID. Allocate storage and receiving fees by a written rule. Join to orders carrying gclid, fbc or UTM values and rank campaigns by contribution margin rather than revenue.

BigQuery is where ShipBob data does the most good, because contribution margin per campaign is a three-way join: ad click identifiers on the store order, the order's revenue, and ShipBob's charges for that order. Load ShipBob shipments with their order reference; that reference is the key back to your store's order ID.

ShipBob charges do not all arrive per order. Pick, pack and shipping attach to shipments, but storage is billed on inventory over time and receiving on inbound stock. Decide how to allocate those to orders, per unit sold in the month is a common rule, and write it down, because it changes which products look profitable. Check how your ShipBob invoices and API itemize each fee type before designing the schema.

Store fees at the grain ShipBob reports them, keep the shipment-to-order mapping as its own table since one order can ship in several shipments, and deduplicate on shipment ID when reloading. Then join to orders carrying gclid, fbc or UTM values and rank campaigns by margin rather than revenue. That margin ranking is what you would eventually send back to ad platforms as conversion value, once you have seen how far it differs from the revenue ranking.

ShipBob → BigQuery · what breaks

Why this join usually fails — ShipBob → BigQuery

  1. 01

    Whatever join key you decide on never reaches ShipBob

    Fulfilment happens in a third party's system days after the order.

  2. 02

    Per-item fulfilment costs invisible in order value

    A campaign driving small multi-item baskets can look strong on revenue and be unprofitable once pick fees are counted. The order value never sees it and neither does the ad platform.

  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.

ShipBob → BigQuery · the fix

What working looks like — ShipBob → BigQuery

  • Whatever join key you decide on on every shipment

  • 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

ShipBob → BigQuery · architecture

How ShipBob and BigQuery actually connect

  1. 1

    ShipBob holds the truth

    Third-party logistics costs are per-order and per-item, so a multi-item order and a single-item order of the same value have quite different economics.

  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 ShipBob order.

  4. 4

    The event source decides reliability

    Send contribution margin rather than order value where fulfilment cost is available.

  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.

ShipBob → BigQuery · normal or broken

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

Normal, not a fault

  • Whatever join key you decide on present on the shipment

  • Sent from your order system, enriched with fulfilment cost

  • 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

    Fulfilment happens in a third party's system days after the order.

  • Sent from the browser

    A campaign driving small multi-item baskets can look strong on revenue and be unprofitable once pick fees are counted. The order value never sees it and neither does the ad platform.

  • 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

ShipBob → BigQuery · diagnose

Diagnostic order — ShipBob → BigQuery

  1. 01

    Count shipments carrying whatever join key you decide on

  2. 02

    Follow one real conversion end to end

  3. 03

    Compute contribution margin per campaign for one month

    It is a join, not a project, and it frequently reorders the campaign ranking.

  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.

ShipBob → BigQuery · prove

How it gets proven — ShipBob → BigQuery

Source of truth

Orders joined to their fulfilment cost, including pick, pack, storage and shipping.

  • Whatever join key you decide on confirmed present on a live shipment.
  • Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
  • Orders reconciled at contribution margin against imported conversions.

ShipBob → BigQuery · free audit

What we check in the free audit

  • Count shipments carrying whatever join key you decide on
  • Follow one real conversion end to end
  • Compute contribution margin per campaign for one month
  • Reconcile warehouse order counts against each platform for one closed window
  • Read the match rate, not the success message

Checked against

Orders joined to their fulfilment cost, including pick, pack, storage and shipping.

Get my free conversion tracking audit

Free30 minutesNo obligation

ShipBob → BigQuery · when not to buy

When you don't need this — ShipBob → BigQuery

  • Measure identifier coverage yourself first — pull your last hundred shipments and count how many carry whatever join key you decide on.
  • If your fulfilment cost is flat per order and small relative to basket value, order value is a fine proxy.
  • 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.

ShipBob → BigQuery · what we deliver

What gets built — ShipBob → BigQuery

  • Identifier capture into ShipBob

    Join on the order identifier and pull the fulfilment cost back onto the order before valuing the conversion.

  • Event source: your order system, enriched with fulfilment cost

    Send contribution margin rather than order value where fulfilment cost is available.

  • 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

    Returns reverse, including the return handling fee.

Written guarantee

95%+ tracking accuracy

Measured against Orders joined to their fulfilment cost, including pick, pack, storage and shipping.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

ShipBob → BigQuery questions, answered

Check whether your ETL tool has a ShipBob connector. Otherwise pull orders, shipments and billing data from ShipBob's API on a schedule into staging tables.

Free · 30 min

Get ShipBob and BigQuery joined properly

Free30 minutesNo obligation