Skip to main content
Squarespace → MatomoIntegration guide

Connecting Squarespace Commerce to Matomo

Squarespace prioritises design simplicity over extensibility, so what you can instrument is bounded by what the platform chooses to expose. 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 Squarespace 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 on Squarespace: browser and server orders on one order ID

Load Matomo through Code Injection and record ecommerce orders from the confirmation page injection, adding a server copy from Squarespace's order webhook through the HTTP Tracking API with the same order ID so Matomo keeps one. Have the confirmation page send the visitor ID to your endpoint to attach to server orders. Check checkout's domain.

Matomo's order-ID deduplication suits Squarespace's limits well. The tracker loads through Code Injection on plans that allow it, and the order confirmation page injection can print the order ID and totals, so the browser can record the ecommerce order against the visitor who made it. A server-side copy from Squarespace's order webhook through the HTTP Tracking API covers the orders where that page never ran, and because both carry the same Squarespace order ID, Matomo keeps one.

The server copy does not know the visitor unless you tell it. Have the confirmation page also send the Matomo visitor ID and order ID to your own endpoint, store the pair, and attach the visitor ID when the webhook order arrives. Without it, server-only orders appear as visits with no campaign or channel, which drags every source's conversion rate down by the same blind share.

Check whether checkout runs on your own domain or on a Squarespace domain for your site. If they differ, the Matomo cookie from your product pages may not be the visitor Matomo sees on the confirmation page, and campaign attribution splits in two. Self-hosting Matomo on a subdomain of your store's domain keeps the tracker first-party, which matters more here because the confirmation page is the only checkout step your code reliably runs on.

Squarespace → Matomo · what breaks

Why this join usually fails — Squarespace → Matomo

  1. 01

    The first-party visitor ID never reaches Squarespace

    Checkout runs on Squarespace's infrastructure with limited script access, so an identifier held in a cookie on your pages does not reliably reach the order. What survives has to be tested rather than assumed.

  2. 02

    Platform limits mistaken for implementation failures

    Squarespace restricts what runs at checkout by design. A setup that works on Shopify will not simply port, and the gap is the platform rather than the build.

  3. 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.

  4. 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.

Squarespace → Matomo · the fix

What working looks like — Squarespace → 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

    Squarespace Commerce's own records are the reference, not either dashboard.

Squarespace → Matomo · architecture

How Squarespace and Matomo actually connect

  1. 1

    Squarespace Commerce holds the truth

    Squarespace holds the order cleanly. The constraint is access — code injection is limited and checkout customisation more so, which caps what a browser-side approach can achieve.

  2. 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. 3

    The identifier is the bridge

    The first-party visitor ID, captured at the visit and carried into the Squarespace order.

  4. 4

    The event source decides reliability

    Send from the webhook rather than the confirmation page, which has restricted script access and may not run what you expect.

  5. 5

    Deduplication at the destination

    Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.

Squarespace → Matomo · normal or broken

Working vs. broken, side by side — Squarespace → Matomo

Normal, not a fault

  • The first-party visitor ID present on the order

    Visible on the record itself in Squarespace Commerce, not merely captured somewhere on the site.

  • Sent from the Squarespace 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

    Matomo's count and Squarespace Commerce's records agree within a few percent over a closed window.

Actually broken

  • The first-party visitor ID missing on most records

    Checkout runs on Squarespace's infrastructure with limited script access, so an identifier held in a cookie on your pages does not reliably reach the order. What survives has to be tested rather than assumed.

  • Sent from the browser

    Squarespace restricts what runs at checkout by design. A setup that works on Shopify will not simply port, and the gap is the platform rather than the build.

  • 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 Squarespace Commerce.

Squarespace → Matomo · diagnose

Diagnostic order — Squarespace → Matomo

  1. 01

    Count orders carrying the first-party visitor ID

  2. 02

    Follow one real conversion end to end

  3. 03

    Test what actually reaches the order record

    One real purchase tells you more than the documentation about what this platform preserves.

  4. 04

    Check tracker reachability and database lag before debugging any tag

    On self-hosted analytics the answer is infrastructure more often than instrumentation.

  5. 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.

Squarespace → Matomo · prove

How it gets proven — Squarespace → Matomo

Against Squarespace Commerce's own records, not against either platform's dashboard.

Source of truth

Squarespace's order records for the same window.

  • The first-party visitor ID confirmed present on a live order.
  • Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
  • A test purchase with the identifier confirmed retrievable from the Squarespace order.

Squarespace → 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
  • Test what actually reaches the order record
  • Check tracker reachability and database lag before debugging any tag
  • Read the match rate, not the success message

Checked against

Squarespace's order records for the same window.

Get my free conversion tracking audit

Free30 minutesNo obligation

Squarespace → Matomo · when not to buy

When you don't need this — Squarespace → Matomo

  • If Matomo already reports conversions that reconcile against Squarespace Commerce'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.
  • For a small Squarespace store, the native integrations plus honest reporting may be the right answer — the platform's ceiling is real.
  • 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.

Squarespace → Matomo · what we deliver

What gets built — Squarespace → Matomo

  • Identifier capture into Squarespace

    Capture the identifier and pass it through the supported order form fields or the commerce API, verifying on a real order which values persist.

  • Event source: the Squarespace order webhook

    Send from the webhook rather than the confirmation page, which has restricted script access and may not run what you expect.

  • Dispatch to Matomo

    The Matomo HTTP Tracking API, posted server-side from your order system.

  • Reversals where they exist

    Refunds are recorded against the order.

Written guarantee

95%+ tracking accuracy

Measured against Squarespace's order records for the same window.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Squarespace → Matomo questions, answered

Yes, through Code Injection on plans that support it, with ecommerce orders recorded from the order confirmation page injection. Check which order variables your plan exposes there.

Free · 30 min

Get Squarespace and Matomo joined properly

Free30 minutesNo obligation