Skip to main content
Moodle → Microsoft AdsIntegration guide

Connecting Moodle to Microsoft Ads

Moodle is self-hosted open-source learning management, used mostly by institutions where enrolment and payment are usually two different systems. Microsoft Ads reaches an older, higher-income, more desktop-weighted audience than Google, and it is routinely the cheapest qualified traffic a B2B advertiser can buy. The join between them succeeds or fails on one thing: whether the MSCLKID reaches the Moodle enrolment before the conversion happens, because Microsoft Ads can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Moodle paid enrolments as Microsoft Ads offline conversions

Capture the MSCLKID on your public course page, write it to a Moodle custom profile field at account creation, and upload paid enrolments from a scheduled query as offline conversions, with course price as value and enrolment time as conversion time. SSO and admin-created accounts will lack it. Retract refunds where supported.

Microsoft Ads suits Moodle course sellers whose learners skew older or work at a desk: adult education, continuing professional credit, compliance training searched for by name. The import is a paid enrolment matched on the MSCLKID you captured on the public course page and wrote to a Moodle custom profile field when the learner created an account.

Build the upload from a scheduled query or export of paid enrolments that joins each enrolment to the user's stored MSCLKID, sends the course price as value, and uses the enrolment time as conversion time. Paid enrolment comes after signup and login, so click and conversion may be days apart; check that your offline goal's window covers your usual gap between first visit and purchase.

Both common failures are on the Moodle side. Single sign-on and admin-created accounts never pass through your registration form, so the custom field is empty for every learner created that way. And one learner who buys three courses has one click: three uploads against the same MSCLKID and goal at different times count as three conversions, which is right for revenue but worth knowing when you read cost per conversion. Retract refunded enrolments if your account supports offline retractions.

Moodle → Microsoft Ads · what breaks

Why this join usually fails — Moodle → Microsoft Ads

  1. 01

    The MSCLKID 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

    Auto-tagging switched off

    Microsoft auto-tagging is frequently disabled in accounts that were set up quickly or imported from Google, and without it no MSCLKID arrives at all — so the entire offline import has nothing to match against and fails silently.

  4. 04

    Nothing reconciles afterwards

    Microsoft Ads reports offline conversion uploads with rows accepted and rejected. A successful upload is not a matched conversion — check that conversions actually appear against campaigns afterwards.

Moodle → Microsoft Ads · the fix

What working looks like — Moodle → Microsoft Ads

  • The MSCLKID on every enrolment

  • Conversions arriving in Microsoft Ads

    Conversions appear against the campaign, ad group and keyword that produced the click, with the value you sent, and become usable for automated bidding.

  • Reconciled against the source

Moodle → Microsoft Ads · architecture

How Moodle and Microsoft Ads 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

    Microsoft Ads needs a click to match

    Microsoft matches uploaded conversions to clicks using the MSCLKID, and the conversion goal must be created as an offline conversion type. The click has to fall inside Microsoft's import window — verify the current limit in your account rather than assuming it matches Google's.

  3. 3

    The identifier is the bridge

    The MSCLKID, 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

    Microsoft deduplicates on the combination of click identifier, conversion name and conversion time. Uploading the same click against a second conversion goal counts twice, which is the usual cause of inflated numbers here.

Moodle → Microsoft Ads · normal or broken

Working vs. broken, side by side — Moodle → Microsoft Ads

Normal, not a fault

  • The MSCLKID present on the enrolment

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

  • Deduplicated correctly

    Microsoft deduplicates on the combination of click identifier, conversion name and conversion time. Uploading the same click against a second conversion goal counts twice, which is the usual cause of inflated numbers here.

  • Reconciles with the source

Actually broken

  • The MSCLKID 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

    Microsoft auto-tagging is frequently disabled in accounts that were set up quickly or imported from Google, and without it no MSCLKID arrives at all — so the entire offline import has nothing to match against and fails silently.

  • Nobody has reconciled it

Moodle → Microsoft Ads · diagnose

Diagnostic order — Moodle → Microsoft Ads

  1. 01

    Count enrolments carrying the MSCLKID

  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 auto-tagging is enabled and check the upload diagnostics

    One account setting decides whether any of this works. Then read the per-row errors on the upload rather than the success count.

  5. 05

    Read the match rate, not the success message

    Microsoft Ads reports offline conversion uploads with rows accepted and rejected. A successful upload is not a matched conversion — check that conversions actually appear against campaigns afterwards.

Moodle → Microsoft Ads · prove

How it gets proven — Moodle → Microsoft Ads

Source of truth

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

  • The MSCLKID confirmed present on a live enrolment.
  • Auto-tagging confirmed on, and the accepted count reconciled against conversions appearing in campaign reporting.
  • Paid enrolments confirmed separated from free and cohort-synced ones before anything is sent.

Moodle → Microsoft Ads · free audit

What we check in the free audit

  • Count enrolments carrying the MSCLKID
  • Follow one real conversion end to end
  • Break down enrolments by enrolment method
  • Confirm auto-tagging is enabled and check the upload diagnostics
  • 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 → Microsoft Ads · when not to buy

When you don't need this — Moodle → Microsoft Ads

  • Measure identifier coverage yourself first — pull your last hundred enrolments and count how many carry the MSCLKID.
  • If your Moodle is purely internal training with no paid enrolment, there is no conversion here to measure.
  • If you are not running Microsoft Ads at meaningful spend, skip it — though for B2B the traffic is often cheaper and better qualified than people expect, which is worth testing before dismissing.

Moodle → Microsoft Ads · what we deliver

What gets built — Moodle → Microsoft Ads

  • 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 Microsoft Ads

    Offline conversion import through the Microsoft Advertising API or a scheduled upload.

  • 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 → Microsoft Ads questions, answered

Capture it on your public site and write it to a custom user profile field when the Moodle account is created, through your registration form or signup plugin. Later enrolments read it from the user record.

Free · 30 min

Get Moodle and Microsoft Ads joined properly

Free30 minutesNo obligation