Skip to main content
CartHook → SnowflakeIntegration guide

Connecting CartHook to Snowflake

CartHook does post-purchase one-click upsells specifically, which means every pound it adds arrives after the order was created and after any checkout-time conversion already fired. 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 CartHook post-purchase 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

CartHook to Snowflake: model checkout and settled totals separately

In Snowflake, keep every Shopify webhook version of an order in a raw table and model the latest per order ID, with checkout and settled totals as separate columns. Their difference is CartHook upsell revenue, joinable to landing parameters for take rate by campaign. Deduplicate on order ID plus update timestamp, and split refunds into upsell and original items.

In a warehouse the CartHook timing problem becomes a modeling decision. Shopify sends the order at creation and again as an update when the upsell is added, so an orders table loaded from webhooks holds several versions of each order. Keep them all in a raw table and build one current-state order model that takes the latest version per order ID, with the checkout total and the settled total as separate columns.

Those two columns are where the analysis lives. The difference is upsell revenue per order, which you can join to the order's landing-page parameters to compute take rate by campaign, ad set or creative. That is the number no ad platform will show you, and the reason to put this data in Snowflake rather than reading CartHook's own dashboard.

Webhook deliveries can repeat, so a retry creates duplicate rows with the same order ID and update timestamp; deduplicate on both before any revenue query. Refunds arrive as separate records; split them into upsell-item and original-item refunds so a returned add-on reduces upsell revenue instead of the base order. If you share data with a partner in a clean room, agree in writing which total counts as the conversion value.

CartHook → Snowflake · what breaks

Why this join usually fails — CartHook → Snowflake

  1. 01

    Whatever join key both parties agree on, usually a hashed identifier never reaches CartHook

    The offer runs after order creation, so anything that fired at checkout has already gone.

  2. 02

    Upsell revenue that no campaign ever gets credit for

    If the conversion fires at checkout, every pound the upsell adds is invisible. The campaigns bringing buyers most receptive to upsells look identical to those bringing the least receptive.

  3. 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.

  4. 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.

CartHook → Snowflake · the fix

What working looks like — CartHook → 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

CartHook → Snowflake · architecture

How CartHook and Snowflake actually connect

  1. 1

    CartHook holds the truth

    A one-click upsell charges the stored payment method and appends to the same order. The order total changes; the checkout total does not.

  2. 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. 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 CartHook post-purchase order.

  4. 4

    The event source decides reliability

    Send the settled order total, with upsell contribution recorded separately so take rate is visible per campaign.

  5. 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.

CartHook → Snowflake · normal or broken

Working vs. broken, side by side — CartHook → Snowflake

Normal, not a fault

  • Whatever join key both parties agree on, usually a hashed identifier present on the order

  • Sent from the Shopify order webhook

  • 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

    The offer runs after order creation, so anything that fired at checkout has already gone.

  • Sent from the browser

    If the conversion fires at checkout, every pound the upsell adds is invisible. The campaigns bringing buyers most receptive to upsells look identical to those bringing the least receptive.

  • 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

CartHook → Snowflake · diagnose

Diagnostic order — CartHook → Snowflake

  1. 01

    Count orders carrying whatever join key both parties agree on, usually a hashed identifier

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare checkout total against final settled total

    The gap is the revenue your conversion reporting is currently discarding.

  4. 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.

  5. 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.

CartHook → Snowflake · prove

How it gets proven — CartHook → Snowflake

Source of truth

The final Shopify order total after the post-purchase sequence completes.

  • 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.
  • Settled order totals reconciled against imported conversions for a closed week.

CartHook → 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
  • Compare checkout total against final settled total
  • Write down both parties' conversion definitions before writing any query
  • Read the match rate, not the success message

Checked against

The final Shopify order total after the post-purchase sequence completes.

Get my free conversion tracking audit

Free30 minutesNo obligation

CartHook → Snowflake · when not to buy

When you don't need this — CartHook → 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.
  • Stores without post-purchase offers can report checkout value and the timing question does not arise.
  • 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.

CartHook → Snowflake · what we deliver

What gets built — CartHook → Snowflake

  • Identifier capture into CartHook

    Send the conversion from the order webhook once the post-purchase window closes, rather than at checkout.

  • Event source: the Shopify order webhook

    Send the settled order total, with upsell contribution recorded separately so take rate is visible per campaign.

  • 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

    Refunds reverse; an upsell-only refund should reduce rather than reverse the order.

Written guarantee

95%+ tracking accuracy

Measured against The final Shopify order total after the post-purchase sequence completes.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

CartHook → Snowflake questions, answered

Keep every Shopify order version raw, then build a current-state order model with checkout total and settled total as separate columns.

Free · 30 min

Get CartHook and Snowflake joined properly

Free30 minutesNo obligation