Connecting Friendbuy to Matomo
Friendbuy runs customer-to-customer referral, which means the acquisition was produced by an existing customer and paid for with a reward on both sides. 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 Friendbuy 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
Friendbuy referrals in Matomo: give the channel its own row
Add Matomo campaign parameters such as mtm_campaign to Friendbuy destination URLs so referred visits land in one named campaign. Send the ecommerce order server-side with the browser's visitor ID, the order ID and revenue after the friend discount, recording the advocate reward as a custom dimension or event. Set Matomo's user ID at login or checkout to join devices.
Matomo is a place to see referral traffic as its own channel without a vendor deciding what to call it. A Friendbuy referral link lands with Friendbuy's own parameters, which Matomo does not interpret, so the visit gets filed under whatever referrer it sees: often a webmail client, a messaging app or nothing at all. Check whether your Friendbuy campaign's destination URL can carry Matomo campaign parameters (mtm_campaign and similar) so every referred visit lands in one named campaign.
For the order, send the ecommerce order server-side with the same visitor ID the browser had, the order ID so a refreshed confirmation page does not record it twice, and revenue as actually charged after the friend discount. Record the advocate reward as a custom dimension or a separate event rather than netting it out of revenue, so referral acquisition cost sits beside referral revenue in your own database instead of disappearing into it.
The common failure: the friend opens the referral link on a phone from a text, then buys on a laptop two days later. Matomo's visitor ID does not cross devices, so the order lands as direct traffic unless you set Matomo's user ID at login or checkout. Self-hosting gets you past blockers; it does not join devices.
Friendbuy → Matomo · what breaks
Why this join usually fails — Friendbuy → Matomo
- 01
The first-party visitor ID never reaches Friendbuy
Referral links route through Friendbuy and land on your store with their own parameters, potentially overwriting a stored paid identifier.
- 02
Word of mouth billed to the ad account
The better your referral programme performs, the worse your paid reporting gets — a genuinely perverse outcome caused entirely by last-write-wins identifier storage that nobody consciously chose.
- 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.
Friendbuy → Matomo · the fix
What working looks like — Friendbuy → 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
Friendbuy → Matomo · architecture
How Friendbuy and Matomo actually connect
- 1
Friendbuy holds the truth
A double-sided referral costs you two discounts to acquire one customer. That is a real and known acquisition cost, and it sits nowhere near the ad account that will otherwise claim the sale.
- 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 Friendbuy referral.
- 4
The event source decides reliability
Send orders net of both referral rewards, with referral-sourced orders marked and held out of paid conversion imports.
- 5
Deduplication at the destination
Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.
Friendbuy → Matomo · normal or broken
Working vs. broken, side by side — Friendbuy → 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 route through Friendbuy and land on your store with their own parameters, potentially overwriting a stored paid identifier.
Sent from the browser
The better your referral programme performs, the worse your paid reporting gets — a genuinely perverse outcome caused entirely by last-write-wins identifier storage that nobody consciously chose.
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
Friendbuy → Matomo · diagnose
Diagnostic order — Friendbuy → Matomo
- 01
Count referrals carrying the first-party visitor ID
- 02
Follow one real conversion end to end
- 03
Check precedence between referral and paid parameters
Whichever wins decides who gets credit, and almost nobody has decided it deliberately.
- 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.
Friendbuy → Matomo · prove
How it gets proven — Friendbuy → Matomo
Source of truth
Orders flagged by whether a referral produced them, with both reward costs recorded.
- 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 reported separately.
Friendbuy → 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
- Check precedence between referral and paid parameters
- Check tracker reachability and database lag before debugging any tag
- Read the match rate, not the success message
Checked against
Orders flagged by whether a referral produced them, with both reward costs recorded.
Free30 minutesNo obligation
Friendbuy → Matomo · when not to buy
When you don't need this — Friendbuy → Matomo
- Measure identifier coverage yourself first — pull your last hundred referrals and count how many carry the first-party visitor ID.
- No referral programme means no conflict and this is 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.
Friendbuy → Matomo · what we deliver
What gets built — Friendbuy → Matomo
Identifier capture into Friendbuy
Apply an explicit precedence rule between referral and paid parameters and record both on the order.
Event source: your order feed with referral attribution
Send orders net of both referral rewards, with referral-sourced orders marked and held out of 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 should reclaim rewards.
Written guarantee
95%+ tracking accuracy
Measured against Orders flagged by whether a referral produced them, with both reward costs recorded.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Friendbuy → Matomo questions, answered
Usually the referral click and the purchase happened on different devices, or the landing URL carried no campaign parameters Matomo recognizes. Tag the referral destination URL and set a user ID at checkout.
Record revenue as charged, after the friend discount, and track the advocate reward separately so the cost of the referral channel stays visible.
Almost always because the first-party visitor ID never reached the Friendbuy referral. Referral links route through Friendbuy and land on your store with their own parameters, potentially overwriting a stored paid identifier. 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 feed with referral attribution. Send orders net of both referral rewards, with referral-sourced orders marked and held out of paid conversion imports.
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 Friendbuy → Matomo
- Stripe → MatomoConnecting Stripe to Matomo
- PayPal → MatomoConnecting PayPal to Matomo
- Shopify → MatomoConnecting Shopify to Matomo
RELATED GUIDES
Where Friendbuy → Matomo fits in the rest of your tracking
- ReferralCandy → MatomoConnecting ReferralCandy to Matomo
- Talkable → MatomoConnecting Talkable to Matomo
- Extole → MatomoConnecting Extole to Matomo
- Friendbuy → Adobe AnalyticsConnecting Friendbuy to Adobe Analytics
- Friendbuy → AmplitudeConnecting Friendbuy to Amplitude
- Subscription boxesConversion tracking for subscription boxes, measured in retained subscribers
Free · 30 min
Get Friendbuy and Matomo joined properly
Free30 minutesNo obligation
