Skip to main content
Moodle → Marketing CloudIntegration guide

Connecting Moodle to Salesforce Marketing Cloud

Moodle is self-hosted open-source learning management, used mostly by institutions where enrolment and payment are usually two different systems. Marketing Cloud is a different product from Salesforce CRM with a different identity model, which catches out almost everyone who assumes a contact in one is a contact in the other. The join between them succeeds or fails on one thing: whether the Subscriber Key reaches the Moodle enrolment before the conversion happens, because Marketing Cloud can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Moodle to Marketing Cloud: stop cohort sync triggering journeys

Store the Subscriber Key in a Moodle custom profile field at account creation and send each enrollment row with it into the data extension a journey watches. Filter on enrollment method before inserting, so term-start cohort syncs never trigger welcome journeys. Test in a non-production business unit first.

Institutions on Salesforce often use Marketing Cloud for email around courses: a welcome when a paid enrollment starts, a nudge when a learner has not logged in for two weeks, a reminder before access ends. Moodle supplies the events; Marketing Cloud needs them inserted into the data extension each journey watches, keyed on the Subscriber Key your org actually uses.

Decide the key before building. Moodle identifies learners by its own user ID and often by an SSO username, the CRM has a Contact ID, and Marketing Cloud may use either or an email address. Store the Subscriber Key in a Moodle custom profile field at account creation, or have the student system write it there, and send every enrollment row with it. Keying on the Moodle email creates a second subscriber for anyone whose LMS address differs from the CRM one.

The Moodle-specific accident is cohort sync. At term start one sync can create thousands of enrollments in a minute, and if those rows land in a welcome journey's data extension, every student receives it, including those enrolled last term. Filter on enrollment method before inserting: paid and self-enrollments go to the welcome journey, cohort enrollments to their own extension or nowhere. Test in a non-production business unit with a cloned cohort first.

Moodle → Marketing Cloud · what breaks

Why this join usually fails — Moodle → Marketing Cloud

  1. 01

    The Subscriber Key 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.

  2. 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.

  3. 03

    Two identity models treated as one

    Marketing Cloud's Subscriber Key and CRM's Contact ID are separate concepts, and Contact Builder's configuration decides whether they relate at all. Getting this wrong does not produce an error — it produces a customer who exists twice, receives everything twice, and appears in reporting as two people.

  4. 04

    Nothing reconciles afterwards

    Check the subscriber record and the journey history, not the API response. A successful insert into an unwatched data extension looks identical to a successful one into the right extension.

Moodle → Marketing Cloud · the fix

What working looks like — Moodle → Marketing Cloud

  • The Subscriber Key on every enrolment

  • Conversions arriving in Marketing Cloud

    The record lands in the data extension, the journey's entry criteria evaluate on its schedule, and sends follow.

  • Reconciled against the source

Moodle → Marketing Cloud · architecture

How Moodle and Marketing Cloud actually connect

  1. 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. 2

    Salesforce Marketing Cloud needs a click to match

    The Subscriber Key, the data extension the journey listens to, and the fields its decision splits reference. An event landing in the wrong data extension will be stored correctly and trigger nothing.

  3. 3

    The identifier is the bridge

    The Subscriber Key, captured at the visit and carried into the Moodle enrolment.

  4. 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. 5

    Deduplication at the destination

    Marketing Cloud does not deduplicate journey entries for you. A record inserted twice can enter a journey twice, and because journeys span email, SMS and push the duplicate reaches the customer more than once.

Moodle → Marketing Cloud · normal or broken

Working vs. broken, side by side — Moodle → Marketing Cloud

Normal, not a fault

  • The Subscriber Key present on the enrolment

  • Sent from the Moodle enrolment event via a webhook plugin or scheduled export

  • Deduplicated correctly

    Marketing Cloud does not deduplicate journey entries for you. A record inserted twice can enter a journey twice, and because journeys span email, SMS and push the duplicate reaches the customer more than once.

  • Reconciles with the source

Actually broken

  • The Subscriber Key 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

    Marketing Cloud's Subscriber Key and CRM's Contact ID are separate concepts, and Contact Builder's configuration decides whether they relate at all. Getting this wrong does not produce an error — it produces a customer who exists twice, receives everything twice, and appears in reporting as two people.

  • Nobody has reconciled it

Moodle → Marketing Cloud · diagnose

Diagnostic order — Moodle → Marketing Cloud

  1. 01

    Count enrolments carrying the Subscriber Key

  2. 02

    Follow one real conversion end to end

  3. 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.

  4. 04

    Confirm what Subscriber Key is actually set to in this org

    Before sending anything. It is a configuration decision made once, often years ago, and every integration built afterwards inherits it.

  5. 05

    Read the match rate, not the success message

    Check the subscriber record and the journey history, not the API response. A successful insert into an unwatched data extension looks identical to a successful one into the right extension.

Moodle → Marketing Cloud · prove

How it gets proven — Moodle → Marketing Cloud

Source of truth

Moodle's enrolment records in your own database, filtered to paid enrolment methods.

  • The Subscriber Key confirmed present on a live enrolment.
  • Records confirmed on single subscriber records in the correct data extension, with the triggered journey verified in a non-production business unit first.
  • Paid enrolments confirmed separated from free and cohort-synced ones before anything is sent.

Moodle → Marketing Cloud · free audit

What we check in the free audit

  • Count enrolments carrying the Subscriber Key
  • Follow one real conversion end to end
  • Break down enrolments by enrolment method
  • Confirm what Subscriber Key is actually set to in this org
  • Read the match rate, not the success message

Checked against

Moodle's enrolment records in your own database, filtered to paid enrolment methods.

Get my free conversion tracking audit

Free30 minutesNo obligation

Moodle → Marketing Cloud · when not to buy

When you don't need this — Moodle → Marketing Cloud

  • Measure identifier coverage yourself first — pull your last hundred enrolments and count how many carry the Subscriber Key.
  • If your Moodle is purely internal training with no paid enrolment, there is no conversion here to measure.
  • If you are on Salesforce CRM but sending email through a simpler platform, adding Marketing Cloud brings an identity model to reconcile that you currently do not have to think about.

Moodle → Marketing Cloud · what we deliver

What gets built — Moodle → Marketing Cloud

  • 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 Marketing Cloud

    A server-side insert into the data extension the journey is configured against, keyed on Subscriber Key.

  • 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.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Moodle → Marketing Cloud questions, answered

Insert each enrollment server-side into the data extension the journey listens to, keyed on Subscriber Key, with the enrollment method and course. Filter out cohort and manual enrollments unless a journey is built for them.

Free · 30 min

Get Moodle and Marketing Cloud joined properly

Free30 minutesNo obligation