Connecting Canvas LMS to PostHog
Canvas is institutional learning management, which means the commercial decision almost always happens in a separate admissions or ecommerce system. PostHog can be self-hosted, which changes the calculus entirely: the data stays on infrastructure you control, and so does the responsibility for everything that goes wrong with it. The join between them succeeds or fails on one thing: whether the distinct_id reaches the Canvas enrolment before the conversion happens, because PostHog can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
PostHog for a Canvas-based program: funnel yes, replay in LMS no
Let PostHog assign distinct_id on the marketing site, alias it to the application ID on submit, and store that ID as the SIS ID when Canvas provisions the account. Capture an enrollment-activated event server-side from Canvas Live Events or the SIS sync, with an event UUID from the enrollment ID. Never run session replay inside Canvas.
A bootcamp or online program running on Canvas can get a funnel in PostHog that its ad platforms never will: landing page, application, payment, Canvas activation, and whether the student was still active a few weeks later. The join runs on distinct_id. Let PostHog assign it anonymously on the marketing site, alias it to the application ID when the form is submitted, and store that same application ID as the student's SIS ID when the Canvas account is provisioned.
Then the Canvas side is a server-side capture of an enrollment-activated event against that distinct_id, triggered from Canvas Live Events or your SIS sync. Supply an event UUID derived from the enrollment ID, because queue-based delivery can hand you the same enrollment change twice and PostHog will only discard the repeat if the UUID matches.
Do not install PostHog's snippet inside Canvas with session replay on. Replay inside an LMS records assignment text, grades and discussion posts, which turns your analytics instance into a store of student records. If you self-host PostHog to keep that risk on your own infrastructure, you also own the ingestion health, and a full disk at term start, the busiest week, is when you would lose the most.
Canvas → PostHog · what breaks
Why this join usually fails — Canvas → PostHog
- 01
The distinct_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
Self-hosting the analytics and the outage together
The advantage of owning the pipeline is that nothing blocks it. The cost is that when the ingestion instance fills its disk on a Saturday, the events are gone and nobody is paged. Hosted tools fail differently and more visibly.
- 04
Nothing reconciles afterwards
PostHog shows events in the activity view within moments. On a self-hosted instance, check the ingestion lag as well — events that are queued are not events that are lost, and the two need different responses.
Canvas → PostHog · the fix
What working looks like — Canvas → PostHog
The distinct_id on every enrolment
Conversions arriving in PostHog
The event lands on the person profile and becomes available in insights, funnels and session replay.
Reconciled against the source
Canvas LMS's own records are the reference, not either dashboard.
Canvas → PostHog · architecture
How Canvas and PostHog 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
PostHog needs a click to match
PostHog needs a distinct_id, an event name and its properties. Self-hosted instances additionally need the ingestion endpoint reachable and the project API key correct, which is a class of failure hosted tools do not have.
- 3
The identifier is the bridge
The distinct_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
PostHog deduplicates on the event UUID where supplied. Without one, a retried batch duplicates, and on a self-hosted instance there is no vendor support desk to notice it for you.
Canvas → PostHog · normal or broken
Working vs. broken, side by side — Canvas → PostHog
Normal, not a fault
The distinct_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
PostHog deduplicates on the event UUID where supplied. Without one, a retried batch duplicates, and on a self-hosted instance there is no vendor support desk to notice it for you.
Reconciles with the source
PostHog's count and Canvas LMS's records agree within a few percent over a closed window.
Actually broken
The distinct_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 of owning the pipeline is that nothing blocks it. The cost is that when the ingestion instance fills its disk on a Saturday, the events are gone and nobody is paged. Hosted tools fail differently and more visibly.
Nobody has reconciled it
The dashboard shows a number and no one has compared it to Canvas LMS.
Canvas → PostHog · diagnose
Diagnostic order — Canvas → PostHog
- 01
Count enrolments carrying the distinct_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 ingestion health and disk before debugging any missing event
On self-hosted instances the answer is infrastructure far more often than it is instrumentation.
- 05
Read the match rate, not the success message
PostHog shows events in the activity view within moments. On a self-hosted instance, check the ingestion lag as well — events that are queued are not events that are lost, and the two need different responses.
Canvas → PostHog · prove
How it gets proven — Canvas → PostHog
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 distinct_id confirmed present on a live enrolment.
- Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
- Paid enrolments reconciled against the admissions or commerce system rather than against Canvas.
Canvas → PostHog · free audit
What we check in the free audit
- Count enrolments carrying the distinct_id
- Follow one real conversion end to end
- Establish which system holds the payment
- Check ingestion health and disk before debugging any missing event
- 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 → PostHog · when not to buy
When you don't need this — Canvas → PostHog
- If PostHog 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 distinct_id.
- If Canvas is purely internal or purely academic delivery, the conversion you care about is upstream of it entirely.
- If you have no reason to keep the data on your own infrastructure and no team to run it, the hosted product removes the only real downside of this one.
Canvas → PostHog · what we deliver
What gets built — Canvas → PostHog
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 PostHog
The PostHog capture API, posted server-side from your backend to your own instance or to PostHog Cloud.
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 → PostHog questions, answered
No. Replay inside the LMS captures assignments, grades and discussions, which are student records. Track the marketing site and send Canvas activation server-side instead.
Alias the anonymous distinct_id to the application ID at form submit, use that ID as the Canvas SIS ID, and capture the activation event server-side with it.
Almost always because the distinct_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.
PostHog identifies by distinct_id with an alias call to merge anonymous and identified users. On a self-hosted instance you also control the ingestion endpoint, which means the identifier survives ad blockers that would kill a third-party pixel — one of the few genuine technical advantages available to a first-party setup.
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.
PostHog shows events in the activity view within moments. On a self-hosted instance, check the ingestion lag as well — events that are queued are not events that are lost, and the two need different responses.
More on Canvas → PostHog
- 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 → PostHog fits in the rest of your tracking
- 360Learning → PostHogConnecting 360Learning to PostHog
- Litmos → PostHogConnecting Litmos to PostHog
- Absorb → PostHogConnecting Absorb LMS to PostHog
- Canvas → MixpanelConnecting Canvas LMS to Mixpanel
- Canvas → Adobe AnalyticsConnecting Canvas LMS to Adobe Analytics
- BootcampsConversion tracking for bootcamps, measured in started students
- LearnWorlds → PostHogConnecting LearnWorlds to PostHog
- Moodle → PostHogConnecting Moodle to PostHog
Free · 30 min
Get Canvas and PostHog joined properly
Free30 minutesNo obligation
