Connecting ShareASale to Matomo
ShareASale is a long-established last-click affiliate network, which means the same voucher-code interception problem as any last-click programme, at the scale of a very large publisher base. 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 ShareASale transaction 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
Matomo campaign data versus affiliate commission
Add campaign parameters to ShareASale publisher links or classify the affiliate redirect referrer so Matomo records visits as campaigns, and add a publisher-type custom dimension. Send orders server-side with the store order ID to match the network. Matomo's Multi Attribution report then shows interception, but keep commission out of Matomo revenue.
Matomo will happily record affiliate traffic as a campaign if the landing URL carries campaign parameters, and many affiliate links do not. Add your own campaign parameters to publisher links through the network's link settings, or classify the affiliate redirect referrer in Matomo, so affiliate visits do not land as websites or direct. Then add a custom dimension for publisher type from the affiliate ID.
Matomo's attribution and the network's commission will disagree, and that disagreement is useful. A self-hosted Matomo on your own domain records the visit before the affiliate click, so the Multi Attribution report can show that a coupon publisher's order came from a visitor who first arrived from paid search two days earlier. That is the interception pattern stated in your own data, without depending on the network's reports.
Send the order to Matomo server-side from your store with the store order ID, so it matches what the network has. Keep commission out of Matomo's revenue: Matomo records the order value, and subtracting commission there makes it disagree with every other system that counts gross revenue. Calculate net-of-commission in the warehouse or spreadsheet.
ShareASale → Matomo · what breaks
Why this join usually fails — ShareASale → Matomo
- 01
The first-party visitor ID never reaches ShareASale
The affiliate cookie is set on click and read at checkout, and a voucher-site click seconds before the order will overwrite whatever preceded it.
- 02
Voucher publishers earning on sales your ads produced
A customer arrives from a paid ad, opens a tab to find a code, clicks a voucher site's link and returns to buy. Under last-click the voucher site earns the commission on a sale your advertising created — 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.
ShareASale → Matomo · the fix
What working looks like — ShareASale → 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
ShareASale → Matomo · architecture
How ShareASale and Matomo actually connect
- 1
ShareASale holds the truth
Publisher type is the whole analysis. Content publishers introduce customers; voucher and cashback publishers intercept them at the basket. Both are paid the same way and they are not the same thing.
- 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 ShareASale transaction.
- 4
The event source decides reliability
Send orders net of commission, with affiliate-sourced orders marked and publisher type recorded.
- 5
Deduplication at the destination
Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.
ShareASale → Matomo · normal or broken
Working vs. broken, side by side — ShareASale → Matomo
Normal, not a fault
The first-party visitor ID present on the conversion
Sent from your order record with affiliate 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
The affiliate cookie is set on click and read at checkout, and a voucher-site click seconds before the order will overwrite whatever preceded it.
Sent from the browser
A customer arrives from a paid ad, opens a tab to find a code, clicks a voucher site's link and returns to buy. Under last-click the voucher site earns the commission on a sale your advertising created — 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
ShareASale → Matomo · diagnose
Diagnostic order — ShareASale → Matomo
- 01
Count conversions carrying the first-party visitor ID
- 02
Follow one real conversion end to end
- 03
Segment commissions by publisher type and time-from-click to order
Clicks seconds before an order are interception. That segmentation is available and 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.
ShareASale → Matomo · prove
How it gets proven — ShareASale → Matomo
Source of truth
Orders flagged by affiliate, with commission recorded and the publisher type identified.
- The first-party visitor ID confirmed present on a live conversion.
- Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
- Orders reconciled net of commission against imported conversions, with the paid-media overlap measured.
ShareASale → 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
- Segment commissions by publisher type and time-from-click to order
- Check tracker reachability and database lag before debugging any tag
- Read the match rate, not the success message
Checked against
Orders flagged by affiliate, with commission recorded and the publisher type identified.
Free30 minutesNo obligation
ShareASale → Matomo · when not to buy
When you don't need this — ShareASale → 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 none of this applies. If you run one, the commission structure by publisher type will change your economics more than tracking accuracy will.
- 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.
ShareASale → Matomo · what we deliver
What gets built — ShareASale → Matomo
Identifier capture into ShareASale
Record the click timestamp alongside the affiliate identifier so late-journey interception is visible.
Event source: your order record with affiliate attribution
Send orders net of commission, with affiliate-sourced orders marked and publisher type recorded.
Dispatch to Matomo
The Matomo HTTP Tracking API, posted server-side from your order system.
Reversals where they exist
Refunds reverse and should reverse the commission.
Written guarantee
95%+ tracking accuracy
Measured against Orders flagged by affiliate, with commission recorded and the publisher type identified.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
ShareASale → Matomo questions, answered
Affiliate redirect links often carry no campaign parameters. Add them to publisher links or set up referrer classification in Matomo.
Yes. Its multi-attribution view shows earlier channels on visits that ended with an affiliate click, which the network's last-click report hides.
Almost always because the first-party visitor ID never reached the ShareASale transaction. The affiliate cookie is set on click and read at checkout, and a voucher-site click seconds before the order will overwrite whatever preceded it. 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.
Your order record with affiliate attribution. Send orders net of commission, with affiliate-sourced orders marked and publisher type recorded.
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 ShareASale → Matomo
- Stripe → MatomoConnecting Stripe to Matomo
- PayPal → MatomoConnecting PayPal to Matomo
- Shopify → MatomoConnecting Shopify to Matomo
RELATED GUIDES
Where ShareASale → Matomo fits in the rest of your tracking
- Rakuten Advertising → MatomoConnecting Rakuten Advertising to Matomo
- Post Affiliate Pro → MatomoConnecting Post Affiliate Pro to Matomo
- Everflow → MatomoConnecting Everflow to Matomo
- ShareASale → AmplitudeConnecting ShareASale to Amplitude
- ShareASale → GA4Connecting ShareASale to GA4
- SubscriptionsConversion tracking for subscription businesses, across the whole lifecycle
- LeadDyno → MatomoConnecting LeadDyno to Matomo
- FirstPromoter → MatomoConnecting FirstPromoter to Matomo
Free · 30 min
Get ShareASale and Matomo joined properly
Free30 minutesNo obligation
