Skip to main content
Rebuy → MatomoIntegration guide

Connecting Rebuy to Matomo

Rebuy adds personalised upsells across the cart, checkout and post-purchase, which means the order value at checkout is frequently not the order value that settles. 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 Rebuy-influenced 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

Rebuy upsells in Matomo ecommerce: one order ID, final revenue

Matomo ignores a second order with the same ID, so Rebuy post-purchase revenue never arrives by the browser route. Send the order from the Shopify order webhook through the HTTP Tracking API after post-purchase settles, with the Matomo visitor ID stored in cart attributes, line items with SKU and price, and optionally a Rebuy-added custom dimension.

Matomo records an ecommerce order once per order ID, which is exactly what makes Rebuy's post-purchase offers awkward. The browser-side order event Shopify emits fires when checkout completes, before the post-purchase offer is answered, so Matomo stores the pre-upsell value. When the offer is accepted, the order changes, but a second order with the same ID is ignored as a duplicate. The upsell revenue never reaches Matomo by the browser route.

The fix is server-side. Send the order from the Shopify order webhook through the HTTP Tracking API once post-purchase has settled, with the Matomo visitor ID you wrote into cart attributes during the session, so the order lands on the right visit. Include line items with SKU and price, so products Rebuy added in the cart, at checkout or after purchase appear in Matomo's product reports next to the visit that produced them. A custom dimension can carry a Rebuy-added flag if you want upsell revenue split by channel.

Self-hosted Matomo makes one check easy that hosted analytics makes hard: query the raw ecommerce log for an order and compare its revenue with Shopify's settled total. Summed over a month, that gap is the upsell revenue your current setup drops.

Rebuy → Matomo · what breaks

Why this join usually fails — Rebuy → Matomo

  1. 01

    The first-party visitor ID never reaches Rebuy

    Post-purchase offers render after the order is created, so a conversion fired at checkout has already gone before the upsell revenue exists.

  2. 02

    Upsell revenue missing from every conversion

    Post-purchase upsells can add a meaningful percentage to average order value. Firing the conversion at checkout means none of it is attributed, and the campaigns that bring upsell-receptive buyers look identical to those that do not.

  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.

Rebuy → Matomo · the fix

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

Rebuy → Matomo · architecture

How Rebuy and Matomo actually connect

  1. 1

    Rebuy holds the truth

    A post-purchase upsell creates additional revenue on the same order, seconds to minutes after the original conversion fired. If the conversion was sent at checkout, that revenue is missing from every report.

  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 Rebuy-influenced order.

  4. 4

    The event source decides reliability

    Send the settled order total including accepted upsells, with the upsell contribution recorded separately.

  5. 5

    Deduplication at the destination

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

Rebuy → Matomo · normal or broken

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

Normal, not a fault

  • The first-party visitor ID present on the order

  • Sent from the Shopify order webhook, after post-purchase

  • 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

    Post-purchase offers render after the order is created, so a conversion fired at checkout has already gone before the upsell revenue exists.

  • Sent from the browser

    Post-purchase upsells can add a meaningful percentage to average order value. Firing the conversion at checkout means none of it is attributed, and the campaigns that bring upsell-receptive buyers look identical to those that do not.

  • 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

Rebuy → Matomo · diagnose

Diagnostic order — Rebuy → Matomo

  1. 01

    Count orders carrying the first-party visitor ID

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare checkout-time order value against final settled order value

    The gap is your upsell revenue, and it is the amount your conversion reporting is currently discarding.

  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.

Rebuy → Matomo · prove

How it gets proven — Rebuy → Matomo

Source of truth

The final Shopify order total after any post-purchase upsell has been accepted.

  • The first-party visitor ID confirmed present on a live order.
  • Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
  • Settled order totals reconciled against imported conversions, with upsell contribution stated separately.

Rebuy → 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
  • Compare checkout-time order value against final settled order value
  • Check tracker reachability and database lag before debugging any tag
  • Read the match rate, not the success message

Checked against

The final Shopify order total after any post-purchase upsell has been accepted.

Get my free conversion tracking audit

Free30 minutesNo obligation

Rebuy → Matomo · when not to buy

When you don't need this — Rebuy → Matomo

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the first-party visitor ID.
  • If you run no post-purchase offers, checkout-time value is the final value and the timing question does not arise.
  • 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.

Rebuy → Matomo · what we deliver

What gets built — Rebuy → Matomo

  • Identifier capture into Rebuy

    Send the conversion from the order webhook after the post-purchase window closes, or send an adjustment when the upsell is accepted.

  • Event source: the Shopify order webhook, after post-purchase

    Send the settled order total including accepted upsells, with the upsell contribution recorded separately.

  • Dispatch to Matomo

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

  • Reversals where they exist

    Refunds reverse, including refunded upsells specifically.

Written guarantee

95%+ tracking accuracy

Measured against The final Shopify order total after any post-purchase upsell has been accepted.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Rebuy → Matomo questions, answered

Usually the order was tracked from the browser before the post-purchase upsell was accepted, and Matomo will not record a second order with the same ID. Track the order server-side from the Shopify webhook after the offer window closes.

Free · 30 min

Get Rebuy and Matomo joined properly

Free30 minutesNo obligation