Connecting Rebuy to Segment
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. Segment is a customer data platform rather than an ad network, so sending to it is not about matching a conversion — it is about putting one clean event where every other destination can read it. The join between them succeeds or fails on one thing: whether the userId and anonymousId reaches the Rebuy-influenced order before the conversion happens, because Segment can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Rebuy and Segment: Order Completed after the upsell, not before
For Segment's ad destinations, send Order Completed once after the Rebuy post-purchase window at the settled total, since many ignore Order Updated. Carry the upsell amount as a property, use the Shopify order ID as order_id and messageId source, check no Shopify app already sends Order Completed, and carry click identifiers from cart attributes.
Segment's ecommerce spec has Order Completed and Order Updated, and Rebuy forces a choice between them. Send Order Completed at checkout and Order Updated when a post-purchase offer is accepted, and you depend on every downstream destination handling Order Updated, which many ad destinations ignore. Send Order Completed once after the post-purchase window, at the settled total, and every destination gets the right value at the cost of a short delay.
For ad destinations fed by Segment, the delayed single event is usually right. Carry the upsell amount as a separate property, keep the Shopify order ID as order_id, and derive the messageId from it so a retry is dropped instead of fanning out a second purchase. Check whether any Shopify source or app already sends Order Completed to Segment at checkout; if it does, you will be sending two.
Rebuy's widget interactions are worth tracking too, as Product Viewed or custom offer events from the storefront, but only if someone will use them in a downstream tool. Click identifiers should ride as properties from cart attributes stored at landing, since the post-purchase step cannot add them.
Rebuy → Segment · what breaks
Why this join usually fails — Rebuy → Segment
- 01
The userId and anonymousId 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
One bad event multiplied across every destination
Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.
- 04
Nothing reconciles afterwards
Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.
Rebuy → Segment · the fix
What working looks like — Rebuy → Segment
The userId and anonymousId on every order
Conversions arriving in Segment
Events land in Segment and forward to every connected destination, warehouse included, on one shared definition.
Reconciled against the source
Rebuy → Segment · architecture
How Rebuy and Segment 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
Segment needs a click to match
Segment needs a consistent identity model — the same userId everywhere, an alias when an anonymous visitor becomes known, and event names that follow one spec. Feeding it inconsistent identities pushes the mess to every connected destination at once.
- 3
The identifier is the bridge
The userId and anonymousId, 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
Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.
Rebuy → Segment · normal or broken
Working vs. broken, side by side — Rebuy → Segment
Normal, not a fault
The userId and anonymousId present on the order
Sent from the Shopify order webhook, after post-purchase
Deduplicated correctly
Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.
Reconciles with the source
Actually broken
The userId and anonymousId 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
Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.
Nobody has reconciled it
Rebuy → Segment · diagnose
Diagnostic order — Rebuy → Segment
- 01
Count orders carrying the userId and anonymousId
- 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 identity resolution before checking anything downstream
If anonymousId is never aliased to userId, every destination sees two people where there is one, and no downstream fix helps.
- 05
Read the match rate, not the success message
Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.
Rebuy → Segment · prove
How it gets proven — Rebuy → Segment
Source of truth
The final Shopify order total after any post-purchase upsell has been accepted.
- The userId and anonymousId confirmed present on a live order.
- An anonymous session confirmed aliased to a known user, with the event visible in at least one downstream destination.
- Settled order totals reconciled against imported conversions, with upsell contribution stated separately.
Rebuy → Segment · free audit
What we check in the free audit
- Count orders carrying the userId and anonymousId
- Follow one real conversion end to end
- Compare checkout-time order value against final settled order value
- Check identity resolution before checking anything downstream
- 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 → Segment · when not to buy
When you don't need this — Rebuy → Segment
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the userId and anonymousId.
- If you run no post-purchase offers, checkout-time value is the final value and the timing question does not arise.
- If you send to one or two destinations, Segment is infrastructure you do not need — direct integrations are simpler and cheaper. It earns its place at genuine fan-out.
Rebuy → Segment · what we deliver
What gets built — Rebuy → Segment
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 Segment
Server-side track and identify calls with a stable messageId, consistent userId, and the click identifier carried as a trait or property.
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 → Segment questions, answered
Only if your destinations use it. Many ad destinations act only on Order Completed, so a single delayed Order Completed at the settled value is safer.
Often a Shopify source already sends Order Completed at checkout and your server sends it again after the upsell. Keep one sender and a messageId based on the order ID.
Almost always because the userId and anonymousId 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.
Segment identifies people by anonymousId before they are known and userId afterwards, and the alias between them is what stitches a session to a customer. Click identifiers travel as event properties or traits rather than as a matching key — Segment does not match anything itself, it forwards. That distinction changes the whole design: get the identity resolution right and every downstream destination inherits it.
The Shopify order webhook, after post-purchase. Send the settled order total including accepted upsells, with the upsell contribution recorded separately.
Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.
More on Rebuy → Segment
- Stripe → SegmentConnecting Stripe to Segment
- PayPal → SegmentConnecting PayPal to Segment
- Shopify → SegmentConnecting Shopify to Segment
RELATED GUIDES
Where Rebuy → Segment fits in the rest of your tracking
- Checkout Champ → SegmentConnecting Checkout Champ to Segment
- CartHook → SegmentConnecting CartHook to Segment
- AfterSell → SegmentConnecting AfterSell to Segment
- Rebuy → BigQueryConnecting Rebuy to BigQuery
- SupplementsConversion tracking for supplement brands, built around subscription value
- Zipify OCU → SegmentConnecting Zipify OneClickUpsell to Segment
Free · 30 min
Get Rebuy and Segment joined properly
Free30 minutesNo obligation
