Connecting Moodle to Snowflake
Moodle is self-hosted open-source learning management, used mostly by institutions where enrolment and payment are usually two different systems. Snowflake's distinguishing feature is that two organisations can join data without either copying it to the other, which turns measurement between partners from a legal negotiation into a query. The join between them succeeds or fails on one thing: whether whatever join key both parties agree on, usually a hashed identifier reaches the Moodle enrolment before the conversion happens, because Snowflake can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Moodle in Snowflake: model paid enrollments from source tables
Load Moodle's user enrollments, enrollment instances with their method, the core payments table (or PayPal plugin transactions) and the campaign profile field, so paid enrollment becomes a filter. Convert Unix epochs once, count paid enrollments by payment record, and share hashed paid-enrollment views with partners instead of student records.
Snowflake is where Moodle's enrollment data becomes usable for revenue reporting, because the tables already hold what is needed. Each user enrollment row points to an enrollment instance whose method column says self, manual, cohort, fee and so on, and on Moodle 3.10 and later the core payments table records amount, currency and gateway for enrollments paid through the payment subsystem; the older PayPal enrollment plugin keeps its own transaction table. Load those, plus the custom profile field holding the campaign identifier, and paid enrollment becomes a filter rather than a guess.
Watch the details that look plausible and are wrong. Moodle stores times as Unix epoch integers, which are UTC; convert them once, in one place, before anyone joins to daily ad spend. A learner who is unenrolled and enrolled again gets a fresh enrollment row, so count paid enrollments by payment record, not by user and course. The standard log table is huge and tempting, but it is the slowest and least reliable way to reconstruct enrollments.
Data sharing is real for institutions working with an online program manager or a marketing partner: share a view of paid enrollments with hashed email and campaign identifier, and let the partner join it to its own lead data without copying student records. Write down both sides' definition of an enrollment first; the partner's start and your paid enrollment are rarely the same event.
Moodle → Snowflake · what breaks
Why this join usually fails — Moodle → Snowflake
- 01
Whatever join key both parties agree on, usually a hashed identifier never reaches Moodle
Moodle is typically behind a login and often behind a separate marketing site, so the click identifier has to survive from a public page through registration into a user profile field. Institutional single sign-on frequently breaks that chain entirely.
- 02
Free enrolments outnumbering paid ones
Self-enrolment, cohort sync and manual enrolment all create the same record type as a paid one. Counting them teaches bidding to find people who join free courses.
- 03
A clean room that answers a question nobody agreed on
The technology makes the join possible; it does not make the definitions match. Two organisations measuring the same campaign will disagree about what a conversion is, which window applies and whose attribution model governs — and the query will return a confident number for whichever set of assumptions got written into the SQL.
- 04
Nothing reconciles afterwards
Snowflake will not tell you anything is wrong. Verify by querying against each party's own totals and checking for duplicate rows on the join key before trusting any aggregate.
Moodle → Snowflake · the fix
What working looks like — Moodle → Snowflake
Whatever join key both parties agree on, usually a hashed identifier on every enrolment
Conversions arriving in Snowflake
The row lands in a table you own, joinable to your own data and — through a share or clean room — to a partner's, without either party moving raw records.
Reconciled against the source
Moodle → Snowflake · architecture
How Moodle and Snowflake actually connect
- 1
Moodle holds the truth
Moodle supports several enrolment methods at once — self-enrolment, manual, cohort sync, payment plugins — and most of them are free. Only the paid methods represent revenue and the others will swamp any blended count.
- 2
Snowflake needs a click to match
A schema both sides agree on, consistent types, and identifiers normalised identically before hashing. The failure mode is not rejection but silent divergence — a timestamp in the wrong zone or a trimmed-versus-untrimmed email produces answers that look plausible.
- 3
The identifier is the bridge
Whatever join key both parties agree on, usually a hashed identifier, captured at the visit and carried into the Moodle enrolment.
- 4
The event source decides reliability
Send paid enrolments only, from the server. Free and cohort-synced enrolments must be excluded or the conversion feed is dominated by activity that is not revenue.
- 5
Deduplication at the destination
Nothing deduplicates for you. Loads are at-least-once, so a retried pipeline creates duplicate rows and the only protection is a deduplication step you write and actually schedule.
Moodle → Snowflake · normal or broken
Working vs. broken, side by side — Moodle → Snowflake
Normal, not a fault
Whatever join key both parties agree on, usually a hashed identifier present on the enrolment
Sent from the Moodle enrolment event via a webhook plugin or scheduled export
Deduplicated correctly
Nothing deduplicates for you. Loads are at-least-once, so a retried pipeline creates duplicate rows and the only protection is a deduplication step you write and actually schedule.
Reconciles with the source
Actually broken
Whatever join key both parties agree on, usually a hashed identifier missing on most records
Moodle is typically behind a login and often behind a separate marketing site, so the click identifier has to survive from a public page through registration into a user profile field. Institutional single sign-on frequently breaks that chain entirely.
Sent from the browser
Self-enrolment, cohort sync and manual enrolment all create the same record type as a paid one. Counting them teaches bidding to find people who join free courses.
Counted twice, or not at all
The technology makes the join possible; it does not make the definitions match. Two organisations measuring the same campaign will disagree about what a conversion is, which window applies and whose attribution model governs — and the query will return a confident number for whichever set of assumptions got written into the SQL.
Nobody has reconciled it
Moodle → Snowflake · diagnose
Diagnostic order — Moodle → Snowflake
- 01
Count enrolments carrying whatever join key both parties agree on, usually a hashed identifier
- 02
Follow one real conversion end to end
- 03
Break down enrolments by enrolment method
If paid methods are a small minority, that minority is the only thing that should ever reach an ad platform.
- 04
Write down both parties' conversion definitions before writing any query
Definition mismatch, not technology, is what makes most partner measurement projects produce numbers neither side trusts.
- 05
Read the match rate, not the success message
Snowflake will not tell you anything is wrong. Verify by querying against each party's own totals and checking for duplicate rows on the join key before trusting any aggregate.
Moodle → Snowflake · prove
How it gets proven — Moodle → Snowflake
Source of truth
Moodle's enrolment records in your own database, filtered to paid enrolment methods.
- Whatever join key both parties agree on, usually a hashed identifier confirmed present on a live enrolment.
- Row counts and revenue reconciled against each source system for a closed window, with duplicates checked on the join key and both definitions documented.
- Paid enrolments confirmed separated from free and cohort-synced ones before anything is sent.
Moodle → Snowflake · free audit
What we check in the free audit
- Count enrolments carrying whatever join key both parties agree on, usually a hashed identifier
- Follow one real conversion end to end
- Break down enrolments by enrolment method
- Write down both parties' conversion definitions before writing any query
- Read the match rate, not the success message
Checked against
Moodle's enrolment records in your own database, filtered to paid enrolment methods.
Free30 minutesNo obligation
Moodle → Snowflake · when not to buy
When you don't need this — Moodle → Snowflake
- Measure identifier coverage yourself first — pull your last hundred enrolments and count how many carry whatever join key both parties agree on, usually a hashed identifier.
- If your Moodle is purely internal training with no paid enrolment, there is no conversion here to measure.
- If you have no partner to share data with and one cloud, a warehouse you already run does the same job. The sharing capability is what justifies this one.
Moodle → Snowflake · what we deliver
What gets built — Moodle → Snowflake
Identifier capture into Moodle
Capture the identifier on the public site and write it to a Moodle user profile custom field at account creation, so later paid enrolments can be traced back.
Event source: the Moodle enrolment event via a webhook plugin or scheduled export
Send paid enrolments only, from the server. Free and cohort-synced enrolments must be excluded or the conversion feed is dominated by activity that is not revenue.
Dispatch to Snowflake
Batch or streaming loads from your order system, with the raw event retained alongside anything you derive from it.
Reversals where they exist
Un-enrolments and refunds where a payment plugin is used should reduce the reported figure.
Written guarantee
95%+ tracking accuracy
Measured against Moodle's enrolment records in your own database, filtered to paid enrolment methods.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Moodle → Snowflake questions, answered
The user enrollments table, the enrollment instances table for the method, the users table, and the core payments table for amounts on Moodle 3.10 and later. Older PayPal enrollments store their transactions in that plugin's own table.
Usually free, manual and cohort enrollments are included, or re-enrollments are counted twice. Count paid enrollments by payment record and convert epoch timestamps to the timezone finance uses.
Almost always because whatever join key both parties agree on, usually a hashed identifier never reached the Moodle enrolment. Moodle is typically behind a login and often behind a separate marketing site, so the click identifier has to survive from a public page through registration into a user profile field. Institutional single sign-on frequently breaks that chain entirely. Measure coverage before debugging the dispatch.
There is no vendor identifier. In a data share or clean room the key is negotiated: hashed email, order ID, a partner-supplied ID. Normalisation before hashing is the entire match rate, and a formatting difference between two organisations looks exactly like a poor-performing partnership.
The Moodle enrolment event via a webhook plugin or scheduled export. Send paid enrolments only, from the server. Free and cohort-synced enrolments must be excluded or the conversion feed is dominated by activity that is not revenue.
Snowflake will not tell you anything is wrong. Verify by querying against each party's own totals and checking for duplicate rows on the join key before trusting any aggregate.
More on Moodle → Snowflake
- Moodle → Google AdsConnecting Moodle to Google Ads
- Moodle → MetaConnecting Moodle to Meta Conversions API
- Moodle → GA4Connecting Moodle to GA4
RELATED GUIDES
Where Moodle → Snowflake fits in the rest of your tracking
- iSpring → SnowflakeConnecting iSpring Learn to Snowflake
- LifterLMS → SnowflakeConnecting LifterLMS to Snowflake
- Absorb → SnowflakeConnecting Absorb LMS to Snowflake
- Moodle → SegmentConnecting Moodle to Segment
- Moodle → BigQueryConnecting Moodle to BigQuery
- BootcampsConversion tracking for bootcamps, measured in started students
- Docebo → SnowflakeConnecting Docebo to Snowflake
- Litmos → SnowflakeConnecting Litmos to Snowflake
Free · 30 min
Get Moodle and Snowflake joined properly
Free30 minutesNo obligation
