Connecting Canvas LMS to Matomo
Canvas is institutional learning management, which means the commercial decision almost always happens in a separate admissions or ecommerce system. 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 Canvas enrolment 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
Canvas enrollments in self-hosted Matomo, without tracking students
Store the Matomo visitor ID from the program page on the inquiry record, then send the paid enrollment server-side through the HTTP Tracking API as a goal or ecommerce order with that visitor ID and the application ID as order ID. Handle pre-census withdrawals in reporting. Never put the tag inside Canvas under the marketing site ID.
Matomo is common in higher education for one reason that matters here: self-hosted, the analytics data stays on university infrastructure, which makes it far easier to defend attaching an enrollment outcome to a marketing visit than doing the same in a third-party ad tool. The join still has to go through admissions. Store the Matomo visitor ID from the program page on the inquiry or application record, and when the paid enrollment is confirmed, send a server-side goal or ecommerce order through the HTTP Tracking API with that visitor ID, so it attaches to the original campaign visit instead of a new anonymous one.
Use the application ID as the order ID. Canvas activation events can repeat when an enrollment is edited or re-sent from the SIS, and the order ID is what stops Matomo recording the same student twice. A withdrawal before census should be handled in your reporting, because Matomo has no clean way to retract a recorded order.
Canvas lets admins add custom JavaScript through the Theme Editor, and it is tempting to drop the Matomo tag in. Do not put it in the same site ID as your marketing pages. Learning behavior inside the LMS is a student record question, not a marketing one; if anyone wants LMS analytics, give it a separate site with its own access rules.
Canvas → Matomo · what breaks
Why this join usually fails — Canvas → Matomo
- 01
The first-party visitor ID never reaches Canvas
Access is via institutional single sign-on, which severs any connection to the marketing session that produced the enquiry. The join has to happen in the admissions system, not in Canvas.
- 02
The money is in another system
Treating Canvas as the revenue source means measuring course access rather than payment, and the two diverge whenever anyone is enrolled without paying.
- 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.
Canvas → Matomo · the fix
What working looks like — Canvas → Matomo
The first-party visitor ID on every enrolment
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
Canvas LMS's own records are the reference, not either dashboard.
Canvas → Matomo · architecture
How Canvas and Matomo actually connect
- 1
Canvas LMS holds the truth
Canvas is where teaching happens, not usually where money changes hands. Establish which system is authoritative for revenue before deciding what Canvas is for.
- 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 Canvas enrolment.
- 4
The event source decides reliability
Send the paid enrolment from admissions. Canvas's own enrolment event confirms the student actually started, which is a useful second signal and not the money event.
- 5
Deduplication at the destination
Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.
Canvas → Matomo · normal or broken
Working vs. broken, side by side — Canvas → Matomo
Normal, not a fault
The first-party visitor ID present on the enrolment
Visible on the record itself in Canvas LMS, not merely captured somewhere on the site.
Sent from your admissions system, with Canvas confirming activation
Deduplicated correctly
Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.
Reconciles with the source
Matomo's count and Canvas LMS's records agree within a few percent over a closed window.
Actually broken
The first-party visitor ID missing on most records
Access is via institutional single sign-on, which severs any connection to the marketing session that produced the enquiry. The join has to happen in the admissions system, not in Canvas.
Sent from the browser
Treating Canvas as the revenue source means measuring course access rather than payment, and the two diverge whenever anyone is enrolled without paying.
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
The dashboard shows a number and no one has compared it to Canvas LMS.
Canvas → Matomo · diagnose
Diagnostic order — Canvas → Matomo
- 01
Count enrolments carrying the first-party visitor ID
- 02
Follow one real conversion end to end
- 03
Establish which system holds the payment
In most Canvas deployments it is not Canvas, and building on the wrong one wastes the engagement.
- 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.
Canvas → Matomo · prove
How it gets proven — Canvas → Matomo
Against Canvas LMS's own records, not against either platform's dashboard.
Source of truth
Your admissions or commerce system — Canvas records the enrolment and rarely the payment.
- The first-party visitor ID confirmed present on a live enrolment.
- Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
- Paid enrolments reconciled against the admissions or commerce system rather than against Canvas.
Canvas → Matomo · free audit
What we check in the free audit
- Count enrolments carrying the first-party visitor ID
- Follow one real conversion end to end
- Establish which system holds the payment
- Check tracker reachability and database lag before debugging any tag
- Read the match rate, not the success message
Checked against
Your admissions or commerce system — Canvas records the enrolment and rarely the payment.
Free30 minutesNo obligation
Canvas → Matomo · when not to buy
When you don't need this — Canvas → Matomo
- If Matomo already reports conversions that reconcile against Canvas LMS's records within a few percent, this join is working and there is nothing to buy.
- Measure identifier coverage yourself first — pull your last hundred enrolments and count how many carry the first-party visitor ID.
- If Canvas is purely internal or purely academic delivery, the conversion you care about is upstream of it entirely.
- 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.
Canvas → Matomo · what we deliver
What gets built — Canvas → Matomo
Identifier capture into Canvas
Carry the identifier through admissions onto the student record, and use Canvas only to confirm the enrolment actually activated.
Event source: your admissions system, with Canvas confirming activation
Send the paid enrolment from admissions. Canvas's own enrolment event confirms the student actually started, which is a useful second signal and not the money event.
Dispatch to Matomo
The Matomo HTTP Tracking API, posted server-side from your order system.
Reversals where they exist
Withdrawals should reverse; deferrals should move rather than reverse.
Written guarantee
95%+ tracking accuracy
Measured against Your admissions or commerce system — Canvas records the enrolment and rarely the payment.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Canvas → Matomo questions, answered
Canvas admins can add custom JavaScript via the Theme Editor, so it is possible, but keep it out of your marketing site ID. Student activity in the LMS is an education record question and belongs in a separate, access-controlled site if it is tracked at all.
Save the Matomo visitor ID on the inquiry record, then send the confirmed enrollment server-side with that visitor ID and the application ID as order ID. Canvas only confirms activation.
Almost always because the first-party visitor ID never reached the Canvas enrolment. Access is via institutional single sign-on, which severs any connection to the marketing session that produced the enquiry. The join has to happen in the admissions system, not in Canvas. 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 admissions system, with Canvas confirming activation. Send the paid enrolment from admissions. Canvas's own enrolment event confirms the student actually started, which is a useful second signal and not the money event.
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 Canvas → Matomo
- Canvas → Google AdsConnecting Canvas LMS to Google Ads
- Canvas → MetaConnecting Canvas LMS to Meta Conversions API
- Canvas → GA4Connecting Canvas LMS to GA4
RELATED GUIDES
Where Canvas → Matomo fits in the rest of your tracking
- LifterLMS → MatomoConnecting LifterLMS to Matomo
- Litmos → MatomoConnecting Litmos to Matomo
- Tutor LMS → MatomoConnecting Tutor LMS to Matomo
- Canvas → GA4Connecting Canvas LMS to GA4
- Canvas → AmplitudeConnecting Canvas LMS to Amplitude
- Tutoring and test prepConversion tracking for tutoring, measured in enrolled packages
- iSpring → MatomoConnecting iSpring Learn to Matomo
- LearnWorlds → MatomoConnecting LearnWorlds to Matomo
Free · 30 min
Get Canvas and Matomo joined properly
Free30 minutesNo obligation
