Skip to main content
ReferralCandy → MatomoIntegration guide

Connecting ReferralCandy to Matomo

ReferralCandy serves smaller stores where the referral programme is often the second-largest acquisition channel and is almost never measured against paid media properly. 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 ReferralCandy referral 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

ReferralCandy in Matomo: referral credit set deliberately

Do not rely on Matomo's referrer detection, whose first or last referrer setting decides how referral orders appear. Set a custom dimension from your server, referral true when the referral cookie or friend's coupon is present, and send the order through the Tracking API with the store order ID and revenue after discount. Join referrals to rewards.

Matomo credits conversions to a referrer stored on the visitor, and it has a setting for whether that is the first referrer or the most recent one. For a ReferralCandy store that setting decides whether referral orders show up as referrals or as the paid campaign that brought the friend weeks earlier. Most installs never change it, so the answer is the default rather than a decision.

Make the referral explicit instead of relying on referrer detection. Check what the ReferralCandy link looks like when it lands on your site; if it does not carry campaign parameters Matomo recognizes, the visit may appear as a direct or website referral. Set a custom dimension on the order from your server: referral true when the referral cookie or the friend's coupon is present. Send the order through the Tracking API with the store order ID so a refreshed confirmation page does not record twice, and use revenue after the friend's discount.

On a self-hosted Matomo, the database is yours, so you can join referral orders to the reward ledger and report referral cost per acquisition next to paid channels without exporting customer data anywhere. That comparison is the reason to put referrals in analytics at all.

ReferralCandy → Matomo · what breaks

Why this join usually fails — ReferralCandy → Matomo

  1. 01

    The first-party visitor ID never reaches ReferralCandy

    Referral links land with their own parameters on a store that may already hold a paid identifier.

  2. 02

    Referral and paid competing for the same orders

    Without a precedence rule the credit goes to whichever parameter was written last, which means your reported channel mix is an accident of browsing order.

  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.

ReferralCandy → Matomo · the fix

What working looks like — ReferralCandy → Matomo

  • The first-party visitor ID on every referral

  • 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

ReferralCandy → Matomo · architecture

How ReferralCandy and Matomo actually connect

  1. 1

    ReferralCandy holds the truth

    At small-store scale the referral programme can rival paid acquisition in volume. Pooling them means neither channel's true cost per acquisition is knowable.

  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 ReferralCandy referral.

  4. 4

    The event source decides reliability

    Send orders net of rewards, with referral orders marked and excluded from paid conversion imports.

  5. 5

    Deduplication at the destination

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

ReferralCandy → Matomo · normal or broken

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

Normal, not a fault

  • The first-party visitor ID present on the referral

  • Sent from your order feed with referral 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

    Referral links land with their own parameters on a store that may already hold a paid identifier.

  • Sent from the browser

    Without a precedence rule the credit goes to whichever parameter was written last, which means your reported channel mix is an accident of browsing order.

  • 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

ReferralCandy → Matomo · diagnose

Diagnostic order — ReferralCandy → Matomo

  1. 01

    Count referrals carrying the first-party visitor ID

  2. 02

    Follow one real conversion end to end

  3. 03

    Count orders carrying both a referral and a paid parameter

    It is usually a meaningful share, and every one of them is currently credited by luck.

  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.

ReferralCandy → Matomo · prove

How it gets proven — ReferralCandy → Matomo

Source of truth

Store orders flagged by referral, net of both rewards.

  • The first-party visitor ID confirmed present on a live referral.
  • Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
  • Non-referral orders reconciled against imported conversions, with referral volume and reward cost stated.

ReferralCandy → Matomo · free audit

What we check in the free audit

  • Count referrals carrying the first-party visitor ID
  • Follow one real conversion end to end
  • Count orders carrying both a referral and a paid parameter
  • Check tracker reachability and database lag before debugging any tag
  • Read the match rate, not the success message

Checked against

Store orders flagged by referral, net of both rewards.

Get my free conversion tracking audit

Free30 minutesNo obligation

ReferralCandy → Matomo · when not to buy

When you don't need this — ReferralCandy → Matomo

  • Measure identifier coverage yourself first — pull your last hundred referrals and count how many carry the first-party visitor ID.
  • No referral programme, no conflict.
  • 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.

ReferralCandy → Matomo · what we deliver

What gets built — ReferralCandy → Matomo

  • Identifier capture into ReferralCandy

    Set precedence explicitly and record both identifiers on the order.

  • Event source: your order feed with referral attribution

    Send orders net of rewards, with referral orders marked and excluded from paid conversion imports.

  • Dispatch to Matomo

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

  • Reversals where they exist

    Refunds reverse and reclaim rewards.

Written guarantee

95%+ tracking accuracy

Measured against Store orders flagged by referral, net of both rewards.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

ReferralCandy → Matomo questions, answered

The referral link may not carry campaign parameters Matomo recognizes. Flag referral orders with a server-side custom dimension from the cookie or coupon instead.

Free · 30 min

Get ReferralCandy and Matomo joined properly

Free30 minutesNo obligation