Connecting Refersion to Matomo
Refersion runs affiliate and influencer programmes on Shopify stores, which puts a commission-earning third party directly alongside your paid media on the same orders. 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 Refersion conversion 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
Refersion to Matomo: put creator traffic in its own dimension
Create a visit-scoped Matomo custom dimension for the affiliate ID filled from the Refersion parameter on landing, plus one filled from the discount code at order time. Record orders server-side through the tracking API with the Shopify order number and the browser visitor ID. Query raw logs for paid-plus-affiliate overlap, and subtract refunds from your own table.
Matomo's referrer and campaign attribution reads its own campaign parameters and UTM tags; it does not know what Refersion's link parameter means. A creator's link-in-bio click therefore lands as a social referrer, or as direct when an in-app browser strips the referrer, and code-only orders take the channel of whatever brought the shopper last. The Ecommerce report credits revenue to sources while Refersion pays someone else for it.
Create a visit-scoped custom dimension for the affiliate ID, filled from the Refersion parameter on landing, and a second one filled at order time from the discount code. Record the order server-side through the tracking API with the Shopify order number as the order ID, so a confirmation-page refresh does not record it twice, and pass the browser's visitor ID so the order joins the visit that carried the affiliate value.
Because Matomo keeps raw visit logs in your own database, you can query directly for orders whose visit carried both a paid campaign and an affiliate dimension, which is the overlap set, without exporting anything. Matomo will not remove recorded revenue when Refersion denies a conversion, so keep a refunds table in the same database and subtract it in those queries.
Refersion → Matomo · what breaks
Why this join usually fails — Refersion → Matomo
- 01
The first-party visitor ID never reaches Refersion
Affiliate links carry their own parameters and land on your store, frequently overwriting or colliding with a paid identifier already stored.
- 02
Influencer codes claiming paid traffic's orders
A customer sees your ad, searches for a discount code, finds an influencer's, and orders. The influencer earns a commission on a sale your advertising produced, and your paid reporting counts it too.
- 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.
- 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.
Refersion → Matomo · the fix
What working looks like — Refersion → Matomo
The first-party visitor ID on every conversion
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
Refersion → Matomo · architecture
How Refersion and Matomo actually connect
- 1
Refersion holds the truth
An affiliate order costs you a commission on top of whatever the ad click cost. If both systems claim it, the order is being paid for twice and neither report mentions the other.
- 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
The identifier is the bridge
The first-party visitor ID, captured at the visit and carried into the Refersion conversion.
- 4
The event source decides reliability
Send orders net of affiliate commission, with the affiliate-sourced share marked.
- 5
Deduplication at the destination
Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.
Refersion → Matomo · normal or broken
Working vs. broken, side by side — Refersion → Matomo
Normal, not a fault
The first-party visitor ID present on the conversion
Sent from the store order record with Refersion attribution attached
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
Affiliate links carry their own parameters and land on your store, frequently overwriting or colliding with a paid identifier already stored.
Sent from the browser
A customer sees your ad, searches for a discount code, finds an influencer's, and orders. The influencer earns a commission on a sale your advertising produced, and your paid reporting counts it too.
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
Refersion → Matomo · diagnose
Diagnostic order — Refersion → Matomo
- 01
Count conversions carrying the first-party visitor ID
- 02
Follow one real conversion end to end
- 03
Count orders appearing in both paid conversions and Refersion
The overlap is the double payment. One query, rarely run.
- 04
Check tracker reachability and database lag before debugging any tag
On self-hosted analytics the answer is infrastructure more often than instrumentation.
- 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.
Refersion → Matomo · prove
How it gets proven — Refersion → Matomo
Source of truth
Store orders flagged by whether an affiliate link or code produced them, with the commission recorded.
- The first-party visitor ID confirmed present on a live conversion.
- Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
- Non-affiliate orders reconciled against imported conversions, with the overlap measured and stated.
Refersion → Matomo · free audit
What we check in the free audit
- Count conversions carrying the first-party visitor ID
- Follow one real conversion end to end
- Count orders appearing in both paid conversions and Refersion
- 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 an affiliate link or code produced them, with the commission recorded.
Free30 minutesNo obligation
Refersion → Matomo · when not to buy
When you don't need this — Refersion → Matomo
- Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the first-party visitor ID.
- No affiliate programme means no conflict and this reduces to 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.
Refersion → Matomo · what we deliver
What gets built — Refersion → Matomo
Identifier capture into Refersion
Set an explicit precedence rule between affiliate and paid parameters rather than letting last-write-wins decide, and record both on the order.
Event source: the store order record with Refersion attribution attached
Send orders net of affiliate commission, with the affiliate-sourced share marked.
Dispatch to Matomo
The Matomo HTTP Tracking API, posted server-side from your order system.
Reversals where they exist
Refunds reverse and should claw back the commission.
Written guarantee
95%+ tracking accuracy
Measured against Store orders flagged by whether an affiliate link or code produced them, with the commission recorded.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Refersion → Matomo questions, answered
Matomo reads its own campaign parameters and UTMs, not Refersion's link parameter. Add a custom dimension filled from it, or have affiliates use UTM-tagged links.
Yes, if you set an affiliate dimension from the code at checkout and send the order with its Shopify order number.
Almost always because the first-party visitor ID never reached the Refersion conversion. Affiliate links carry their own parameters and land on your store, frequently overwriting or colliding with a paid identifier already stored. Measure coverage before debugging the dispatch.
Matomo sets its own first-party cookie and, when self-hosted on your domain, is not a third-party request at all. That means ad blockers and browser tracking-prevention affect it far less than a hosted analytics tag — one of the few genuine measurement advantages available under current privacy conditions.
The store order record with Refersion attribution attached. Send orders net of affiliate commission, with the affiliate-sourced share marked.
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.
More on Refersion → Matomo
- Refersion → Google AdsConnecting Refersion to Google Ads
- Refersion → MetaConnecting Refersion to Meta Conversions API
- Refersion → GA4Connecting Refersion to GA4
RELATED GUIDES
Where Refersion → Matomo fits in the rest of your tracking
- Everflow → MatomoConnecting Everflow to Matomo
- FirstPromoter → MatomoConnecting FirstPromoter to Matomo
- Rakuten Advertising → MatomoConnecting Rakuten Advertising to Matomo
- Refersion → GA4Connecting Refersion to GA4
- Refersion → AmplitudeConnecting Refersion to Amplitude
- SubscriptionsConversion tracking for subscription businesses, across the whole lifecycle
- Tapfiliate → MatomoConnecting Tapfiliate to Matomo
- Rewardful → MatomoConnecting Rewardful to Matomo
Free · 30 min
Get Refersion and Matomo joined properly
Free30 minutesNo obligation
