Skip to main content
CartStack → GA4Integration guide

Connecting CartStack to GA4

CartStack recovers abandoned carts and abandoned browsing sessions, which means it can claim orders from visitors who never added anything to a cart at all. 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 CartStack recovered 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

CartStack to GA4: keep recovered orders off the email row

CartStack recovery clicks start new GA4 sessions credited to email. When CartStack captures the email, store the browser's client_id, session_id and first-touch source against the cart, then add recovery_type and original_source parameters to the single purchase event as custom dimensions. Don't send a second Measurement Protocol purchase for recovered orders; GA4 won't deduplicate it.

When a shopper clicks a CartStack recovery email, GA4 starts a new session with whatever UTM tags the email link carries, often on a different device from the original ad click. Last-click reports then file the order under email. Data-driven attribution can still give the paid session a share, but only when both sessions belong to the same GA4 user, which means the same browser or a User-ID you set at login.

The fix is to keep the original visit with the cart. When CartStack captures the shopper's email, store that browser's GA4 `client_id`, `session_id` and first-touch source server-side against the cart. When the order lands, add parameters to the `purchase` event such as `recovery_type` (cart, browse, or none) and `original_source`, registered as custom dimensions. Revenue then stays in one `purchase` event and you can split it by how it was finished and by where the shopper first came from.

Check what UTM parameters your CartStack emails append. A link with `utm_source` set overwrites the session source in GA4, which is right for the email session but means the original channel only survives if you stored it. Do not send a second `purchase` for recovered orders through the Measurement Protocol; GA4 will not deduplicate it against the browser purchase.

CartStack → GA4 · what breaks

Why this join usually fails — CartStack → GA4

  1. 01

    The GA4 client_id never reaches CartStack

    Recovery emails are opened days later on other devices, arriving as fresh sessions.

  2. 02

    Browse abandonment claiming credit for the original visit

    Recovering a browser who never added to cart means claiming an order from someone your advertising brought and your email finished. Both contributed, and only one gets reported without persistence.

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

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

CartStack → GA4 · the fix

What working looks like — CartStack → GA4

  • The GA4 client_id on every recovery

  • 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

CartStack → GA4 · architecture

How CartStack and GA4 actually connect

  1. 1

    CartStack holds the truth

    Browse abandonment recovery reaches people who looked and left. Attributing their eventual purchase entirely to the recovery email ignores whatever brought them the first time.

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

    The identifier is the bridge

    The GA4 client_id, captured at the visit and carried into the CartStack recovered order.

  4. 4

    The event source decides reliability

    Send orders with a flag for recovered versus first-pass, so both channels are visible.

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

CartStack → GA4 · normal or broken

Working vs. broken, side by side — CartStack → GA4

Normal, not a fault

  • The GA4 client_id present on the recovery

  • Sent from your order record with recovery attribution

  • 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

    Recovery emails are opened days later on other devices, arriving as fresh sessions.

  • Sent from the browser

    Recovering a browser who never added to cart means claiming an order from someone your advertising brought and your email finished. Both contributed, and only one gets reported without persistence.

  • 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

CartStack → GA4 · diagnose

Diagnostic order — CartStack → GA4

  1. 01

    Count recoverys carrying the GA4 client_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether recovered orders retain their original acquisition source

    If they show as email or direct, paid is undercounted by your recovery rate.

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

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

CartStack → GA4 · prove

How it gets proven — CartStack → GA4

Source of truth

Store orders flagged by whether a recovery message preceded them.

  • The GA4 client_id confirmed present on a live recovery.
  • Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
  • Orders reconciled with recovery flagged and original source retained.

CartStack → GA4 · free audit

What we check in the free audit

  • Count recoverys carrying the GA4 client_id
  • Follow one real conversion end to end
  • Check whether recovered orders retain their original acquisition source
  • Check whether server events carry a session and a source
  • Read the match rate, not the success message

Checked against

Store orders flagged by whether a recovery message preceded them.

Get my free conversion tracking audit

Free30 minutesNo obligation

CartStack → GA4 · when not to buy

When you don't need this — CartStack → GA4

  • Measure identifier coverage yourself first — pull your last hundred recoverys and count how many carry the GA4 client_id.
  • No recovery programme means no double-claim and this is an ordinary store integration.
  • 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.

CartStack → GA4 · what we deliver

What gets built — CartStack → GA4

  • Identifier capture into CartStack

    Persist the identifier against the abandoned session so a recovered order still resolves to the original source.

  • Event source: your order record with recovery attribution

    Send orders with a flag for recovered versus first-pass, so both channels are visible.

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

Written guarantee

95%+ tracking accuracy

Measured against Store orders flagged by whether a recovery message preceded them.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

CartStack → GA4 questions, answered

The recovery click starts a new session, often on another device, and last-click reporting gives it the order. Store the original source with the cart and add it, plus a recovered flag, to the purchase event.

Free · 30 min

Get CartStack and GA4 joined properly

Free30 minutesNo obligation