Skip to main content
SureCart → MatomoIntegration guide

Connecting SureCart to Matomo

SureCart runs checkout off-site while the store lives in WordPress, which removes the database load and introduces a handoff where the identifier can be lost. 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 SureCart 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

SureCart orders in Matomo for WordPress, sent from the webhook

Pass the Matomo visitor ID from the buyer's cookie into the SureCart checkout as metadata, then send the order from the paid-order webhook through the Tracking API as an ecommerce order with the order number, paid total and line items. Without it, orders credit direct traffic. Matomo can't reverse refunds, so reconcile them monthly from SureCart data.

Matomo can run inside the same WordPress install as SureCart through the Matomo for WordPress plugin, which puts analytics and store front on one domain under your control. The order is the part that does not live there: SureCart processes and stores it on its own platform. Recording it from the browser on the confirmation page misses buyers who do not return, so send it server-side from the paid-order webhook as a Matomo ecommerce order.

For that server call to land on the right visitor, the Matomo visitor ID from the buyer's cookie must travel with the checkout. Read it on your WordPress page and pass it into the SureCart checkout as metadata, then include it in the Tracking API request with the SureCart order number as the order ID, the paid total, and line items. Without the visitor ID, the order arrives as a new visitor with no campaign, and Matomo's ecommerce reports credit direct traffic.

Refunds do not reverse in Matomo through the ordinary tracking calls, so decide where refunded revenue is reported. A simple approach is a monthly reconciliation from SureCart's data into a custom report, rather than trying to make Matomo's revenue totals net of refunds.

SureCart → Matomo · what breaks

Why this join usually fails — SureCart → Matomo

  1. 01

    The first-party visitor ID never reaches SureCart

    Checkout runs on SureCart's infrastructure, so the identifier must be passed at the handoff rather than read from the page.

  2. 02

    Order data living outside the site it belongs to

    Teams used to querying the WooCommerce orders table find nothing in the database, because the orders are not there. Reconciliation has to go through the API, and assuming otherwise wastes a day.

  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.

SureCart → Matomo · the fix

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

SureCart → Matomo · architecture

How SureCart and Matomo actually connect

  1. 1

    SureCart holds the truth

    Because the cart is hosted rather than in WordPress, the order data lives outside your database and must be pulled rather than queried.

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

  4. 4

    The event source decides reliability

    Send completed orders at paid value, with subscriptions sending only the first payment.

  5. 5

    Deduplication at the destination

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

SureCart → Matomo · normal or broken

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

Normal, not a fault

  • The first-party visitor ID present on the order

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

    Checkout runs on SureCart's infrastructure, so the identifier must be passed at the handoff rather than read from the page.

  • Sent from the browser

    Teams used to querying the WooCommerce orders table find nothing in the database, because the orders are not there. Reconciliation has to go through the API, and assuming otherwise wastes a day.

  • 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

SureCart → Matomo · diagnose

Diagnostic order — SureCart → Matomo

  1. 01

    Count orders carrying the first-party visitor ID

  2. 02

    Follow one real conversion end to end

  3. 03

    Confirm where the order record actually lives before designing reconciliation

    On hosted-checkout plugins it is not in WordPress, and that changes the whole approach.

  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.

SureCart → Matomo · prove

How it gets proven — SureCart → Matomo

Source of truth

SureCart orders by date, split into one-time and subscription purchases.

  • The first-party visitor ID confirmed present on a live order.
  • Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
  • Completed orders reconciled from the API against imported conversions.

SureCart → 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
  • Confirm where the order record actually lives before designing reconciliation
  • Check tracker reachability and database lag before debugging any tag
  • Read the match rate, not the success message

Checked against

SureCart orders by date, split into one-time and subscription purchases.

Get my free conversion tracking audit

Free30 minutesNo obligation

SureCart → Matomo · when not to buy

When you don't need this — SureCart → Matomo

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the first-party visitor ID.
  • If you use a fully in-database cart, you can query directly and this indirection does not apply.
  • 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.

SureCart → Matomo · what we deliver

What gets built — SureCart → Matomo

  • Identifier capture into SureCart

    Capture on your WordPress site and pass the identifier into the checkout session as metadata.

  • Event source: the SureCart order webhook

    Send completed orders at paid value, with subscriptions sending only the first payment.

  • Dispatch to Matomo

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

  • Reversals where they exist

    Refunds and cancellations reverse.

Written guarantee

95%+ tracking accuracy

Measured against SureCart orders by date, split into one-time and subscription purchases.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

SureCart → Matomo questions, answered

The browser tracker can catch confirmation-page views, but the reliable route is a server-side ecommerce order from SureCart's paid-order webhook with the visitor ID passed through checkout.

Free · 30 min

Get SureCart and Matomo joined properly

Free30 minutesNo obligation