Connecting WooCommerce to Snowflake
WooCommerce keeps the order in your own database, which is both the advantage and the reason nobody has wired it properly. Snowflake's distinguishing feature is that two organisations can join data without either copying it to the other, which turns measurement between partners from a legal negotiation into a query. The join between them succeeds or fails on one thing: whether whatever join key both parties agree on, usually a hashed identifier reaches the WooCommerce order before the conversion happens, because Snowflake can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
WooCommerce to Snowflake: replicating orders without HPOS surprises
Check whether the WooCommerce store uses HPOS or legacy post tables before replicating. Load order, order item, order meta and refund records so stored click identifiers join revenue and refunds, enabling offline conversion files for every platform. Avoid double-subtracting partial refunds, load incrementally on modified date, and deduplicate on order ID plus modified time.
Getting WooCommerce into Snowflake starts with knowing where the orders live. Stores on High-Performance Order Storage keep them in dedicated order tables; older stores keep them as posts with metadata in wp_postmeta, and stores mid-migration may sync both. Replicating the wrong set gives you a plausible but incomplete order history, so check the storage setting in WooCommerce before choosing tables.
Replicate the order, order item, order meta and refund records rather than only the analytics lookup tables, because the click identifiers you saved as order meta are what make the warehouse useful for advertising: gclid, fbc or ttclid per order, joined to revenue and refunds. From there you can build offline and enhanced conversion files for every ad platform from one place, and compare each platform's reported conversions with orders that actually carry its click ID.
Refunds are separate records linked to the parent order, so net revenue is a join rather than a column, and partial refunds make it easy to subtract twice. Statuses also change after you load them: processing becomes completed, refunded or cancelled. Load incrementally on the modified date, keep history, and deduplicate on order ID plus modified time. Confirm your replication tool handles HPOS tables before trusting it.
WooCommerce → Snowflake · what breaks
Why this join usually fails — WooCommerce → Snowflake
- 01
Whatever join key both parties agree on, usually a hashed identifier never reaches WooCommerce
WooCommerce sites are usually the most heavily plugged-in of any platform. Caching plugins serve a static page to the visitor, optimization plugins defer or strip scripts, and consent plugins block them entirely. Any of the three will stop an identifier being captured, and they fail silently.
- 02
Caching and optimization plugins eat the tracking
The page the customer sees is not the page your code assumed. This is the most common cause of WooCommerce tracking that worked at launch and silently stopped after a plugin update.
- 03
A clean room that answers a question nobody agreed on
The technology makes the join possible; it does not make the definitions match. Two organisations measuring the same campaign will disagree about what a conversion is, which window applies and whose attribution model governs — and the query will return a confident number for whichever set of assumptions got written into the SQL.
- 04
Nothing reconciles afterwards
Snowflake will not tell you anything is wrong. Verify by querying against each party's own totals and checking for duplicate rows on the join key before trusting any aggregate.
WooCommerce → Snowflake · the fix
What working looks like — WooCommerce → Snowflake
Whatever join key both parties agree on, usually a hashed identifier on every order
Conversions arriving in Snowflake
The row lands in a table you own, joinable to your own data and — through a share or clean room — to a partner's, without either party moving raw records.
Reconciled against the source
WooCommerce → Snowflake · architecture
How WooCommerce and Snowflake actually connect
- 1
WooCommerce holds the truth
You own the database, so the truth is exactly as good as the query you write against it. Pin the status set first — whether processing, completed, or both count as a conversion changes the number by a lot and is the source of most arguments.
- 2
Snowflake needs a click to match
A schema both sides agree on, consistent types, and identifiers normalised identically before hashing. The failure mode is not rejection but silent divergence — a timestamp in the wrong zone or a trimmed-versus-untrimmed email produces answers that look plausible.
- 3
The identifier is the bridge
Whatever join key both parties agree on, usually a hashed identifier, captured at the visit and carried into the WooCommerce order.
- 4
The event source decides reliability
Fire server-side from the PHP hook rather than from the thank-you page template. Page caching means the thank-you page cannot be relied on to execute anything, and on many stores it is served from cache to a paying customer.
- 5
Deduplication at the destination
Nothing deduplicates for you. Loads are at-least-once, so a retried pipeline creates duplicate rows and the only protection is a deduplication step you write and actually schedule.
WooCommerce → Snowflake · normal or broken
Working vs. broken, side by side — WooCommerce → Snowflake
Normal, not a fault
Whatever join key both parties agree on, usually a hashed identifier present on the order
Sent from the woocommerce_payment_complete hook
Deduplicated correctly
Nothing deduplicates for you. Loads are at-least-once, so a retried pipeline creates duplicate rows and the only protection is a deduplication step you write and actually schedule.
Reconciles with the source
Actually broken
Whatever join key both parties agree on, usually a hashed identifier missing on most records
WooCommerce sites are usually the most heavily plugged-in of any platform. Caching plugins serve a static page to the visitor, optimization plugins defer or strip scripts, and consent plugins block them entirely. Any of the three will stop an identifier being captured, and they fail silently.
Sent from the browser
The page the customer sees is not the page your code assumed. This is the most common cause of WooCommerce tracking that worked at launch and silently stopped after a plugin update.
Counted twice, or not at all
The technology makes the join possible; it does not make the definitions match. Two organisations measuring the same campaign will disagree about what a conversion is, which window applies and whose attribution model governs — and the query will return a confident number for whichever set of assumptions got written into the SQL.
Nobody has reconciled it
WooCommerce → Snowflake · diagnose
Diagnostic order — WooCommerce → Snowflake
- 01
Count orders carrying whatever join key both parties agree on, usually a hashed identifier
- 02
Follow one real conversion end to end
- 03
Check order meta on ten recent orders
Directly in the database or with a meta viewer. Then disable page caching for the checkout path and see whether coverage changes — if it does, caching is your cause.
- 04
Write down both parties' conversion definitions before writing any query
Definition mismatch, not technology, is what makes most partner measurement projects produce numbers neither side trusts.
- 05
Read the match rate, not the success message
Snowflake will not tell you anything is wrong. Verify by querying against each party's own totals and checking for duplicate rows on the join key before trusting any aggregate.
WooCommerce → Snowflake · prove
How it gets proven — WooCommerce → Snowflake
Source of truth
WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.
- Whatever join key both parties agree on, usually a hashed identifier confirmed present on a live order.
- Row counts and revenue reconciled against each source system for a closed window, with duplicates checked on the join key and both definitions documented.
- Order meta confirmed present on orders placed while full page caching was active.
WooCommerce → Snowflake · free audit
What we check in the free audit
- Count orders carrying whatever join key both parties agree on, usually a hashed identifier
- Follow one real conversion end to end
- Check order meta on ten recent orders
- Write down both parties' conversion definitions before writing any query
- Read the match rate, not the success message
Checked against
WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.
Free30 minutesNo obligation
WooCommerce → Snowflake · when not to buy
When you don't need this — WooCommerce → Snowflake
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry whatever join key both parties agree on, usually a hashed identifier.
- If you run a small store with no caching layer and a single free plugin already reporting accurately, leave it alone.
- If you have no partner to share data with and one cloud, a warehouse you already run does the same job. The sharing capability is what justifies this one.
WooCommerce → Snowflake · what we deliver
What gets built — WooCommerce → Snowflake
Identifier capture into WooCommerce
Capture the click identifier and persist it as order meta on the order object with a small snippet in the theme's functions or a purpose-built plugin. Order meta lives in your own database, so it survives caching, plugin conflicts and the customer's browser.
Event source: the woocommerce_payment_complete hook
Fire server-side from the PHP hook rather than from the thank-you page template. Page caching means the thank-you page cannot be relied on to execute anything, and on many stores it is served from cache to a paying customer.
Dispatch to Snowflake
Batch or streaming loads from your order system, with the raw event retained alongside anything you derive from it.
Reversals where they exist
The refund hooks carry the order ID, so reversals are straightforward once the identifier is on the order.
Written guarantee
95%+ tracking accuracy
Measured against WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
WooCommerce → Snowflake questions, answered
Replicate the order, item, meta and refund tables from the MySQL database incrementally on modified date, after confirming whether the store uses HPOS tables or the legacy posts tables.
Join refunds to their parent orders and subtract them; refunds are stored as separate records, not as a column on the order.
Almost always because whatever join key both parties agree on, usually a hashed identifier never reached the WooCommerce order. WooCommerce sites are usually the most heavily plugged-in of any platform. Caching plugins serve a static page to the visitor, optimization plugins defer or strip scripts, and consent plugins block them entirely. Any of the three will stop an identifier being captured, and they fail silently. Measure coverage before debugging the dispatch.
There is no vendor identifier. In a data share or clean room the key is negotiated: hashed email, order ID, a partner-supplied ID. Normalisation before hashing is the entire match rate, and a formatting difference between two organisations looks exactly like a poor-performing partnership.
The woocommerce_payment_complete hook. Fire server-side from the PHP hook rather than from the thank-you page template. Page caching means the thank-you page cannot be relied on to execute anything, and on many stores it is served from cache to a paying customer.
Snowflake will not tell you anything is wrong. Verify by querying against each party's own totals and checking for duplicate rows on the join key before trusting any aggregate.
More on WooCommerce → Snowflake
- WooCommerce Subscriptions → SnowflakeConnecting WooCommerce Subscriptions to Snowflake
- WooCommerce → HubSpotConnecting WooCommerce to HubSpot
- WooCommerce → TikTokConnecting WooCommerce to TikTok Events API
RELATED GUIDES
Where WooCommerce → Snowflake fits in the rest of your tracking
- Swell → SnowflakeConnecting Swell to Snowflake
- Shopify POS → SnowflakeConnecting Shopify POS to Snowflake
- Wix → SnowflakeConnecting Wix Stores to Snowflake
- WooCommerce → BigQueryConnecting WooCommerce to BigQuery
- WooCommerce → SegmentConnecting WooCommerce to Segment
- FashionConversion tracking for fashion brands, reported net of returns
- BigCommerce → SnowflakeConnecting BigCommerce to Snowflake
- Gumroad → SnowflakeConnecting Gumroad to Snowflake
Free · 30 min
Get WooCommerce and Snowflake joined properly
Free30 minutesNo obligation
