Skip to main content
Moodle → AwinIntegration guide

Connecting Moodle to Awin

Moodle is self-hosted open-source learning management, used mostly by institutions where enrolment and payment are usually two different systems. Awin is a traditional last-click affiliate network, and last-click is the whole problem: whoever touched the customer most recently takes the commission, which is a structural invitation for voucher-code sites to intercept sales you had already won. The join between them succeeds or fails on one thing: whether the Awin click reference, awc reaches the Moodle enrolment before the conversion happens, because Awin can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Awin commissions on paid Moodle enrollments, not free sign-ups

Post to Awin only from the Enrolment on payment method or gateway confirmation, with the Moodle payment ID as order reference and the course fee. Carry the awc from the course page through registration into a custom profile field. Match gateway refunds against pending Awin transactions and decline them before validation.

For a course seller running an Awin program, the commissionable event is a paid enrollment, and Moodle records free enrollments the same way. Post to Awin only from the Enrolment on payment method, or from your payment gateway's confirmation, with the Moodle payment ID as the order reference and the course fee as the amount. A publisher whose audience joins free taster courses should earn nothing from them.

The awc value has to cross from the public course page, where the click lands, into Moodle. Read it at the landing page, carry it through registration and write it to a custom user profile field when the account is created. If the learner registers today and buys next month, the field is still there; the cookie may not be. Single sign-on registrations need checking separately, because the account is created by the identity provider and your registration form never runs.

Refunds are the weak point. Moodle's payment subsystem takes payments, but refunds usually happen in the gateway's own dashboard, and Moodle may simply leave the learner enrolled. Unless someone declines the transaction in Awin before the approval period ends, the publisher is paid for a refunded course. Match your gateway's refunds against Awin's pending transactions before each validation.

Moodle → Awin · what breaks

Why this join usually fails — Moodle → Awin

  1. 01

    The Awin click reference, awc 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

    Voucher-code publishers intercepting sales at the checkout

    A customer arrives from a paid ad, reaches the basket, opens a new tab to search for a discount code, clicks a voucher site's link and returns to complete the order. Under last-click the voucher site earns the commission on a sale your advertising produced. This is not a fringe case; on many programmes it is the largest single publisher category.

  4. 04

    Nothing reconciles afterwards

    Awin's reporting shows the sale, the publisher and the commission group. Read the publisher type and the time between click and sale — a click seconds before the order tells you what happened.

Moodle → Awin · the fix

What working looks like — Moodle → Awin

  • The Awin click reference, awc on every enrolment

  • Conversions arriving in Awin

    The sale appears as pending, publishers see it in their reporting, and it validates after your approval period.

  • Reconciled against the source

Moodle → Awin · architecture

How Moodle and Awin 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

    Awin needs a click to match

    Awin needs the click reference, a unique order reference, the order value and the commission group. Missing the click reference means the sale is untracked and the publisher will query it.

  3. 3

    The identifier is the bridge

    The Awin click reference, awc, 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

    Awin deduplicates on your order reference. It also supports a dedup flag so you can decline to commission sales that another channel already claimed — which is the feature most advertisers do not know exists and should be using.

Moodle → Awin · normal or broken

Working vs. broken, side by side — Moodle → Awin

Normal, not a fault

  • The Awin click reference, awc present on the enrolment

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

  • Deduplicated correctly

    Awin deduplicates on your order reference. It also supports a dedup flag so you can decline to commission sales that another channel already claimed — which is the feature most advertisers do not know exists and should be using.

  • Reconciles with the source

Actually broken

  • The Awin click reference, awc 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

    A customer arrives from a paid ad, reaches the basket, opens a new tab to search for a discount code, clicks a voucher site's link and returns to complete the order. Under last-click the voucher site earns the commission on a sale your advertising produced. This is not a fringe case; on many programmes it is the largest single publisher category.

  • Nobody has reconciled it

Moodle → Awin · diagnose

Diagnostic order — Moodle → Awin

  1. 01

    Count enrolments carrying the Awin click reference, awc

  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

    Segment publishers by type and check where the click happened in the journey

    Voucher and cashback clicks that occur within seconds of an order are interception, not acquisition. Use the deduplication flag rather than paying for both.

  5. 05

    Read the match rate, not the success message

    Awin's reporting shows the sale, the publisher and the commission group. Read the publisher type and the time between click and sale — a click seconds before the order tells you what happened.

Moodle → Awin · prove

How it gets proven — Moodle → Awin

Source of truth

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

  • The Awin click reference, awc confirmed present on a live enrolment.
  • Validated sales reconciled per order reference against your own records, with voucher-sourced sales identified and the paid-media overlap stated.
  • Paid enrolments confirmed separated from free and cohort-synced ones before anything is sent.

Moodle → Awin · free audit

What we check in the free audit

  • Count enrolments carrying the Awin click reference, awc
  • Follow one real conversion end to end
  • Break down enrolments by enrolment method
  • Segment publishers by type and check where the click happened in the journey
  • 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 → Awin · when not to buy

When you don't need this — Moodle → Awin

  • Measure identifier coverage yourself first — pull your last hundred enrolments and count how many carry the Awin click reference, awc.
  • If your Moodle is purely internal training with no paid enrolment, there is no conversion here to measure.
  • If you run no affiliate programme this is irrelevant. If you do, the commission structure by publisher type will change your economics more than the tracking accuracy will.

Moodle → Awin · what we deliver

What gets built — Moodle → Awin

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

    Server-to-server conversion posting from your order system, or the tracking pixel where server posting is not available.

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

Store awc in a Moodle custom profile field at registration and post paid enrollments to Awin from your server, using the payment ID as the order reference.

Free · 30 min

Get Moodle and Awin joined properly

Free30 minutesNo obligation