Connecting LoyaltyLion to Snowflake
LoyaltyLion is built around tiers, which means a customer's discount rate changes as they spend more — and so does the margin on every subsequent order. 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 LoyaltyLion tier 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
LoyaltyLion in Snowflake: keep tier history, not just current tier
Land three LoyaltyLion-related tables in Snowflake: Shopify orders with discounts itemized, members with a dated tier-change history, and points transactions covering earn, redeem, expire and reverse. Join orders to the tier in effect on the order date so margin by tier is correct. Deduplicate on order ID and points transaction ID, and value outstanding points as a liability.
The warehouse question this source answers is margin by loyalty tier, and it needs tier history. A members table holding today's tier makes every past order look like it was placed at the current discount rate. Land tier changes as a dated history table, then join orders to the tier in effect on the order date, so net revenue by tier is correct for any month you query.
Land three things: Shopify orders with discounts itemized, LoyaltyLion members and tier changes, and points transactions with earn, redeem, expire and reverse records. Check what LoyaltyLion exposes through its API, webhooks or exports on your plan before designing ingestion around one of them. Deduplicate on the order ID and the points transaction ID, since loads arrive at least once.
Points transactions also give finance something marketing rarely looks at: outstanding points are a liability. Valued at their redemption rate, the unexpired balance is a cost already promised to customers, and it belongs next to customer acquisition cost when deciding what a new member is worth acquiring through paid media.
LoyaltyLion → Snowflake · what breaks
Why this join usually fails — LoyaltyLion → Snowflake
- 01
Whatever join key both parties agree on, usually a hashed identifier never reaches LoyaltyLion
Tier benefits apply automatically at checkout, so the discount is inside the order rather than in a code.
- 02
Tier discounts absorbed silently into order value
Unlike a coupon, a tier discount has no code. It is applied automatically and disappears into the order total, so the margin erosion from a maturing loyalty base is invisible in every marketing report.
- 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.
LoyaltyLion → Snowflake · the fix
What working looks like — LoyaltyLion → Snowflake
Whatever join key both parties agree on, usually a hashed identifier on every redemption
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
LoyaltyLion → Snowflake · architecture
How LoyaltyLion and Snowflake actually connect
- 1
LoyaltyLion holds the truth
A top-tier customer buys at a permanently lower margin. Their order value looks identical to a new customer's and is worth meaningfully less, which matters when you are deciding what a new customer is worth acquiring.
- 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 LoyaltyLion tier order.
- 4
The event source decides reliability
Send orders net of tier discount, with the tier recorded so margin by cohort stays visible.
- 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.
LoyaltyLion → Snowflake · normal or broken
Working vs. broken, side by side — LoyaltyLion → Snowflake
Normal, not a fault
Whatever join key both parties agree on, usually a hashed identifier present on the redemption
Sent from your order feed with tier attached
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
Tier benefits apply automatically at checkout, so the discount is inside the order rather than in a code.
Sent from the browser
Unlike a coupon, a tier discount has no code. It is applied automatically and disappears into the order total, so the margin erosion from a maturing loyalty base is invisible in every marketing report.
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
LoyaltyLion → Snowflake · diagnose
Diagnostic order — LoyaltyLion → Snowflake
- 01
Count redemptions carrying whatever join key both parties agree on, usually a hashed identifier
- 02
Follow one real conversion end to end
- 03
Compare average margin by loyalty tier
As the programme matures this gap widens, and it is the reason a growing loyal base can coincide with falling profitability.
- 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.
LoyaltyLion → Snowflake · prove
How it gets proven — LoyaltyLion → Snowflake
Source of truth
Store orders with the customer's loyalty tier recorded at the time of purchase.
- Whatever join key both parties agree on, usually a hashed identifier confirmed present on a live redemption.
- Row counts and revenue reconciled against each source system for a closed window, with duplicates checked on the join key and both definitions documented.
- Orders reconciled net of tier discount against imported conversions, with tier recorded.
LoyaltyLion → Snowflake · free audit
What we check in the free audit
- Count redemptions carrying whatever join key both parties agree on, usually a hashed identifier
- Follow one real conversion end to end
- Compare average margin by loyalty tier
- Write down both parties' conversion definitions before writing any query
- Read the match rate, not the success message
Checked against
Store orders with the customer's loyalty tier recorded at the time of purchase.
Free30 minutesNo obligation
LoyaltyLion → Snowflake · when not to buy
When you don't need this — LoyaltyLion → Snowflake
- Measure identifier coverage yourself first — pull your last hundred redemptions and count how many carry whatever join key both parties agree on, usually a hashed identifier.
- Flat-rate loyalty programmes without tiers do not have this problem.
- 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.
LoyaltyLion → Snowflake · what we deliver
What gets built — LoyaltyLion → Snowflake
Identifier capture into LoyaltyLion
Record the tier on the order and net tier discounts out of the reported value.
Event source: your order feed with tier attached
Send orders net of tier discount, with the tier recorded so margin by cohort stays visible.
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.
Written guarantee
95%+ tracking accuracy
Measured against Store orders with the customer's loyalty tier recorded at the time of purchase.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
LoyaltyLion → Snowflake questions, answered
Store LoyaltyLion tier changes with dates and join each order to the tier active on its order date, using revenue net of tier discounts.
Yes. Points transactions let you track redemption rates and the outstanding points balance, which is a real cost when valuing customers.
Almost always because whatever join key both parties agree on, usually a hashed identifier never reached the LoyaltyLion tier order. Tier benefits apply automatically at checkout, so the discount is inside the order rather than in a code. 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.
Your order feed with tier attached. Send orders net of tier discount, with the tier recorded so margin by cohort stays visible.
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 LoyaltyLion → Snowflake
- Stripe → SnowflakeConnecting Stripe to Snowflake
- PayPal → SnowflakeConnecting PayPal to Snowflake
- Shopify → SnowflakeConnecting Shopify to Snowflake
RELATED GUIDES
Where LoyaltyLion → Snowflake fits in the rest of your tracking
- Punchh → SnowflakeConnecting Punchh to Snowflake
- Smile.io → SnowflakeConnecting Smile.io to Snowflake
- Talon.One → SnowflakeConnecting Talon.One to Snowflake
- LoyaltyLion → SegmentConnecting LoyaltyLion to Segment
- LoyaltyLion → BigQueryConnecting LoyaltyLion to BigQuery
- RestaurantsConversion tracking for restaurants, across reservations, orders and calls
- Antavo → SnowflakeConnecting Antavo to Snowflake
Free · 30 min
Get LoyaltyLion and Snowflake joined properly
Free30 minutesNo obligation
