Connecting SamCart to Matomo
SamCart is a checkout platform built for conversion optimisation, which means order bumps and upsells are the point — and they complicate the value on every order. 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 SamCart 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
SamCart in Matomo: keep the visitor ID across the checkout hop
Do not place Matomo's tag on SamCart's domain. Pass the Matomo visitor ID into the checkout URL, store it in a hidden custom field, and post the ecommerce order to the HTTP Tracking API from the order webhook, with the SamCart order ID as order ID, product and bump as line items, and each upsell as its own order.
Self-hosted Matomo on your own domain avoids most blockers, but a SamCart checkout runs on SamCart's domain, so the visit Matomo recorded on your sales page ends at the buy button. Placing Matomo's tag on SamCart's pages turns it back into a third-party request and gives up the main advantage. The cleaner path is server-side: pass the Matomo visitor ID into the SamCart checkout URL, store it in a hidden custom field, and post the ecommerce order to the HTTP Tracking API from the order webhook with that visitor ID.
Matomo's cross-domain linking can append the visitor ID to outbound links automatically; check how it behaves with your SamCart checkout URLs and whether SamCart keeps the parameter long enough to store it. Use the SamCart order ID as Matomo's order ID, send the main product and the order bump as separate line items, and send each upsell as its own order so upsell take-rate is reportable in Matomo's ecommerce views.
Self-hosting makes the outage yours. A launch-day email blast sends a spike of sales-page visits and orders in a few hours, exactly when an undersized Matomo database falls behind; if order posts fail, retry them from a queue rather than dropping them. Check whether your Matomo version can reverse an order; if not, track refunds in your own reporting.
SamCart → Matomo · what breaks
Why this join usually fails — SamCart → Matomo
- 01
The first-party visitor ID never reaches SamCart
SamCart hosts the checkout, so the identifier has to be passed through its URL parameters or custom fields. The upsell flow adds a further step after the initial purchase, which can create additional orders that should not each count as a new acquisition.
- 02
Upsells counted as separate acquisitions
A funnel with two upsells can produce three orders from one customer. Counted as three conversions, the campaign looks three times better than it is.
- 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.
SamCart → Matomo · the fix
What working looks like — SamCart → 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
SamCart → Matomo · architecture
How SamCart and Matomo actually connect
- 1
SamCart holds the truth
The headline product price is rarely what the customer paid. Order bumps and one-click upsells are the platform's core feature, so the order total and the product price routinely differ substantially.
- 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 SamCart order.
- 4
The event source decides reliability
Send the initial purchase as the acquisition conversion at the full realised value including bumps, and treat one-click upsells as additional revenue against the same customer rather than as new acquisitions.
- 5
Deduplication at the destination
Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.
SamCart → Matomo · normal or broken
Working vs. broken, side by side — SamCart → Matomo
Normal, not a fault
The first-party visitor ID present on the order
Sent from the SamCart order webhook
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
SamCart hosts the checkout, so the identifier has to be passed through its URL parameters or custom fields. The upsell flow adds a further step after the initial purchase, which can create additional orders that should not each count as a new acquisition.
Sent from the browser
A funnel with two upsells can produce three orders from one customer. Counted as three conversions, the campaign looks three times better than it is.
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
SamCart → Matomo · diagnose
Diagnostic order — SamCart → Matomo
- 01
Count orders carrying the first-party visitor ID
- 02
Follow one real conversion end to end
- 03
Follow one purchase with upsells through to the conversions sent
If three orders produced three acquisition conversions, you have found the inflation.
- 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.
SamCart → Matomo · prove
How it gets proven — SamCart → Matomo
Source of truth
SamCart's order records for the same window, including bumps and upsells.
- The first-party visitor ID confirmed present on a live order.
- Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
- A purchase with two upsells confirmed to produce one acquisition conversion at the combined value.
SamCart → 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
- Follow one purchase with upsells through to the conversions sent
- Check tracker reachability and database lag before debugging any tag
- Read the match rate, not the success message
Checked against
SamCart's order records for the same window, including bumps and upsells.
Free30 minutesNo obligation
SamCart → Matomo · when not to buy
When you don't need this — SamCart → Matomo
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the first-party visitor ID.
- If you run a single product with no bumps or upsells, the standard checkout approach applies and none of this complexity is relevant.
- 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.
SamCart → Matomo · what we deliver
What gets built — SamCart → Matomo
Identifier capture into SamCart
Pass the identifier into the SamCart checkout URL and confirm it lands on the order, then decide how upsell orders relate to the parent purchase before sending anything.
Event source: the SamCart order webhook
Send the initial purchase as the acquisition conversion at the full realised value including bumps, and treat one-click upsells as additional revenue against the same customer rather than as new acquisitions.
Dispatch to Matomo
The Matomo HTTP Tracking API, posted server-side from your order system.
Reversals where they exist
Refunds are recorded and, on aggressive upsell funnels, refund rates are high enough that ignoring them materially overstates performance.
Written guarantee
95%+ tracking accuracy
Measured against SamCart's order records for the same window, including bumps and upsells.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
SamCart → Matomo questions, answered
Pass the Matomo visitor ID into the SamCart checkout URL, store it on the order, and post the ecommerce order server-side through the HTTP Tracking API with that ID.
It makes Matomo a third-party request on SamCart's domain and loses the blocker resistance; a server-side post from the order webhook is more reliable.
Almost always because the first-party visitor ID never reached the SamCart order. SamCart hosts the checkout, so the identifier has to be passed through its URL parameters or custom fields. The upsell flow adds a further step after the initial purchase, which can create additional orders that should not each count as a new acquisition. 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 SamCart order webhook. Send the initial purchase as the acquisition conversion at the full realised value including bumps, and treat one-click upsells as additional revenue against the same customer rather than as new acquisitions.
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 SamCart → Matomo
- SamCart → Google AdsConnecting SamCart to Google Ads
- SamCart → MetaConnecting SamCart to Meta Conversions API
- SamCart → GA4Connecting SamCart to GA4
RELATED GUIDES
Where SamCart → Matomo fits in the rest of your tracking
- ClickFunnels → MatomoConnecting ClickFunnels to Matomo
- Skool → MatomoConnecting Skool to Matomo
- Teachable → MatomoConnecting Teachable to Matomo
- SamCart → GA4Connecting SamCart to GA4
- SamCart → AmplitudeConnecting SamCart to Amplitude
- MembershipsConversion tracking for membership communities, past the first month
- Patreon → MatomoConnecting Patreon to Matomo
- Thinkific → MatomoConnecting Thinkific to Matomo
Free · 30 min
Get SamCart and Matomo joined properly
Free30 minutesNo obligation
