Skip to main content
Afterpay → GA4Integration guide

Connecting Afterpay to GA4

Afterpay is pay-in-four buy-now-pay-later, which means the shopper is approved elsewhere and the merchant is paid up front by the provider. 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 Afterpay 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

Afterpay orders in GA4 without the afterpay.com referral

Add Afterpay's domain to GA4's unwanted referrals so returning shoppers don't credit an Afterpay referral. Save the _ga client_id and session_id on the order before the redirect, then send a Measurement Protocol purchase from the order webhook with transaction_id, full order value and payment_type Afterpay. Suppress duplicate browser purchases and send returns as refund events.

Afterpay causes a GA4 problem the other destinations do not have. The shopper leaves your checkout for Afterpay's approval screens and, if they come back, arrives on the confirmation page as a referral from Afterpay's domain. Unless that domain is listed under unwanted referrals in the web data stream settings, GA4 can start a new session there and credit the purchase to an Afterpay referral rather than the campaign that brought the shopper in. Check your Traffic acquisition report for an Afterpay referral row; if it shows revenue, that revenue was taken from paid channels.

The fix for the shoppers who never return is server-side. Read the _ga cookie's client_id and the current session_id before the redirect and save both on the order (a cart or order attribute, whatever your platform calls it). When the order webhook fires, send a Measurement Protocol purchase with that client_id, session_id, the order ID as transaction_id, the full order value and a payment_type of Afterpay. Afterpay pays you the whole amount, so do not split the value across the four instalments.

Then pick one sender. If the confirmation page still fires a browser purchase for returning shoppers, the Measurement Protocol event must be suppressed for those orders or GA4 will hold two purchases for one order. Returns on Afterpay orders go in as a GA4 refund event carrying the same transaction_id.

Afterpay → GA4 · what breaks

Why this join usually fails — Afterpay → GA4

  1. 01

    The GA4 client_id never reaches Afterpay

    The shopper is redirected to Afterpay for approval and a meaningful share never return to the confirmation page. The order exists and no pixel fired.

  2. 02

    The approval redirect that ends the session

    Approval happens on Afterpay's side. The customer is committed, the merchant is paid, and the confirmation page is optional from the shopper's point of view.

  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.

Afterpay → GA4 · the fix

What working looks like — Afterpay → 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

Afterpay → GA4 · architecture

How Afterpay and GA4 actually connect

  1. 1

    Afterpay holds the truth

    Afterpay pays the merchant in full and collects instalments from the shopper itself, so your revenue arrives at once even though the customer pays over time. The store's order record is the money event, not the instalment schedule.

  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 Afterpay order.

  4. 4

    The event source decides reliability

    Fire from the order record, which exists whether or not the browser came back, and tag the payment method so BNPL performance is 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.

Afterpay → GA4 · normal or broken

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

Normal, not a fault

  • The GA4 client_id present on the order

  • Sent from your store's order webhook

  • 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

    The shopper is redirected to Afterpay for approval and a meaningful share never return to the confirmation page. The order exists and no pixel fired.

  • Sent from the browser

    Approval happens on Afterpay's side. The customer is committed, the merchant is paid, and the confirmation page is optional from the shopper's point of view.

  • 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

Afterpay → GA4 · diagnose

Diagnostic order — Afterpay → GA4

  1. 01

    Count orders carrying the GA4 client_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Count Afterpay checkouts started against confirmation-page loads

    The gap is the share of BNPL revenue a browser-side setup cannot see, and it is usually larger than merchants expect.

  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.

Afterpay → GA4 · prove

How it gets proven — Afterpay → GA4

Source of truth

Your store's orders paid with Afterpay, cross-checked against Afterpay's settlement.

  • 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.
  • An Afterpay order abandoned at the return step, confirmed to still report.

Afterpay → GA4 · free audit

What we check in the free audit

  • Count orders carrying the GA4 client_id
  • Follow one real conversion end to end
  • Count Afterpay checkouts started against confirmation-page loads
  • Check whether server events carry a session and a source
  • Read the match rate, not the success message

Checked against

Your store's orders paid with Afterpay, cross-checked against Afterpay's settlement.

Get my free conversion tracking audit

Free30 minutesNo obligation

Afterpay → GA4 · when not to buy

When you don't need this — Afterpay → GA4

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the GA4 client_id.
  • If BNPL is a very small share of your orders, measure that share before commissioning anything.
  • 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.

Afterpay → GA4 · what we deliver

What gets built — Afterpay → GA4

  • Identifier capture into Afterpay

    Capture the identifier before checkout and store it on the order in your own system, so the conversion does not depend on the shopper completing the return journey.

  • Event source: your store's order webhook

    Fire from the order record, which exists whether or not the browser came back, and tag the payment method so BNPL performance is 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

    Returns on BNPL orders run higher than card in many stores, so the reversal matters more here than elsewhere.

Written guarantee

95%+ tracking accuracy

Measured against Your store's orders paid with Afterpay, cross-checked against Afterpay's settlement.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Afterpay → GA4 questions, answered

The shopper returns from Afterpay's approval flow as a referral, which can start a new session with Afterpay as the source. Add Afterpay's domains to the unwanted referrals list in your GA4 data stream and confirm the referral row stops collecting revenue.

Free · 30 min

Get Afterpay and GA4 joined properly

Free30 minutesNo obligation