Connecting Rebuy to GA4
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. GA4 is where the business goes to understand what happened, which makes an unattributed conversion there expensive in decisions rather than in ad spend. The join between them succeeds or fails on one thing: whether the GA4 client_id reaches the Rebuy-influenced order before the conversion happens, because GA4 can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Rebuy post-purchase upsell revenue in GA4, without a lost purchase
GA4 can drop a second purchase with the same transaction_id, so a Rebuy upsell needs its own ID, such as the order number with a suffix, or one delayed purchase. With server-side GA4, hold the Measurement Protocol purchase until the post-purchase offer resolves, then send the settled Shopify total with the saved client_id and upsell items marked.
GA4 is documented to drop repeat purchase events that share a transaction_id, so the obvious fix for a Rebuy post-purchase upsell, sending a second purchase for the same Shopify order, can be silently discarded. Check that in your property with a test order. If it applies, give the upsell its own transaction_id, such as the order number with a suffix, or wait and send one purchase with the settled total.
Waiting is cleaner when GA4 is fed server-side. Hold the Measurement Protocol purchase until the post-purchase offer has been accepted or declined, then send the Shopify order total with the client_id saved on the order at checkout and an item list that marks the Rebuy upsell items, for example with an item_list_name. Rebuy's cart and checkout upsells happen before the order exists and are already in the checkout value; only the post-purchase offer changes the total afterwards.
If Shopify's own GA4 integration is also sending purchase from the browser at checkout, decide which one owns the event; GA4 will keep both if the IDs differ. Refunds of upsell items should be sent as a partial refund with the item IDs, so upsell return rates can be seen separately.
Rebuy → GA4 · what breaks
Why this join usually fails — Rebuy → GA4
- 01
The GA4 client_id 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
Everything lands under (direct)/(none)
The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.
- 04
Nothing reconciles afterwards
GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.
Rebuy → GA4 · the fix
What working looks like — Rebuy → GA4
The GA4 client_id on every order
Conversions arriving in GA4
Conversions appear in GA4 attributed to the original session's source and medium, so acquisition reporting reflects what actually drove revenue.
Reconciled against the source
Rebuy → GA4 · architecture
How Rebuy and GA4 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
GA4 needs a click to match
GA4 needs the client_id to attach a server event to the user and session that produced the click. Without it there is no attribution to inherit and the event is orphaned.
- 3
The identifier is the bridge
The GA4 client_id, 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
GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.
Rebuy → GA4 · normal or broken
Working vs. broken, side by side — Rebuy → GA4
Normal, not a fault
The GA4 client_id present on the order
Sent from the Shopify order webhook, after post-purchase
Deduplicated correctly
GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.
Reconciles with the source
Actually broken
The GA4 client_id 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
The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.
Nobody has reconciled it
Rebuy → GA4 · diagnose
Diagnostic order — Rebuy → GA4
- 01
Count orders carrying the GA4 client_id
- 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 whether server events carry a session and a source
In GA4 Realtime or DebugView, find the event and look at its session and traffic source. A brand-new user with no source on every server event is the missing-client_id signature.
- 05
Read the match rate, not the success message
GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.
Rebuy → GA4 · prove
How it gets proven — Rebuy → GA4
Source of truth
The final Shopify order total after any post-purchase upsell has been accepted.
- The GA4 client_id confirmed present on a live order.
- Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
- Settled order totals reconciled against imported conversions, with upsell contribution stated separately.
Rebuy → GA4 · free audit
What we check in the free audit
- Count orders carrying the GA4 client_id
- Follow one real conversion end to end
- Compare checkout-time order value against final settled order value
- Check whether server events carry a session and a source
- 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 → GA4 · when not to buy
When you don't need this — Rebuy → GA4
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the GA4 client_id.
- If you run no post-purchase offers, checkout-time value is the final value and the timing question does not arise.
- GA4 is reporting, not bidding. If your problem is ad platform optimization, fix the ad platform destination first — GA4 will not change what any campaign does.
Rebuy → GA4 · what we deliver
What gets built — Rebuy → GA4
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 GA4
Measurement Protocol events with the client_id, session_id and the correct measurement ID and API secret, sent server-side.
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 → GA4 questions, answered
The purchase event usually fires before the post-purchase offer is accepted, so it carries the original order total. Send the settled total server-side after the offer, or send the upsell as its own purchase.
GA4 may drop it if the transaction_id repeats. Use a distinct ID for the upsell or send one purchase with the final total.
Almost always because the GA4 client_id 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.
The client_id, from the _ga cookie. Measurement Protocol events without it are rejected or create a brand-new user with no session and no source, which is how server events end up filed under (direct)/(none) and make paid channels look worse than they are. Send session_id alongside it so the event joins the existing session, and include engagement_time_msec or the event may not appear as expected in reports.
The Shopify order webhook, after post-purchase. Send the settled order total including accepted upsells, with the upsell contribution recorded separately.
GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.
More on Rebuy → GA4
- Stripe → GA4Connecting Stripe to GA4
- PayPal → GA4Connecting PayPal to GA4
- HubSpot → GA4Connecting HubSpot to GA4
RELATED GUIDES
Where Rebuy → GA4 fits in the rest of your tracking
- Checkout Champ → GA4Connecting Checkout Champ to GA4
- AfterSell → GA4Connecting AfterSell to GA4
- Zipify OCU → GA4Connecting Zipify OneClickUpsell to GA4
- Rebuy → PostHogConnecting Rebuy to PostHog
- Rebuy → AmplitudeConnecting Rebuy to Amplitude
- FashionConversion tracking for fashion brands, reported net of returns
- CartHook → GA4Connecting CartHook to GA4
Free · 30 min
Get Rebuy and GA4 joined properly
Free30 minutesNo obligation
