Connecting Shopify Checkout Extensibility to Matomo
Shopify replaced checkout.liquid with a sandboxed extension model, and the thank-you page — where nearly every store put its conversion tracking — was the last thing to go. 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 Shopify 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
Matomo ecommerce orders on Shopify without the thank-you script
Matomo's thank-you page trackEcommerceOrder call stopped, so revenue flatlined. Write the Matomo visitor ID into a cart attribute on the storefront, then send the order from the webhook to the HTTP Tracking API with that ID in _id, the Shopify order ID in ec_id, and grand total, subtotal, tax, shipping and discount filled from the order.
Most Shopify stores running Matomo recorded orders with a trackEcommerceOrder call on the thank-you page. That call no longer runs, so Matomo keeps recording product views and carts while ecommerce revenue flatlines. The replacement is a server-side call to the Matomo HTTP Tracking API from the order webhook, which only works if the order knows which Matomo visitor it belongs to.
So the visitor ID has to travel. On the storefront, where Matomo's tracker still runs, read the visitor ID and write it into a cart attribute; Shopify carries cart attributes onto the order as note attributes. The webhook then sends the order with that visitor ID in the _id parameter and the Shopify order ID in ec_id. Because Matomo deduplicates orders on that order ID, the webhook can retry without doubling revenue. If you also fire an order from a Web Pixel, use the same ID in both, or pick one path.
Decide what revenue means before the first send. Matomo's order takes a grand total plus separate subtotal, tax, shipping and discount fields; fill them all from the Shopify order so product revenue is not read off a figure inflated by shipping. Refunds do not reverse automatically in Matomo, which is worth stating in any report built on it. Self-hosted instances add one more check: the tracking endpoint must accept server requests, and a firewall rule that blocks your webhook handler drops orders silently.
Checkout Extensibility → Matomo · what breaks
Why this join usually fails — Checkout Extensibility → Matomo
- 01
The first-party visitor ID never reaches Checkout Extensibility
Custom scripts can no longer run on checkout or the thank-you page. Client-side conversion tags placed there are not blocked — they are simply never loaded.
- 02
Conversion tracking that silently stopped
This is the single most common live tracking failure on Shopify right now. Nothing errors. The tag simply never runs, revenue keeps arriving, and the ad platform reports a collapse that looks like a market problem.
- 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.
Checkout Extensibility → Matomo · the fix
What working looks like — Checkout Extensibility → 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
Shopify Checkout Extensibility's own records are the reference, not either dashboard.
Checkout Extensibility → Matomo · architecture
How Checkout Extensibility and Matomo actually connect
- 1
Shopify Checkout Extensibility holds the truth
Additional Scripts and script tags on the order status page are gone. Any tracking that lived there has already stopped firing or will, and the store owner usually finds out from a revenue report rather than an error.
- 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 Shopify order.
- 4
The event source decides reliability
Send orders from the webhook at the paid total. Web Pixels are the supported browser-side path and they run sandboxed, with no access to the page.
- 5
Deduplication at the destination
Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.
Checkout Extensibility → Matomo · normal or broken
Working vs. broken, side by side — Checkout Extensibility → Matomo
Normal, not a fault
The first-party visitor ID present on the order
Visible on the record itself in Shopify Checkout Extensibility, not merely captured somewhere on the site.
Sent from the Shopify order webhook, server-side
Deduplicated correctly
Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.
Reconciles with the source
Matomo's count and Shopify Checkout Extensibility's records agree within a few percent over a closed window.
Actually broken
The first-party visitor ID missing on most records
Custom scripts can no longer run on checkout or the thank-you page. Client-side conversion tags placed there are not blocked — they are simply never loaded.
Sent from the browser
This is the single most common live tracking failure on Shopify right now. Nothing errors. The tag simply never runs, revenue keeps arriving, and the ad platform reports a collapse that looks like a market problem.
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
The dashboard shows a number and no one has compared it to Shopify Checkout Extensibility.
Checkout Extensibility → Matomo · diagnose
Diagnostic order — Checkout Extensibility → Matomo
- 01
Count orders carrying the first-party visitor ID
- 02
Follow one real conversion end to end
- 03
Compare Shopify order count against platform-reported conversions for the last 60 days
A sharp divergence with no change in actual sales is the signature. Check what was in Additional Scripts before assuming anything else.
- 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.
Checkout Extensibility → Matomo · prove
How it gets proven — Checkout Extensibility → Matomo
Against Shopify Checkout Extensibility's own records, not against either platform's dashboard.
Source of truth
Shopify orders by creation date, read from the order record rather than from anything rendered on a page.
- The first-party visitor ID confirmed present on a live order.
- Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
- Orders reconciled from the webhook against imported conversions for a settled week, with no dependence on anything rendered at checkout.
Checkout Extensibility → 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
- Compare Shopify order count against platform-reported conversions for the last 60 days
- Check tracker reachability and database lag before debugging any tag
- Read the match rate, not the success message
Checked against
Shopify orders by creation date, read from the order record rather than from anything rendered on a page.
Free30 minutesNo obligation
Checkout Extensibility → Matomo · when not to buy
When you don't need this — Checkout Extensibility → Matomo
- If Matomo already reports conversions that reconcile against Shopify Checkout Extensibility's records within a few percent, this join is working and there is nothing to buy.
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the first-party visitor ID.
- If you were already sending conversions server-side from the order webhook, this migration does not affect your tracking at all — which is exactly why server-side was worth doing before it was forced.
- 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.
Checkout Extensibility → Matomo · what we deliver
What gets built — Checkout Extensibility → Matomo
Identifier capture into Checkout Extensibility
Capture the identifier on your own storefront, persist it into cart or order attributes, and send the conversion server-side from the order webhook rather than from any page.
Event source: the Shopify order webhook, server-side
Send orders from the webhook at the paid total. Web Pixels are the supported browser-side path and they run sandboxed, with no access to the page.
Dispatch to Matomo
The Matomo HTTP Tracking API, posted server-side from your order system.
Reversals where they exist
Refunds and cancellations reverse from their own webhooks.
Written guarantee
95%+ tracking accuracy
Measured against Shopify orders by creation date, read from the order record rather than from anything rendered on a page.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Checkout Extensibility → Matomo questions, answered
The ecommerce order call usually lived on the thank-you page, which no longer runs custom scripts. Send orders server-side from the order webhook with the visitor ID carried in a cart attribute.
Yes, if the storefront writes the Matomo visitor ID into a cart attribute before checkout and the webhook sends it back. Without it, the order lands on a new visitor with no source.
Almost always because the first-party visitor ID never reached the Shopify order. Custom scripts can no longer run on checkout or the thank-you page. Client-side conversion tags placed there are not blocked — they are simply never loaded. 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.
The Shopify order webhook, server-side. Send orders from the webhook at the paid total. Web Pixels are the supported browser-side path and they run sandboxed, with no access to the page.
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 Checkout Extensibility → Matomo
- Checkout Extensibility → Google AdsConnecting Shopify Checkout Extensibility to Google Ads
- Checkout Extensibility → MetaConnecting Shopify Checkout Extensibility to Meta Conversions API
- Checkout Extensibility → GA4Connecting Shopify Checkout Extensibility to GA4
RELATED GUIDES
Where Checkout Extensibility → Matomo fits in the rest of your tracking
- WooCommerce Subscriptions → MatomoConnecting WooCommerce Subscriptions to Matomo
- Swell → MatomoConnecting Swell to Matomo
- PrestaShop → MatomoConnecting PrestaShop to Matomo
- Checkout Extensibility → Adobe AnalyticsConnecting Shopify Checkout Extensibility to Adobe Analytics
- Checkout Extensibility → AmplitudeConnecting Shopify Checkout Extensibility to Amplitude
- Furniture ecommerceConversion tracking for furniture ecommerce, measured after delivery
- Medusa → MatomoConnecting Medusa to Matomo
- Magento → MatomoConnecting Magento to Matomo
Free · 30 min
Get Checkout Extensibility and Matomo joined properly
Free30 minutesNo obligation
