Connecting ShipStation to BigQuery
ShipStation is where the shipping cost of an order finally becomes known, which is the number that decides whether the conversion your ad platform reported was actually profitable. 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 ShipStation shipment 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
ShipStation in BigQuery: contribution margin per order, settled
Load store orders, ShipStation shipments with label cost, carrier and destination, and per-SKU cost of goods into BigQuery, then join shipments to orders on a normalized order number and roll margin up by campaign through the click identifiers on the order row. Sum shipment costs per order before joining, and keep voids, carrier adjustments and return labels as dated rows.
BigQuery is the natural home for this pair, because contribution margin is a join no ad platform will do for you. Load store orders, ShipStation shipments with label cost, carrier and destination, and cost of goods per SKU. Join shipments to orders on order number, then compute margin per order and roll it up by campaign using the click identifiers stored on the order row.
Watch the join cardinality. One order can produce several shipments when items ship separately or a replacement is sent, and one shipment can occasionally cover merged orders. Sum shipment costs per order before joining, or the order's revenue will repeat on every shipment row and inflate totals. ShipStation's order number may also differ in format from the store's order ID, with prefixes added by the store connection, so normalize it in the load.
Label costs keep changing after the shipment: voided labels, carrier adjustments for weight or dimensions, return labels. Keep each as its own dated row and reconcile a settled month, not the current one. Check whether ShipStation's API or exports in your plan include voided labels and adjustments, because missing them overstates margin on exactly the heavy orders that matter.
ShipStation → BigQuery · what breaks
Why this join usually fails — ShipStation → BigQuery
- 01
Whatever join key you decide on never reaches ShipStation
The shipment is created after the order, in a different system, with no session behind it.
- 02
Free shipping absorbing the whole margin
An order that reported forty pounds of revenue and cost twelve to ship to a remote postcode is a different outcome from the same order shipped locally. Optimizing on revenue steers spend toward whichever geography is most expensive to serve.
- 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.
- 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.
ShipStation → BigQuery · the fix
What working looks like — ShipStation → 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
ShipStation → BigQuery · architecture
How ShipStation and BigQuery actually connect
- 1
ShipStation holds the truth
Shipping is frequently the difference between margin and none, and it varies by weight, destination and carrier in ways the order value does not predict.
- 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
The identifier is the bridge
Whatever join key you decide on, captured at the visit and carried into the ShipStation shipment.
- 4
The event source decides reliability
Send orders at contribution margin where you can compute it — order value minus cost of goods and actual shipping.
- 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.
ShipStation → BigQuery · normal or broken
Working vs. broken, side by side — ShipStation → BigQuery
Normal, not a fault
Whatever join key you decide on present on the shipment
Sent from your order system, enriched with shipping 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
The shipment is created after the order, in a different system, with no session behind it.
Sent from the browser
An order that reported forty pounds of revenue and cost twelve to ship to a remote postcode is a different outcome from the same order shipped locally. Optimizing on revenue steers spend toward whichever geography is most expensive to serve.
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
ShipStation → BigQuery · diagnose
Diagnostic order — ShipStation → BigQuery
- 01
Count shipments carrying whatever join key you decide on
- 02
Follow one real conversion end to end
- 03
Compare average shipping cost by campaign and by region
The spread is usually larger than expected and it can reverse which campaigns look profitable.
- 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.
- 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.
ShipStation → BigQuery · prove
How it gets proven — ShipStation → BigQuery
Source of truth
Orders joined to their actual shipping cost and delivery outcome.
- 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 for a settled month.
ShipStation → 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
- Compare average shipping cost by campaign and by region
- 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 actual shipping cost and delivery outcome.
Free30 minutesNo obligation
ShipStation → BigQuery · when not to buy
When you don't need this — ShipStation → BigQuery
- Measure identifier coverage yourself first — pull your last hundred shipments and count how many carry whatever join key you decide on.
- If you sell digital goods or charge shipping at cost, this refinement does not apply.
- 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.
ShipStation → BigQuery · what we deliver
What gets built — ShipStation → BigQuery
Identifier capture into ShipStation
Join on the order identifier. There is no identifier to capture here — the work is carrying the order's one through.
Event source: your order system, enriched with shipping cost
Send orders at contribution margin where you can compute it — order value minus cost of goods and actual shipping.
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, and should carry the return shipping cost too.
Written guarantee
95%+ tracking accuracy
Measured against Orders joined to their actual shipping cost and delivery outcome.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
ShipStation → BigQuery questions, answered
On order number, normalized to match the store's format, after summing shipment costs per order. Joining shipment rows directly repeats order revenue.
After carrier adjustments and voided labels have settled, typically a closed month. Report margin on settled periods only.
Almost always because whatever join key you decide on never reached the ShipStation shipment. The shipment is created after the order, in a different system, with no session behind it. Measure coverage before debugging the dispatch.
There is no vendor identifier here. You choose the key — order ID, user ID, click identifier, hashed email — and you live with the consequences. That is the whole appeal and the whole risk: nothing is standardised for you and nothing is silently wrong in a vendor's favour either.
Your order system, enriched with shipping cost. Send orders at contribution margin where you can compute it — order value minus cost of goods and actual shipping.
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.
More on ShipStation → BigQuery
- Stripe → BigQueryConnecting Stripe to BigQuery
- PayPal → BigQueryConnecting PayPal to BigQuery
- Shopify → BigQueryConnecting Shopify to BigQuery
RELATED GUIDES
Where ShipStation → BigQuery fits in the rest of your tracking
- Shippo → BigQueryConnecting Shippo to BigQuery
- ShipBob → BigQueryConnecting ShipBob to BigQuery
- Easyship → BigQueryConnecting Easyship to BigQuery
- ShipStation → SegmentConnecting ShipStation to Segment
- ShipStation → SnowflakeConnecting ShipStation to Snowflake
- Wholesale distributionConversion tracking for wholesale, measured in trading accounts
Free · 30 min
Get ShipStation and BigQuery joined properly
Free30 minutesNo obligation
