Connecting Affirm to GA4
Affirm is longer-term financed BNPL, typically on higher-ticket items, which adds a credit decision between the checkout and the sale. 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 Affirm charge 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
Affirm orders in GA4: report the captured loan, keep the session
Send one GA4 purchase through Measurement Protocol on capture with your transaction_id, full order total and payment_type Affirm, using the client_id and session_id written onto the order before the Affirm application. Backdating is limited to about 72 hours, so choose a capture or approval rule. Use add_payment_info for an approval funnel; disable the duplicate browser purchase.
In GA4 an Affirm sale should arrive as a single purchase event carrying your store's transaction_id, the full order total and payment_type set to Affirm, sent through Measurement Protocol once the charge is captured. The GA4 client_id and session_id have to be written onto the order before the shopper opens Affirm's application, because the credit check and any return redirect give you nothing to read them from afterwards.
Timing is the GA4-specific trap. Many merchants capture an Affirm charge when the order ships, which can be days after checkout, and Measurement Protocol only lets you backdate timestamp_micros by about 72 hours. Send on capture and late shipments report on the capture date; send on approval and you must follow up with a refund event for anything that is cancelled before capture. Pick one rule and write it down so finance and marketing read the same number.
GA4 is also the only one of the four destinations where the decline belongs in the data. An add_payment_info event with payment_type Affirm, followed by a purchase or by nothing, gives you an approval funnel by source and medium in Explorations. If the storefront tag already fires purchase on the confirmation page for approved Affirm orders, switch one side off, since GA4 will not dedupe a browser purchase against a server one for you.
Affirm → GA4 · what breaks
Why this join usually fails — Affirm → GA4
- 01
The GA4 client_id never reaches Affirm
The shopper leaves for Affirm's flow, is assessed, and returns only if approved. Both the redirect and the decline create paths where nothing fires on your site.
- 02
A credit decision inside the checkout
Declines are real volume that reached checkout and produced nothing. Counting checkout starts rather than captured charges overstates performance by the decline rate.
- 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.
Affirm → GA4 · the fix
What working looks like — Affirm → 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
Affirm → GA4 · architecture
How Affirm and GA4 actually connect
- 1
Affirm holds the truth
Affirm runs a real credit decision, so a shopper who reaches checkout may be declined. The order only exists if the financing was approved and captured.
- 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 Affirm charge.
- 4
The event source decides reliability
Fire on capture after approval, and tag the payment method — Affirm orders skew to higher ticket values that will distort a blended average.
- 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.
Affirm → GA4 · normal or broken
Working vs. broken, side by side — Affirm → GA4
Normal, not a fault
The GA4 client_id present on the order
Sent from your store's order webhook, on Affirm charge capture
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 leaves for Affirm's flow, is assessed, and returns only if approved. Both the redirect and the decline create paths where nothing fires on your site.
Sent from the browser
Declines are real volume that reached checkout and produced nothing. Counting checkout starts rather than captured charges overstates performance by the decline rate.
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
Affirm → GA4 · diagnose
Diagnostic order — Affirm → GA4
- 01
Count orders carrying the GA4 client_id
- 02
Follow one real conversion end to end
- 03
Compare Affirm checkouts started, approved and captured
The decline rate is a genuine cost of this payment method and it belongs in the report.
- 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.
Affirm → GA4 · prove
How it gets proven — Affirm → GA4
Source of truth
Your store's orders financed through Affirm, cross-checked against Affirm'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 approved Affirm order confirmed to report and a declined one confirmed not to.
Affirm → 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 Affirm checkouts started, approved and captured
- Check whether server events carry a session and a source
- Read the match rate, not the success message
Checked against
Your store's orders financed through Affirm, cross-checked against Affirm's settlement.
Free30 minutesNo obligation
Affirm → GA4 · when not to buy
When you don't need this — Affirm → GA4
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the GA4 client_id.
- If your average order value is low, Affirm is a poor fit for the payment method and the integration follows that.
- 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.
Affirm → GA4 · what we deliver
What gets built — Affirm → GA4
Identifier capture into Affirm
Capture the identifier before checkout and store it on the order, so approved financing is attributable regardless of the return journey.
Event source: your store's order webhook, on Affirm charge capture
Fire on capture after approval, and tag the payment method — Affirm orders skew to higher ticket values that will distort a blended average.
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 and cancelled financing both exist and should reduce the reported figure.
Written guarantee
95%+ tracking accuracy
Measured against Your store's orders financed through Affirm, cross-checked against Affirm's settlement.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Affirm → GA4 questions, answered
The Measurement Protocol event was sent without the client_id from the shopper's original session, so GA4 created a new user with no source. Store the _ga value on the order before the Affirm redirect and send it with session_id.
The order total in the currency the customer paid. The loan amount, down payment and monthly terms are Affirm's business, not your revenue.
Almost always because the GA4 client_id never reached the Affirm charge. The shopper leaves for Affirm's flow, is assessed, and returns only if approved. Both the redirect and the decline create paths where nothing fires on your site. 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.
Your store's order webhook, on Affirm charge capture. Fire on capture after approval, and tag the payment method — Affirm orders skew to higher ticket values that will distort a blended average.
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 Affirm → GA4
- Stripe → GA4Connecting Stripe to GA4
- PayPal → GA4Connecting PayPal to GA4
- HubSpot → GA4Connecting HubSpot to GA4
Using Affirm for bookings? How Affirm bookings get tracked end to end
RELATED GUIDES
Where Affirm → GA4 fits in the rest of your tracking
- Sezzle → GA4Connecting Sezzle to GA4
- Paddle → GA4Connecting Paddle to GA4
- Splitit → GA4Connecting Splitit to GA4
- Affirm → AmplitudeConnecting Affirm to Amplitude
- Affirm → Adobe AnalyticsConnecting Affirm to Adobe Analytics
- SaaSConversion tracking for SaaS, from signup through to the payment that matters
- Acima → GA4Connecting Acima to GA4
- Razorpay → GA4Connecting Razorpay to GA4
Free · 30 min
Get Affirm and GA4 joined properly
Free30 minutesNo obligation
