Skip to main content
CartStack → MatomoIntegration guide

Connecting CartStack to Matomo

CartStack recovers abandoned carts and abandoned browsing sessions, which means it can claim orders from visitors who never added anything to a cart at all. 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 CartStack recovered 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

Make Matomo see both halves of a CartStack recovery

CartStack recovery links usually open on a new device, creating a new Matomo visitor. Tag recovery links with Matomo campaign parameters and set the same hashed or internal customer ID as User ID on both visits. Send the order server-side through the HTTP Tracking API with the store order number as order ID, plus a recovered custom dimension.

Matomo's ecommerce reports can show what CartStack's dashboard cannot: the original channel of a visit that ended in an abandoned cart, and the channel of the visit that finally bought. The catch is that the recovery link is usually opened on a phone days later, so Matomo issues a new visitor ID and the order appears as an email visit with no history. Tag CartStack's recovery links with Matomo campaign parameters so the return visit is labeled correctly, then decide how to connect it to the first one.

The connection is Matomo's User ID feature. When the shopper's email is known at checkout, set a hashed or internal customer ID as the User ID, and set the same value on the return visit from the recovery link. Matomo can then show both visits under one user, and the paid campaign that brought them the first time stays visible next to the email that closed it.

Send the order itself server-side through the HTTP Tracking API with the store order number as the order ID, so a refresh of the thank-you page does not record a second order. Add a custom dimension for recovered versus first-pass. Because Matomo is first-party, and often self-hosted, this is one of the few places where you can measure recovery's real share of revenue without an ad platform taking a cut of the credit.

CartStack → Matomo · what breaks

Why this join usually fails — CartStack → Matomo

  1. 01

    The first-party visitor ID never reaches CartStack

    Recovery emails are opened days later on other devices, arriving as fresh sessions.

  2. 02

    Browse abandonment claiming credit for the original visit

    Recovering a browser who never added to cart means claiming an order from someone your advertising brought and your email finished. Both contributed, and only one gets reported without persistence.

  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.

CartStack → Matomo · the fix

What working looks like — CartStack → Matomo

  • The first-party visitor ID on every recovery

  • 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

CartStack → Matomo · architecture

How CartStack and Matomo actually connect

  1. 1

    CartStack holds the truth

    Browse abandonment recovery reaches people who looked and left. Attributing their eventual purchase entirely to the recovery email ignores whatever brought them the first time.

  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 CartStack recovered order.

  4. 4

    The event source decides reliability

    Send orders with a flag for recovered versus first-pass, so both channels are visible.

  5. 5

    Deduplication at the destination

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

CartStack → Matomo · normal or broken

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

Normal, not a fault

  • The first-party visitor ID present on the recovery

  • Sent from your order record with recovery attribution

  • 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

    Recovery emails are opened days later on other devices, arriving as fresh sessions.

  • Sent from the browser

    Recovering a browser who never added to cart means claiming an order from someone your advertising brought and your email finished. Both contributed, and only one gets reported without persistence.

  • 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

CartStack → Matomo · diagnose

Diagnostic order — CartStack → Matomo

  1. 01

    Count recoverys carrying the first-party visitor ID

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether recovered orders retain their original acquisition source

    If they show as email or direct, paid is undercounted by your recovery rate.

  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.

CartStack → Matomo · prove

How it gets proven — CartStack → Matomo

Source of truth

Store orders flagged by whether a recovery message preceded them.

  • The first-party visitor ID confirmed present on a live recovery.
  • Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
  • Orders reconciled with recovery flagged and original source retained.

CartStack → Matomo · free audit

What we check in the free audit

  • Count recoverys carrying the first-party visitor ID
  • Follow one real conversion end to end
  • Check whether recovered orders retain their original acquisition source
  • Check tracker reachability and database lag before debugging any tag
  • Read the match rate, not the success message

Checked against

Store orders flagged by whether a recovery message preceded them.

Get my free conversion tracking audit

Free30 minutesNo obligation

CartStack → Matomo · when not to buy

When you don't need this — CartStack → Matomo

  • Measure identifier coverage yourself first — pull your last hundred recoverys and count how many carry the first-party visitor ID.
  • No recovery programme means no double-claim and this is an ordinary store integration.
  • 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.

CartStack → Matomo · what we deliver

What gets built — CartStack → Matomo

  • Identifier capture into CartStack

    Persist the identifier against the abandoned session so a recovered order still resolves to the original source.

  • Event source: your order record with recovery attribution

    Send orders with a flag for recovered versus first-pass, so both channels are visible.

  • Dispatch to Matomo

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

  • Reversals where they exist

    Refunds reverse.

Written guarantee

95%+ tracking accuracy

Measured against Store orders flagged by whether a recovery message preceded them.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

CartStack → Matomo questions, answered

The recovery link opens a new session, often on a different device, so Matomo sees a new visitor. Campaign parameters on the links fix the label; a shared User ID is what links the order back to the original paid visit.

Free · 30 min

Get CartStack and Matomo joined properly

Free30 minutesNo obligation