Connecting Afterpay to Matomo
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. Matomo can be self-hosted with no third party in the chain, which makes it the one analytics destination where the data genuinely never leaves infrastructure you control. The join between them succeeds or fails on one thing: whether the first-party visitor ID reaches the Afterpay order before the conversion happens, because Matomo can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Afterpay orders in Matomo without losing the redirected sessions
Write the Matomo visitor ID into the cart or order attributes before the Afterpay redirect, then send the order through the HTTP Tracking API with that ID and your order number as the ecommerce order ID, which deduplicates against browser-recorded orders. Add a payment-method custom dimension, handle returns in reporting, and confirm firewalls let server requests through.
Matomo ties an ecommerce order to a visit through its first-party visitor ID, and the Afterpay redirect is where that tie usually breaks: the visit ends on your checkout, approval happens on Afterpay's side, and the shopper may never load the confirmation page where the JavaScript tracker would record the order. Write the Matomo visitor ID into the cart or order attributes before the redirect, then send the order from your server through the HTTP Tracking API with that ID and your order number as the ecommerce order ID.
Because Matomo deduplicates on that order ID, the server request and a browser-recorded order on the confirmation page can coexist, as long as both use the same order number. Set a custom dimension for payment method so Afterpay revenue can be segmented, and compare the count of Afterpay orders in Matomo with the count in your store for the same week. The difference is the redirect loss you just recovered.
Matomo has no built-in way to reverse a refunded order, so handle Afterpay returns in your reporting rather than by deleting data. Self-hosted instances add one more failure point: the server request must reach your tracker endpoint from the order system, which is often a different network path from the browser's, and a firewall rule can block it silently.
Afterpay → Matomo · what breaks
Why this join usually fails — Afterpay → Matomo
- 01
The first-party visitor 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.
- 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
Owning the pipeline means owning the outage
The advantage is that nothing blocks it. The cost is that when the tracking database fills or falls behind on a weekend, the data is gone and no vendor is paging anyone. Hosted tools fail more visibly.
- 04
Nothing reconciles afterwards
Matomo exposes raw visit logs, so you can inspect the actual hit rather than an aggregate. Check the log, and check ingestion lag alongside it.
Afterpay → Matomo · the fix
What working looks like — Afterpay → Matomo
The first-party visitor ID on every order
Conversions arriving in Matomo
The event lands in your own database and is queryable directly, including the raw log, which most analytics products do not expose.
Reconciled against the source
Afterpay → Matomo · architecture
How Afterpay and Matomo 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
Matomo needs a click to match
The site ID, the visitor identifier and the event or ecommerce order. Self-hosted instances additionally need the tracker endpoint reachable and the database keeping up, which hosted tools do not fail at.
- 3
The identifier is the bridge
The first-party visitor ID, 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
Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.
Afterpay → Matomo · normal or broken
Working vs. broken, side by side — Afterpay → Matomo
Normal, not a fault
The first-party visitor ID present on the order
Sent from your store's order webhook
Deduplicated correctly
Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.
Reconciles with the source
Actually broken
The first-party visitor 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 advantage is that nothing blocks it. The cost is that when the tracking database fills or falls behind on a weekend, the data is gone and no vendor is paging anyone. Hosted tools fail more visibly.
Nobody has reconciled it
Afterpay → Matomo · diagnose
Diagnostic order — Afterpay → Matomo
- 01
Count orders carrying the first-party visitor ID
- 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 tracker reachability and database lag before debugging any tag
On self-hosted analytics the answer is infrastructure more often than instrumentation.
- 05
Read the match rate, not the success message
Matomo exposes raw visit logs, so you can inspect the actual hit rather than an aggregate. Check the log, and check ingestion lag alongside it.
Afterpay → Matomo · prove
How it gets proven — Afterpay → Matomo
Source of truth
Your store's orders paid with Afterpay, cross-checked against Afterpay's settlement.
- The first-party visitor ID confirmed present on a live order.
- Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
- An Afterpay order abandoned at the return step, confirmed to still report.
Afterpay → Matomo · free audit
What we check in the free audit
- Count orders carrying the first-party visitor ID
- Follow one real conversion end to end
- Count Afterpay checkouts started against confirmation-page loads
- Check tracker reachability and database lag before debugging any tag
- 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 → Matomo · when not to buy
When you don't need this — Afterpay → Matomo
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the first-party visitor ID.
- If BNPL is a very small share of your orders, measure that share before commissioning anything.
- If you have no privacy or ownership requirement and no team to run it, a hosted product removes the only real cost of this one.
Afterpay → Matomo · what we deliver
What gets built — Afterpay → Matomo
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 Matomo
The Matomo HTTP Tracking API, posted server-side from your order system.
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 → Matomo questions, answered
Usually because orders are recorded by the browser tracker on the confirmation page, and Afterpay shoppers who don't return to it never load that page. Sending the order server-side with the stored visitor ID fixes it.
Not out of the box. Set a custom dimension with the payment method when you send the order, then segment ecommerce reports by it.
Almost always because the first-party visitor ID 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.
Matomo sets its own first-party cookie and, when self-hosted on your domain, is not a third-party request at all. That means ad blockers and browser tracking-prevention affect it far less than a hosted analytics tag — one of the few genuine measurement advantages available under current privacy conditions.
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.
Matomo exposes raw visit logs, so you can inspect the actual hit rather than an aggregate. Check the log, and check ingestion lag alongside it.
More on Afterpay → Matomo
- Afterpay → Google AdsConnecting Afterpay to Google Ads
- Afterpay → MetaConnecting Afterpay to Meta Conversions API
- Afterpay → GA4Connecting Afterpay to GA4
RELATED GUIDES
Where Afterpay → Matomo fits in the rest of your tracking
- Acima → MatomoConnecting Acima to Matomo
- Helcim → MatomoConnecting Helcim to Matomo
- Klarna → MatomoConnecting Klarna to Matomo
- Afterpay → Adobe AnalyticsConnecting Afterpay to Adobe Analytics
- Afterpay → GA4Connecting Afterpay to GA4
- SubscriptionsConversion tracking for subscription businesses, across the whole lifecycle
- Recurly → MatomoConnecting Recurly to Matomo
- Authorize.net → MatomoConnecting Authorize.net to Matomo
Free · 30 min
Get Afterpay and Matomo joined properly
Free30 minutesNo obligation
