Connecting Square to Matomo
Square holds the transaction, and for most Square businesses the majority of those transactions are a card tapped at a counter with no browser anywhere near them. 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 Square payment or 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
Square Online to Matomo: online orders, separate site for stores
Matomo can measure only Square Online orders. If your plan blocks custom code, send each order through the HTTP Tracking API from the Square order webhook, with the visitor ID captured before hosted checkout and the Square order ID as order ID. Record in-store totals under a separate site ID, and keep refunds and voids separately.
Matomo appeals to small Square merchants who want analytics that stays on their own server, but it can only measure what had a visitor. Square Online orders qualify; counter payments do not. If you want in-store totals in Matomo for context, record them under a separate Matomo site ID so they never enter a web conversion rate.
Check whether your Square Online plan lets you add custom code; if it does not, the Matomo tracker may not run on the store pages at all, and the order has to be sent through the HTTP Tracking API from the Square order webhook. That needs the Matomo visitor ID stored before the shopper reached Square's hosted checkout, which in practice means capturing it on a page you control and carrying it into the order, or the order arrives as a new visitor with no source.
Use the Square order ID as the ecommerce order ID so a webhook retry does not record a second order, and send items from the Square order line items if you want product reports. Matomo has no simple way to remove a tracked order later, so refunds and voids need a separate record if you want net revenue; plan that before the first busy weekend rather than after.
Square → Matomo · what breaks
Why this join usually fails — Square → Matomo
- 01
The first-party visitor ID never reaches Square
Square Online checkout is hosted, so the identifier must be carried deliberately rather than by cookie. For in-person payments there is no identifier at all unless the customer booked an appointment or is in the customer directory — a walk-in who taps a card cannot be joined to an ad click by anyone.
- 02
Most of the revenue has no browser
A card at a terminal has no click, no session and no identifier. That is a boundary to measure rather than a bug to fix, and the honest deliverable includes how much of your revenue sits outside it.
- 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.
Square → Matomo · the fix
What working looks like — Square → Matomo
The first-party visitor ID on every transaction
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
Square → Matomo · architecture
How Square and Matomo actually connect
- 1
Square holds the truth
Square records every payment with its amount, channel and, where the customer is identified, a link to the customer directory. That directory is the only bridge between a counter payment and anything that happened online.
- 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 Square payment or order.
- 4
The event source decides reliability
Subscribe to payment and order events and send from your server. This covers online orders cleanly, and covers in-person payments only for the share you can join to an identity.
- 5
Deduplication at the destination
Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.
Square → Matomo · normal or broken
Working vs. broken, side by side — Square → Matomo
Normal, not a fault
The first-party visitor ID present on the transaction
Sent from the Square payment 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
Square Online checkout is hosted, so the identifier must be carried deliberately rather than by cookie. For in-person payments there is no identifier at all unless the customer booked an appointment or is in the customer directory — a walk-in who taps a card cannot be joined to an ad click by anyone.
Sent from the browser
A card at a terminal has no click, no session and no identifier. That is a boundary to measure rather than a bug to fix, and the honest deliverable includes how much of your revenue sits outside it.
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
Square → Matomo · diagnose
Diagnostic order — Square → Matomo
- 01
Count transactions carrying the first-party visitor ID
- 02
Follow one real conversion end to end
- 03
Split Square revenue by channel before anything else
Online versus in-person. Every subsequent number depends on that split, and blending them makes both unreadable.
- 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.
Square → Matomo · prove
How it gets proven — Square → Matomo
Source of truth
Square's transaction list, split by channel — online and in-person are different questions.
- The first-party visitor ID confirmed present on a live transaction.
- Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
- The in-person join rate measured and stated as a number before any coverage claim is made.
Square → Matomo · free audit
What we check in the free audit
- Count transactions carrying the first-party visitor ID
- Follow one real conversion end to end
- Split Square revenue by channel before anything else
- Check tracker reachability and database lag before debugging any tag
- Read the match rate, not the success message
Checked against
Square's transaction list, split by channel — online and in-person are different questions.
Free30 minutesNo obligation
Square → Matomo · when not to buy
When you don't need this — Square → Matomo
- Measure identifier coverage yourself first — pull your last hundred transactions and count how many carry the first-party visitor ID.
- If nearly all your revenue is in person with no appointments and no identified customers, there is very little here to attribute and we will say so rather than build a bridge to nothing.
- 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.
Square → Matomo · what we deliver
What gets built — Square → Matomo
Identifier capture into Square
Capture the click identifier and carry it into Square Online checkout, and for in-person work use an appointment booking as the bridge so the eventual payment can be joined through the customer record.
Event source: the Square payment webhook
Subscribe to payment and order events and send from your server. This covers online orders cleanly, and covers in-person payments only for the share you can join to an identity.
Dispatch to Matomo
The Matomo HTTP Tracking API, posted server-side from your order system.
Reversals where they exist
Square exposes refunds clearly, and in hospitality and services voids and comps are frequent enough that wiring the reversal matters.
Written guarantee
95%+ tracking accuracy
Measured against Square's transaction list, split by channel — online and in-person are different questions.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Square → Matomo questions, answered
Check whether your plan allows custom code on the store. If it does not, send orders server-side through Matomo's Tracking API from the Square webhook.
Only under a separate site ID. They have no visitor and would distort web conversion rates.
Almost always because the first-party visitor ID never reached the Square payment or order. Square Online checkout is hosted, so the identifier must be carried deliberately rather than by cookie. For in-person payments there is no identifier at all unless the customer booked an appointment or is in the customer directory — a walk-in who taps a card cannot be joined to an ad click by anyone. 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 Square payment webhook. Subscribe to payment and order events and send from your server. This covers online orders cleanly, and covers in-person payments only for the share you can join to an identity.
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 Square → Matomo
- Square Online → MatomoConnecting Square Online to Matomo
- Square Appointments → MatomoConnecting Square Appointments to Matomo
- Square → Google AdsConnecting Square to Google Ads
RELATED GUIDES
Where Square → Matomo fits in the rest of your tracking
- Chargebee → MatomoConnecting Chargebee to Matomo
- Affirm → MatomoConnecting Affirm to Matomo
- Recharge → MatomoConnecting Recharge to Matomo
- Square → AmplitudeConnecting Square to Amplitude
- Square → GA4Connecting Square to GA4
- Financial servicesConversion tracking for financial services, built for the compliance review
- Acima → MatomoConnecting Acima to Matomo
- Razorpay → MatomoConnecting Razorpay to Matomo
Free · 30 min
Get Square and Matomo joined properly
Free30 minutesNo obligation
