Connecting Afterpay to Amplitude
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. Amplitude is built around behavioural cohorts, which makes the identity resolution and the event taxonomy load-bearing in a way they never are for an ad pixel. The join between them succeeds or fails on one thing: whether the user ID and device ID pair reaches the Afterpay order before the conversion happens, because Amplitude can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Afterpay orders in Amplitude without losing revenue or the user
Send the purchase from the order webhook, with the Amplitude device_id and user_id attached to the cart before the Afterpay redirect, so it lands on the browsing user. Record the full order value with price and quantity, never four instalment events, add payment_method as a property, and send refunds as negative revenue for the same user.
In Amplitude, Afterpay checkouts look like abandonment unless you send the purchase from the server. The browser funnel shows Checkout Started, then a redirect to Afterpay, then nothing for every shopper who never came back to the confirmation page. Fire the purchase from the order webhook instead, and attach the Amplitude device_id (and user_id if they are logged in) to the cart before the redirect so the server event lands on the same person who browsed.
Populate price and quantity on the purchase event, at the full order value. Afterpay settles you up front, so do not model the four instalments as four revenue events; that splits one order into four smaller ones and wrecks average order value in every cohort. Add payment_method as an event property so you can compare BNPL buyers against card buyers on repeat purchase and retention, which is the question Amplitude is actually good at here.
Refunds need their own event with negative revenue, tied to the same user. BNPL orders tend to see more returns in many stores, so a cohort built on gross Afterpay revenue will look better than it is. The common break for this pair is identity: a guest checkout where the order carries an email but no device_id creates a new Amplitude user, and the BNPL cohort fills with one-event strangers.
Afterpay → Amplitude · what breaks
Why this join usually fails — Afterpay → Amplitude
- 01
The user ID and device ID pair 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.
- 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.
- 03
Revenue events that carry no revenue
Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.
- 04
Nothing reconciles afterwards
Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.
Afterpay → Amplitude · the fix
What working looks like — Afterpay → Amplitude
The user ID and device ID pair on every order
Conversions arriving in Amplitude
The event lands on the user, joins their behavioural history, and becomes available for cohorts, funnels and retention.
Reconciled against the source
Afterpay → Amplitude · architecture
How Afterpay and Amplitude actually connect
- 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
Amplitude needs a click to match
Amplitude needs a device or user identifier, an event type and its properties. Revenue events need the price and quantity fields specifically, or the revenue reporting stays empty while events flow normally.
- 3
The identifier is the bridge
The user ID and device ID pair, captured at the visit and carried into the Afterpay order.
- 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
Deduplication at the destination
Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.
Afterpay → Amplitude · normal or broken
Working vs. broken, side by side — Afterpay → Amplitude
Normal, not a fault
The user ID and device ID pair present on the order
Sent from your store's order webhook
Deduplicated correctly
Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.
Reconciles with the source
Actually broken
The user ID and device ID pair 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
Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.
Nobody has reconciled it
Afterpay → Amplitude · diagnose
Diagnostic order — Afterpay → Amplitude
- 01
Count orders carrying the user ID and device ID pair
- 02
Follow one real conversion end to end
- 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.
- 04
Check a purchase event for the price and quantity fields specifically
Not whether the event arrived — whether the revenue fields are populated, in the exact names Amplitude expects.
- 05
Read the match rate, not the success message
Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.
Afterpay → Amplitude · prove
How it gets proven — Afterpay → Amplitude
Source of truth
Your store's orders paid with Afterpay, cross-checked against Afterpay's settlement.
- The user ID and device ID pair confirmed present on a live order.
- Revenue reconciled per transaction against your billing system, with identity merge behaviour verified across signup.
- An Afterpay order abandoned at the return step, confirmed to still report.
Afterpay → Amplitude · free audit
What we check in the free audit
- Count orders carrying the user ID and device ID pair
- Follow one real conversion end to end
- Count Afterpay checkouts started against confirmation-page loads
- Check a purchase event for the price and quantity fields specifically
- Read the match rate, not the success message
Checked against
Your store's orders paid with Afterpay, cross-checked against Afterpay's settlement.
Free30 minutesNo obligation
Afterpay → Amplitude · when not to buy
When you don't need this — Afterpay → Amplitude
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the user ID and device ID pair.
- If BNPL is a very small share of your orders, measure that share before commissioning anything.
- If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.
Afterpay → Amplitude · what we deliver
What gets built — Afterpay → Amplitude
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 Amplitude
The Amplitude HTTP V2 API, posted server-side with the identity, event type and properties.
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.
From $400 · See packages
FAQ
Afterpay → Amplitude questions, answered
The browser never returns from Afterpay's approval step for a share of shoppers, so a client-side purchase event never fires. Send the purchase from your order webhook with the stored device_id instead.
No. The merchant is paid the full amount up front, so send one purchase with the full price and quantity, and handle returns as a separate negative-revenue event.
Almost always because the user ID and device ID pair never reached the Afterpay order. 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. Measure coverage before debugging the dispatch.
Amplitude tracks both a device ID and a user ID and merges them when a user identifies. The merge rules decide who counts as one person, so a mistake here does not produce a small error — it changes every retention curve and cohort size in the account.
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.
Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.
More on Afterpay → Amplitude
- Afterpay → Google AdsConnecting Afterpay to Google Ads
- Afterpay → MetaConnecting Afterpay to Meta Conversions API
- Afterpay → GA4Connecting Afterpay to GA4
RELATED GUIDES
Where Afterpay → Amplitude fits in the rest of your tracking
- Worldpay → AmplitudeConnecting Worldpay to Amplitude
- Chargebee → AmplitudeConnecting Chargebee to Amplitude
- Square → AmplitudeConnecting Square to Amplitude
- Afterpay → MatomoConnecting Afterpay to Matomo
- Afterpay → MixpanelConnecting Afterpay to Mixpanel
- EcommerceConversion tracking for ecommerce brands, measured against your orders
- Checkout.com → AmplitudeConnecting Checkout.com to Amplitude
- Maxio → AmplitudeConnecting Maxio to Amplitude
Free · 30 min
Get Afterpay and Amplitude joined properly
Free30 minutesNo obligation
