Skip to main content
Ecwid → MatomoIntegration guide

Connecting Ecwid to Matomo

Ecwid is a store that embeds into someone else's website, which makes it the only ecommerce platform here where the checkout runs inside a widget on a page you do not fully control. 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 Ecwid 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

Recording Ecwid widget orders in Matomo ecommerce reports

Matomo on the host page cannot see a widget order by itself. Call ecommerce order tracking from Ecwid's order-placed storefront callback, or, more reliably, store Matomo's visitor ID in an Ecwid order extra field and post the order through the HTTP Tracking API when the webhook reports it paid. Use the same Ecwid order ID in both routes.

Matomo sits on the host page, the WordPress or plain HTML site the Ecwid widget is embedded in, and it has no automatic way of knowing an order was placed inside the store. The browser route is Ecwid's storefront JavaScript API, which exposes an order-placed callback on the host page; from there you can call Matomo's ecommerce order tracking with the Ecwid order ID, the total, tax, shipping and the line items. That keeps the order inside the same Matomo visit as the landing and the product views.

The more reliable route is server-side. Read Matomo's visitor ID from its first-party cookie on the host page, write it into an Ecwid order extra field during checkout, and post the order through the HTTP Tracking API when the Ecwid webhook reports the order paid. If you run both routes, use the same Ecwid order ID in each so Matomo's order-ID deduplication keeps one.

Watch two things specific to this pair. Orders placed with an offline payment method, such as cash on pickup or a bank transfer, are created unpaid in Ecwid and should be recorded only when they are marked paid, not on the order-placed callback. And refunds do not flow back into Matomo's ecommerce figures on their own; confirm what your Matomo version supports, and otherwise keep refunds as a separate reconciliation against Ecwid.

Ecwid → Matomo · what breaks

Why this join usually fails — Ecwid → Matomo

  1. 01

    The first-party visitor ID never reaches Ecwid

    The store runs inside an embedded widget, so the host page's scripts and the widget's own context are not the same environment. An identifier captured by the host page does not automatically reach the order, and a purchase inside the widget does not automatically fire the host page's tags.

  2. 02

    A checkout inside somebody else's page

    The host site and the store widget are two contexts. Tags installed on the host page routinely miss purchases entirely, and nobody notices because the site looks like it is working.

  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.

Ecwid → Matomo · the fix

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

Ecwid → Matomo · architecture

How Ecwid and Matomo actually connect

  1. 1

    Ecwid holds the truth

    Ecwid is authoritative for the order. Because it embeds into WordPress, Wix, Squarespace and plain HTML sites alike, the surrounding page's own analytics frequently has no idea a purchase happened.

  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 Ecwid order.

  4. 4

    The event source decides reliability

    Send from your server when Ecwid reports the order paid. The widget's own client-side events depend on the host page still being open and the embed having initialized correctly, neither of which is guaranteed.

  5. 5

    Deduplication at the destination

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

Ecwid → Matomo · normal or broken

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

Normal, not a fault

  • The first-party visitor ID present on the order

  • Sent from the Ecwid 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 store runs inside an embedded widget, so the host page's scripts and the widget's own context are not the same environment. An identifier captured by the host page does not automatically reach the order, and a purchase inside the widget does not automatically fire the host page's tags.

  • Sent from the browser

    The host site and the store widget are two contexts. Tags installed on the host page routinely miss purchases entirely, and nobody notices because the site looks like it is working.

  • 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

Ecwid → Matomo · diagnose

Diagnostic order — Ecwid → Matomo

  1. 01

    Count orders carrying the first-party visitor ID

  2. 02

    Follow one real conversion end to end

  3. 03

    Open a recent Ecwid order and check its extra fields

    If the identifier is not on the order, the host page captured it and never passed it across the embed boundary.

  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.

Ecwid → Matomo · prove

How it gets proven — Ecwid → Matomo

Source of truth

Ecwid's order list for the same window, in the store's currency and timezone.

  • The first-party visitor ID confirmed present on a live order.
  • Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
  • A purchase completed through the embedded widget, confirmed to report with the identifier attached.

Ecwid → 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
  • Open a recent Ecwid order and check its extra fields
  • Check tracker reachability and database lag before debugging any tag
  • Read the match rate, not the success message

Checked against

Ecwid's order list for the same window, in the store's currency and timezone.

Get my free conversion tracking audit

Free30 minutesNo obligation

Ecwid → Matomo · when not to buy

When you don't need this — Ecwid → Matomo

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the first-party visitor ID.
  • If your Ecwid store is a small add-on to a content site with modest volume, the native integrations may be adequate — measure the order volume 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.

Ecwid → Matomo · what we deliver

What gets built — Ecwid → Matomo

  • Identifier capture into Ecwid

    Capture the click identifier on the host page and pass it into the Ecwid order through its order-extra-fields or the storefront API, so it lands on the order record rather than staying on the page.

  • Event source: the Ecwid order webhook

    Send from your server when Ecwid reports the order paid. The widget's own client-side events depend on the host page still being open and the embed having initialized correctly, neither of which is guaranteed.

  • Dispatch to Matomo

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

  • Reversals where they exist

    Ecwid records refunds and cancellations against the original order, so reversals can be wired properly.

Written guarantee

95%+ tracking accuracy

Measured against Ecwid's order list for the same window, in the store's currency and timezone.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Ecwid → Matomo questions, answered

The Matomo tag on the host page never sees the purchase inside the widget. Track it from Ecwid's order-placed callback or post it server-side from the Ecwid webhook.

Free · 30 min

Get Ecwid and Matomo joined properly

Free30 minutesNo obligation