Connecting Swell to BigQuery
Swell is headless commerce with subscriptions built in, which puts two conversion types in one system: a one-off order and a recurring plan that will bill again next month. 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 Swell 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
Swell to BigQuery: first orders, renewals and payback by click
Load Swell orders, subscriptions and accounts into separate BigQuery tables joined on account and subscription IDs, flagging first purchases, first subscription payments and renewals. Write click identifiers to account metadata as a fixed first-touch column so renewals inherit attribution, enabling payback by campaign. Land webhooks raw, deduplicate on object ID, and update status rows rather than appending.
A Swell store with subscriptions produces the analysis ad platforms cannot do: acquisition cost against months of subscription revenue, by the campaign that brought each customer in. In BigQuery that needs separate tables for orders, subscriptions and accounts, joined on Swell's account and subscription IDs, with a flag on every order saying whether it is a first purchase, a first subscription payment or a renewal.
The click identifiers belong on the account, written from the headless storefront into account or cart metadata at the first visit, and copied into a first-touch column that never changes. Renewal orders inherit attribution through the subscription ID rather than by carrying the identifier themselves. That gives you payback by campaign: spend in the acquisition month against cumulative revenue from every subscriber that campaign produced.
Swell webhooks can deliver the same event more than once and can arrive out of order, so land them raw, deduplicate on the Swell object ID, and backfill from the Swell API on a schedule. Subscription status changes (paused, canceled, reactivated) should update rows rather than append them, or a reactivated subscriber will look like two customers.
Swell → BigQuery · what breaks
Why this join usually fails — Swell → BigQuery
- 01
Whatever join key you decide on never reaches Swell
Headless storefront plus recurring billing means the renewal happens months later with no session and no storefront involved.
- 02
Renewals indistinguishable from new orders
In a combined store the export gives you a list of payments. Without a first-versus-renewal flag, a customer on a monthly plan generates a conversion every month against the click that acquired them once.
- 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.
Swell → BigQuery · the fix
What working looks like — Swell → 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
Swell → BigQuery · architecture
How Swell and BigQuery actually connect
- 1
Swell holds the truth
A subscription's first payment and its renewals are the same object type in most exports. Sending both means one acquisition produces a conversion every billing cycle.
- 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 Swell order.
- 4
The event source decides reliability
Send one-off orders and first subscription payments. Renewals belong in a retention figure.
- 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.
Swell → BigQuery · normal or broken
Working vs. broken, side by side — Swell → BigQuery
Normal, not a fault
Whatever join key you decide on present on the order
Sent from the Swell order and subscription webhooks
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
Headless storefront plus recurring billing means the renewal happens months later with no session and no storefront involved.
Sent from the browser
In a combined store the export gives you a list of payments. Without a first-versus-renewal flag, a customer on a monthly plan generates a conversion every month against the click that acquired them once.
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
Swell → BigQuery · diagnose
Diagnostic order — Swell → BigQuery
- 01
Count orders carrying whatever join key you decide on
- 02
Follow one real conversion end to end
- 03
Compare monthly conversion count against new customer count
If conversions exceed new customers, renewals are being counted as acquisition.
- 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.
Swell → BigQuery · prove
How it gets proven — Swell → BigQuery
Source of truth
Swell orders and subscriptions by date, held apart from each other.
- 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.
- First payments reconciled against imported conversions, with renewals reported separately.
Swell → 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
- Compare monthly conversion count against new customer count
- Reconcile warehouse order counts against each platform for one closed window
- Read the match rate, not the success message
Checked against
Swell orders and subscriptions by date, held apart from each other.
Free30 minutesNo obligation
Swell → BigQuery · when not to buy
When you don't need this — Swell → BigQuery
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry whatever join key you decide on.
- A store selling only one-off products does not have the renewal problem.
- 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.
Swell → BigQuery · what we deliver
What gets built — Swell → BigQuery
Identifier capture into Swell
Write the identifier into customer metadata so the first payment can be attributed and renewals can be recognised as renewals.
Event source: the Swell order and subscription webhooks
Send one-off orders and first subscription payments. Renewals belong in a retention figure.
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 and cancellations inside the first period reverse.
Written guarantee
95%+ tracking accuracy
Measured against Swell orders and subscriptions by date, held apart from each other.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Swell → BigQuery questions, answered
Store the acquisition click identifiers on the Swell account, link renewal orders to it through the subscription ID, and compare cumulative revenue per campaign against that campaign's spend.
Flag each order on load by checking whether it belongs to an existing subscription. Do not rely on order type alone.
Almost always because whatever join key you decide on never reached the Swell order. Headless storefront plus recurring billing means the renewal happens months later with no session and no storefront involved. 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.
The Swell order and subscription webhooks. Send one-off orders and first subscription payments. Renewals belong in a retention figure.
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 Swell → BigQuery
- Stripe → BigQueryConnecting Stripe to BigQuery
- PayPal → BigQueryConnecting PayPal to BigQuery
- Shopify → BigQueryConnecting Shopify to BigQuery
RELATED GUIDES
Where Swell → BigQuery fits in the rest of your tracking
- OpenCart → BigQueryConnecting OpenCart to BigQuery
- Wix → BigQueryConnecting Wix Stores to BigQuery
- Magento → BigQueryConnecting Magento to BigQuery
- Swell → SnowflakeConnecting Swell to Snowflake
- Swell → SegmentConnecting Swell to Segment
- Furniture ecommerceConversion tracking for furniture ecommerce, measured after delivery
- Braintree → BigQueryConnecting Braintree to BigQuery
- nopCommerce → BigQueryConnecting nopCommerce to BigQuery
Free · 30 min
Get Swell and BigQuery joined properly
Free30 minutesNo obligation
