Skip to main content
Loop → MatomoIntegration guide

Connecting Loop Returns to Matomo

Loop is built to turn returns into exchanges rather than refunds, which means the outcome of a return is a decision with three different revenue consequences. 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 Loop return 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

Loop Returns in Matomo: ecommerce orders that never shrink

Since Matomo deduplicates on order ID and appears to have no refund call, send a server-side custom event or goal per Loop outcome through the HTTP Tracking API with the original order ID, adjusted value and the visitor ID stored at checkout, and build reports to subtract it. Exclude Loop-created exchange orders from ecommerce tracking to avoid inflated conversion rates.

Matomo records an ecommerce order with its order ID and revenue, and deduplicates on that ID, so you cannot correct a returned order by tracking it again. As far as we know Matomo has no built-in refund call for an ecommerce order; confirm for your version and any premium plugins. The practical route is a server-side custom event or goal per Loop outcome, carrying the original order ID and the adjusted value, with reports built to subtract it.

Send it from your server through the HTTP Tracking API when Loop closes the return, using the visitor ID you stored on the order at checkout. The Loop portal is a different domain, so a self-hosted tracker on your site never sees it, and tagging the portal would only create a new visit with no history.

The exchange order is the trap. Loop typically creates it as a new Shopify order, often zero-value; if your Matomo ecommerce tracking fires on every order confirmation, exchanges count as orders and inflate conversion rate while revenue stays flat. Exclude Loop-created orders from ecommerce tracking, and if you self-host, keep the raw order and return tables so net revenue can be recomputed outside Matomo.

Loop → Matomo · what breaks

Why this join usually fails — Loop → Matomo

  1. 01

    The first-party visitor ID never reaches Loop

    Returns are initiated weeks after the order, in a Loop-hosted portal, with no session from the original purchase.

  2. 02

    Every return treated as a full refund

    It understates revenue on exchanges, which is exactly the outcome Loop is designed to produce. A store with a high exchange rate reports itself as performing far worse than it is.

  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.

Loop → Matomo · the fix

What working looks like — Loop → Matomo

  • The first-party visitor ID on every return

  • 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

    Loop Returns's own records are the reference, not either dashboard.

Loop → Matomo · architecture

How Loop and Matomo actually connect

  1. 1

    Loop Returns holds the truth

    An exchange keeps the revenue and costs you shipping. A refund reverses it entirely. Store credit sits in between. Treating all three as one reversal loses the distinction Loop exists to create.

  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 Loop return.

  4. 4

    The event source decides reliability

    Send orders, then adjust: refunds reverse fully, exchanges reverse only the shipping cost, store credit reverses to the credit's value.

  5. 5

    Deduplication at the destination

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

Loop → Matomo · normal or broken

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

Normal, not a fault

  • The first-party visitor ID present on the return

    Visible on the record itself in Loop Returns, not merely captured somewhere on the site.

  • Sent from the store order record, adjusted by Loop outcomes

  • 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 Loop Returns's records agree within a few percent over a closed window.

Actually broken

  • The first-party visitor ID missing on most records

    Returns are initiated weeks after the order, in a Loop-hosted portal, with no session from the original purchase.

  • Sent from the browser

    It understates revenue on exchanges, which is exactly the outcome Loop is designed to produce. A store with a high exchange rate reports itself as performing far worse than it is.

  • 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 Loop Returns.

Loop → Matomo · diagnose

Diagnostic order — Loop → Matomo

  1. 01

    Count returns carrying the first-party visitor ID

  2. 02

    Follow one real conversion end to end

  3. 03

    Split returns by outcome — refund, exchange, store credit

    The mix differs by campaign and by product, and it changes the net revenue figure materially.

  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.

Loop → Matomo · prove

How it gets proven — Loop → Matomo

Against Loop Returns's own records, not against either platform's dashboard.

Source of truth

Store orders net of returns, with exchanges and refunds distinguished.

  • The first-party visitor ID confirmed present on a live return.
  • Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
  • Net revenue reconciled after the return window with the three outcomes adjusted separately.

Loop → Matomo · free audit

What we check in the free audit

  • Count returns carrying the first-party visitor ID
  • Follow one real conversion end to end
  • Split returns by outcome — refund, exchange, store credit
  • Check tracker reachability and database lag before debugging any tag
  • Read the match rate, not the success message

Checked against

Store orders net of returns, with exchanges and refunds distinguished.

Get my free conversion tracking audit

Free30 minutesNo obligation

Loop → Matomo · when not to buy

When you don't need this — Loop → Matomo

  • If Matomo already reports conversions that reconcile against Loop Returns'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 returns and count how many carry the first-party visitor ID.
  • If you only issue refunds, a simple full reversal is correct and this distinction adds nothing.
  • 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.

Loop → Matomo · what we deliver

What gets built — Loop → Matomo

  • Identifier capture into Loop

    Join on the order identifier. There is no identifier to capture here — the work is carrying the order's through and reversing correctly.

  • Event source: the store order record, adjusted by Loop outcomes

    Send orders, then adjust: refunds reverse fully, exchanges reverse only the shipping cost, store credit reverses to the credit's value.

  • Dispatch to Matomo

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

  • Reversals where they exist

    This is the whole integration. Three outcomes, three different adjustments.

Written guarantee

95%+ tracking accuracy

Measured against Store orders net of returns, with exchanges and refunds distinguished.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Loop → Matomo questions, answered

Send a server-side custom event or goal for the refund with the original order ID and value, then subtract it in reports. Check whether your Matomo version or plugins offer a native refund feature first.

Free · 30 min

Get Loop and Matomo joined properly

Free30 minutesNo obligation