Connecting Square Online to Matomo
Square Online orders settle into the same Square account as the card taken at the counter, which is a genuine advantage: the online and in-person halves of the business are already denominated in one ledger. 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 Online 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 orders in Matomo, with the visitor ID across domains
Matomo helps only if your Square Online store and checkout run on your own domain, where the tracker can set a visitor ID. Send ecommerce orders server-side through the HTTP Tracking API from Square's order record, with the Square order ID, revenue excluding tip and the captured visitor ID. Track refunds as separate events.
Matomo appeals to a Square merchant for one reason: it can run on your own domain and record visits that hosted tags miss. That only helps if the storefront is on your domain too. When the store runs on a Square-provided subdomain, a Matomo cookie set on your marketing site is not readable there, so the visit that started on your domain and the order that finished on Square's look like two different visitors. Check which domains your store and checkout actually use before installing anything.
Then check whether your Square Online plan lets you add site-wide custom code at all, because the tracker has to load on the storefront to set a visitor ID. Send the ecommerce order server-side through the HTTP Tracking API from the Square order record, with the Square order ID as Matomo's order ID, revenue excluding the tip, and the visitor ID you captured attached. Using the Square order ID means a confirmation-page hit and the server hit for the same order collapse into one.
The Square-specific trap is order status. A lunch order placed at 11:58 for 12:30 pickup is one order, but if your integration also fires when the kitchen marks it completed, Matomo's order-ID deduplication is the only thing between you and a doubled day. Matomo's ecommerce reports have no native refund handling, so track refunds as a separate event and subtract them in your own reporting.
Square Online → Matomo · what breaks
Why this join usually fails — Square Online → Matomo
- 01
The first-party visitor ID never reaches Square Online
Square Online sites are frequently on a Square-provided domain, and checkout may hand off to Square-hosted payment pages depending on configuration.
- 02
Counter sales counted as online conversions
The convenience of one ledger is also the trap. If the sales channel is not filtered, every card swipe at the register lands in your ad reporting as a conversion you paid for.
- 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 Online → Matomo · the fix
What working looks like — Square Online → 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
Square Online → Matomo · architecture
How Square Online and Matomo actually connect
- 1
Square Online holds the truth
The filter is the whole job. Square's default reporting cheerfully sums counter sales and online orders, and that total is not something any ad platform should be optimizing toward.
- 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 Online order.
- 4
The event source decides reliability
Send net of tips and taxes. Tips on food orders are substantial and are not your revenue.
- 5
Deduplication at the destination
Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.
Square Online → Matomo · normal or broken
Working vs. broken, side by side — Square Online → Matomo
Normal, not a fault
The first-party visitor ID present on the order
Sent from the Square transaction record
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 sites are frequently on a Square-provided domain, and checkout may hand off to Square-hosted payment pages depending on configuration.
Sent from the browser
The convenience of one ledger is also the trap. If the sales channel is not filtered, every card swipe at the register lands in your ad reporting as a conversion you paid for.
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 Online → Matomo · diagnose
Diagnostic order — Square Online → Matomo
- 01
Count orders carrying the first-party visitor ID
- 02
Follow one real conversion end to end
- 03
Filter by sales channel and re-check the total
Compare the filtered online total against Square Online's own order count. If they disagree, the filter is wrong before the tracking is.
- 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 Online → Matomo · prove
How it gets proven — Square Online → Matomo
Source of truth
Square transactions filtered to the online sales channel, by location.
- The first-party visitor ID confirmed present on a live order.
- Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
- Online-channel transactions reconciled against imported conversions for a settled week.
Square Online → 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
- Filter by sales channel and re-check the total
- Check tracker reachability and database lag before debugging any tag
- Read the match rate, not the success message
Checked against
Square transactions filtered to the online sales channel, by location.
Free30 minutesNo obligation
Square Online → Matomo · when not to buy
When you don't need this — Square Online → Matomo
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the first-party visitor ID.
- If Square Online is a small side channel next to your counter business, measure it on order count and do not build an import for it.
- 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 Online → Matomo · what we deliver
What gets built — Square Online → Matomo
Identifier capture into Square Online
Persist the identifier in first-party storage on your own domain before the handoff, and reattach it to the order at the point the transaction is written.
Event source: the Square transaction record
Send net of tips and taxes. Tips on food orders are substantial and are not your revenue.
Dispatch to Matomo
The Matomo HTTP Tracking API, posted server-side from your order system.
Reversals where they exist
Refunds appear in Square as their own records and should be sent as reversals.
Written guarantee
95%+ tracking accuracy
Measured against Square transactions filtered to the online sales channel, by location.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Square Online → Matomo questions, answered
Check whether your Square Online plan allows custom site-wide code; if it does, the Matomo tag can load on the storefront. If not, server-side orders still work, but without a browser visitor ID they cannot be tied to a visit or campaign.
Usually because counter sales are in Square's totals, or because the storefront runs on a different domain from where Matomo's cookie lives. Compare against Square transactions filtered to the online channel.
Almost always because the first-party visitor ID never reached the Square Online order. Square Online sites are frequently on a Square-provided domain, and checkout may hand off to Square-hosted payment pages depending on configuration. 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 transaction record. Send net of tips and taxes. Tips on food orders are substantial and are not your revenue.
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 Online → Matomo
- Square Online → Google AdsConnecting Square Online to Google Ads
- Square Online → MetaConnecting Square Online to Meta Conversions API
- Square Online → GA4Connecting Square Online to GA4
RELATED GUIDES
Where Square Online → Matomo fits in the rest of your tracking
- ChowNow → MatomoConnecting ChowNow to Matomo
- Olo → MatomoConnecting Olo to Matomo
- DoorDash → MatomoConnecting DoorDash to Matomo
- Square Online → Adobe AnalyticsConnecting Square Online to Adobe Analytics
- Square Online → AmplitudeConnecting Square Online to Amplitude
- RestaurantsConversion tracking for restaurants, across reservations, orders and calls
- Deliverect → MatomoConnecting Deliverect to Matomo
- Toast → MatomoConnecting Toast to Matomo
Free · 30 min
Get Square Online and Matomo joined properly
Free30 minutesNo obligation
