Connecting Resend to Matomo
Resend is modern developer email where templates live in your codebase, which makes sends easy to ship and equally easy to ship without anyone measuring them. 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 Resend message 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
Resend email traffic in Matomo: campaign parameters that survive
Put mtm_campaign, mtm_source and mtm_medium in the Resend template link helper, with mtm_content set to the template version, so Matomo reports conversions by version. Check parameters survive Resend's tracking redirect, or disable it. Send orders as Matomo ecommerce orders from your order system with the order ID and session visitor ID. Never send Resend webhooks as Matomo events.
Matomo attributes visits to email through campaign parameters on the landing URL: mtm_campaign, mtm_source and mtm_medium, with mtm_content available for variants. Because Resend templates live in code, put these in the shared link helper so every template inherits them, and set the content parameter to the template version. Matomo then reports conversions by the version that was live, and a revenue shift can be read against the deploy that shipped it.
If Resend click tracking is enabled, each link passes through a redirect on Resend's tracking domain first. Check on a real send that the parameters arrive intact and that the referrer does not make the visit look like it came from that domain. For a self-hosted Matomo the whole chain can stay on infrastructure you control if you disable Resend's tracking and rely on Matomo for clicks.
Orders come from your order system as Matomo ecommerce orders with the order ID set, carrying the visitor ID from the session cookie so the order lands on the email-driven visit. Do not send Resend webhooks to Matomo as events: each tracking request without a real visit creates one, inflating visits and dragging down conversion rates for every channel.
Resend → Matomo · what breaks
Why this join usually fails — Resend → Matomo
- 01
The first-party visitor ID never reaches Resend
No session, and the send is triggered by application logic that changes on the normal deploy cadence.
- 02
Email changes shipping invisibly with deploys
When templates are code, they change without a campaign calendar entry. A conversion rate shift gets attributed to media, creative or seasonality, and the actual cause was a reworded subject line in last Tuesday's release.
- 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.
Resend → Matomo · the fix
What working looks like — Resend → Matomo
The first-party visitor ID on every message
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
Resend → Matomo · architecture
How Resend and Matomo actually connect
- 1
Resend holds the truth
Templates in code means email changes ride along with deploys. A revenue change the week of a release may be the email, and nothing in the marketing stack will show that.
- 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 Resend message.
- 4
The event source decides reliability
Send orders, with the email template version attached where a send preceded the purchase.
- 5
Deduplication at the destination
Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.
Resend → Matomo · normal or broken
Working vs. broken, side by side — Resend → Matomo
Normal, not a fault
The first-party visitor ID present on the message
Sent from your order system
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
No session, and the send is triggered by application logic that changes on the normal deploy cadence.
Sent from the browser
When templates are code, they change without a campaign calendar entry. A conversion rate shift gets attributed to media, creative or seasonality, and the actual cause was a reworded subject line in last Tuesday's release.
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
Resend → Matomo · diagnose
Diagnostic order — Resend → Matomo
- 01
Count messages carrying the first-party visitor ID
- 02
Follow one real conversion end to end
- 03
Check the deploy log before diagnosing an unexplained conversion change
Cheap to check and it explains a genuine share of otherwise mysterious movements.
- 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.
Resend → Matomo · prove
How it gets proven — Resend → Matomo
Source of truth
Your order or application record, joined to the send.
- The first-party visitor ID confirmed present on a live message.
- Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
- Orders reconciled against imported conversions, with template versions recorded in the timeline.
Resend → Matomo · free audit
What we check in the free audit
- Count messages carrying the first-party visitor ID
- Follow one real conversion end to end
- Check the deploy log before diagnosing an unexplained conversion change
- Check tracker reachability and database lag before debugging any tag
- Read the match rate, not the success message
Checked against
Your order or application record, joined to the send.
Free30 minutesNo obligation
Resend → Matomo · when not to buy
When you don't need this — Resend → Matomo
- Measure identifier coverage yourself first — pull your last hundred messages and count how many carry the first-party visitor ID.
- If your emails rarely change, the versioning discipline costs more than it returns.
- 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.
Resend → Matomo · what we deliver
What gets built — Resend → Matomo
Identifier capture into Resend
Record the template version on the message so an email change is visible in the timeline alongside campaign changes.
Event source: your order system
Send orders, with the email template version attached where a send preceded the purchase.
Dispatch to Matomo
The Matomo HTTP Tracking API, posted server-side from your order system.
Reversals where they exist
Refunds reverse.
Written guarantee
95%+ tracking accuracy
Measured against Your order or application record, joined to the send.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Resend → Matomo questions, answered
Add mtm_campaign, mtm_source and mtm_medium to every link in the template, ideally in one shared link helper. Use mtm_content for the template version.
No. Each request without a real visit creates a visit in Matomo and distorts visit counts and conversion rates.
Almost always because the first-party visitor ID never reached the Resend message. No session, and the send is triggered by application logic that changes on the normal deploy cadence. 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 system. Send orders, with the email template version attached where a send preceded the purchase.
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 Resend → Matomo
- Resend → Google AdsConnecting Resend to Google Ads
- Resend → MetaConnecting Resend to Meta Conversions API
- Resend → GA4Connecting Resend to GA4
RELATED GUIDES
Where Resend → Matomo fits in the rest of your tracking
- Postmark → MatomoConnecting Postmark to Matomo
- SendGrid → MatomoConnecting SendGrid to Matomo
- Mailgun → MatomoConnecting Mailgun to Matomo
- Resend → AmplitudeConnecting Resend to Amplitude
- Resend → Adobe AnalyticsConnecting Resend to Adobe Analytics
- SaaSConversion tracking for SaaS, from signup through to the payment that matters
Free · 30 min
Get Resend and Matomo joined properly
Free30 minutesNo obligation
