Connecting Rebuy to Amplitude
Rebuy adds personalised upsells across the cart, checkout and post-purchase, which means the order value at checkout is frequently not the order value that settles. Amplitude is built around behavioural cohorts, which makes the identity resolution and the event taxonomy load-bearing in a way they never are for an ad pixel. The join between them succeeds or fails on one thing: whether the user ID and device ID pair reaches the Rebuy-influenced order before the conversion happens, because Amplitude can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Rebuy in Amplitude: upsell revenue as its own revenue type
Send Amplitude revenue per line item with price, quantity, productId and revenueType marking core items, cart upsells and post-purchase upsells. Rebuy's post-purchase offer arrives server-side from the Shopify order update, under the Shopify customer ID as user_id, with insert_id from order ID plus edit. Track offers shown, accepted and declined from the storefront.
Amplitude is where you can see which customers take Rebuy offers and whether they come back, which Rebuy's own dashboard does not answer across a customer's lifetime. Send revenue per line item with price, quantity and productId, and use the revenueType field to mark core items, cart upsells and post-purchase upsells separately. A cohort's revenue curve then shows how much of its value came from offers.
Rebuy's post-purchase page runs inside Shopify's checkout extension, where your own Amplitude browser SDK generally cannot run, so the accepted offer has to arrive server-side from the order update. Use the Shopify customer ID as user_id on those events, matching what the storefront SDK sets on login, or the upsell lands on a different user than the browsing that led to it. Guest checkouts have nothing to merge on; decide whether to key them by hashed email.
Set insert_id from the order ID plus the edit, so the original order and the accepted upsell are separate events and a retried webhook is not counted twice. Track offer shown, accepted and declined from the storefront for in-cart offers, so cohorts can be built on offer behavior and not only on revenue.
Rebuy → Amplitude · what breaks
Why this join usually fails — Rebuy → Amplitude
- 01
The user ID and device ID pair never reaches Rebuy
Post-purchase offers render after the order is created, so a conversion fired at checkout has already gone before the upsell revenue exists.
- 02
Upsell revenue missing from every conversion
Post-purchase upsells can add a meaningful percentage to average order value. Firing the conversion at checkout means none of it is attributed, and the campaigns that bring upsell-receptive buyers look identical to those that do not.
- 03
Revenue events that carry no revenue
Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.
- 04
Nothing reconciles afterwards
Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.
Rebuy → Amplitude · the fix
What working looks like — Rebuy → Amplitude
The user ID and device ID pair on every order
Conversions arriving in Amplitude
The event lands on the user, joins their behavioural history, and becomes available for cohorts, funnels and retention.
Reconciled against the source
Rebuy → Amplitude · architecture
How Rebuy and Amplitude actually connect
- 1
Rebuy holds the truth
A post-purchase upsell creates additional revenue on the same order, seconds to minutes after the original conversion fired. If the conversion was sent at checkout, that revenue is missing from every report.
- 2
Amplitude needs a click to match
Amplitude needs a device or user identifier, an event type and its properties. Revenue events need the price and quantity fields specifically, or the revenue reporting stays empty while events flow normally.
- 3
The identifier is the bridge
The user ID and device ID pair, captured at the visit and carried into the Rebuy-influenced order.
- 4
The event source decides reliability
Send the settled order total including accepted upsells, with the upsell contribution recorded separately.
- 5
Deduplication at the destination
Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.
Rebuy → Amplitude · normal or broken
Working vs. broken, side by side — Rebuy → Amplitude
Normal, not a fault
The user ID and device ID pair present on the order
Sent from the Shopify order webhook, after post-purchase
Deduplicated correctly
Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.
Reconciles with the source
Actually broken
The user ID and device ID pair missing on most records
Post-purchase offers render after the order is created, so a conversion fired at checkout has already gone before the upsell revenue exists.
Sent from the browser
Post-purchase upsells can add a meaningful percentage to average order value. Firing the conversion at checkout means none of it is attributed, and the campaigns that bring upsell-receptive buyers look identical to those that do not.
Counted twice, or not at all
Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.
Nobody has reconciled it
Rebuy → Amplitude · diagnose
Diagnostic order — Rebuy → Amplitude
- 01
Count orders carrying the user ID and device ID pair
- 02
Follow one real conversion end to end
- 03
Compare checkout-time order value against final settled order value
The gap is your upsell revenue, and it is the amount your conversion reporting is currently discarding.
- 04
Check a purchase event for the price and quantity fields specifically
Not whether the event arrived — whether the revenue fields are populated, in the exact names Amplitude expects.
- 05
Read the match rate, not the success message
Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.
Rebuy → Amplitude · prove
How it gets proven — Rebuy → Amplitude
Source of truth
The final Shopify order total after any post-purchase upsell has been accepted.
- The user ID and device ID pair confirmed present on a live order.
- Revenue reconciled per transaction against your billing system, with identity merge behaviour verified across signup.
- Settled order totals reconciled against imported conversions, with upsell contribution stated separately.
Rebuy → Amplitude · free audit
What we check in the free audit
- Count orders carrying the user ID and device ID pair
- Follow one real conversion end to end
- Compare checkout-time order value against final settled order value
- Check a purchase event for the price and quantity fields specifically
- Read the match rate, not the success message
Checked against
The final Shopify order total after any post-purchase upsell has been accepted.
Free30 minutesNo obligation
Rebuy → Amplitude · when not to buy
When you don't need this — Rebuy → Amplitude
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the user ID and device ID pair.
- If you run no post-purchase offers, checkout-time value is the final value and the timing question does not arise.
- If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.
Rebuy → Amplitude · what we deliver
What gets built — Rebuy → Amplitude
Identifier capture into Rebuy
Send the conversion from the order webhook after the post-purchase window closes, or send an adjustment when the upsell is accepted.
Event source: the Shopify order webhook, after post-purchase
Send the settled order total including accepted upsells, with the upsell contribution recorded separately.
Dispatch to Amplitude
The Amplitude HTTP V2 API, posted server-side with the identity, event type and properties.
Reversals where they exist
Refunds reverse, including refunded upsells specifically.
Written guarantee
95%+ tracking accuracy
Measured against The final Shopify order total after any post-purchase upsell has been accepted.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Rebuy → Amplitude questions, answered
Send them server-side from the Shopify order update with price and quantity, marked with a distinct revenueType. The browser SDK usually cannot run on the post-purchase page.
The purchase event probably fired at checkout before the offer was accepted, or the upsell event lacks the price and quantity fields.
Almost always because the user ID and device ID pair never reached the Rebuy-influenced order. Post-purchase offers render after the order is created, so a conversion fired at checkout has already gone before the upsell revenue exists. Measure coverage before debugging the dispatch.
Amplitude tracks both a device ID and a user ID and merges them when a user identifies. The merge rules decide who counts as one person, so a mistake here does not produce a small error — it changes every retention curve and cohort size in the account.
The Shopify order webhook, after post-purchase. Send the settled order total including accepted upsells, with the upsell contribution recorded separately.
Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.
More on Rebuy → Amplitude
- Stripe → AmplitudeConnecting Stripe to Amplitude
- PayPal → AmplitudeConnecting PayPal to Amplitude
- Shopify → AmplitudeConnecting Shopify to Amplitude
RELATED GUIDES
Where Rebuy → Amplitude fits in the rest of your tracking
- CartHook → AmplitudeConnecting CartHook to Amplitude
- Checkout Champ → AmplitudeConnecting Checkout Champ to Amplitude
- Zipify OCU → AmplitudeConnecting Zipify OneClickUpsell to Amplitude
- Rebuy → PostHogConnecting Rebuy to PostHog
- Rebuy → MatomoConnecting Rebuy to Matomo
- FashionConversion tracking for fashion brands, reported net of returns
- AfterSell → AmplitudeConnecting AfterSell to Amplitude
Free · 30 min
Get Rebuy and Amplitude joined properly
Free30 minutesNo obligation
