Skip to main content
Moodle → BranchIntegration guide

Connecting Moodle to Branch

Moodle is self-hosted open-source learning management, used mostly by institutions where enrolment and payment are usually two different systems. Branch's real job is the web-to-app seam — a person clicks a link in a browser, installs the app, and something has to carry the context across an install that destroys every cookie involved. The join between them succeeds or fails on one thing: whether the Branch link click identifier and the deferred deep link payload reaches the Moodle enrolment before the conversion happens, because Branch can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Moodle and Branch: Moodle already handles the web-to-app hop

For most Moodle sites there's nothing for Branch to attribute, because the standard Moodle app can't include your Branch SDK. Moodle's own app banner and QR sign-in move existing learners to the app. Only a branded app might take the SDK, and paid web enrollments would still be sent from your server.

Branch carries campaign context across an app install, and that only helps if the app is yours. The standard Moodle app is published by Moodle and does not include your Branch SDK, so a Branch link cannot pass anything into it on first open. For most Moodle sites there is nothing for Branch to attribute.

Moodle covers the practical part of the web-to-app hop on its own. Site settings can show a banner suggesting the app to mobile visitors, and learners can sign in to the app by scanning a QR code from their profile. That moves an existing learner from browser to app. It does not attribute a marketing campaign, and neither does Branch without an SDK in the app.

A branded Moodle app is the only case worth checking, and the question for Moodle is whether a third-party SDK like Branch's can be built into it. Even with one, paid enrollments usually happen on the website through a payment plugin, so the conversion would still have to be sent from your server against a user identity the app shares with Branch, stored in a custom profile field. If no app of yours is involved, put the effort into capturing click identifiers on your public course pages and carrying them into Moodle at registration.

Moodle → Branch · what breaks

Why this join usually fails — Moodle → Branch

  1. 01

    The Branch link click identifier and the deferred deep link payload 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

    The install that erases the campaign

    Someone clicks a paid ad on the mobile web, hits the app store, installs, and opens the app as a brand new anonymous user. Without deferred deep linking that campaign produced an organic install, and the ad account shows nothing for a conversion it genuinely caused.

  4. 04

    Nothing reconciles afterwards

    Branch shows the attributed link and campaign on the event in its dashboard. Check that the install carries a link click rather than showing as organic, which is the failure this product exists to prevent.

Moodle → Branch · the fix

What working looks like — Moodle → Branch

  • The Branch link click identifier and the deferred deep link payload on every enrolment

  • Conversions arriving in Branch

    The event is attributed to the originating link and campaign, and forwarded to any configured downstream partners.

  • Reconciled against the source

Moodle → Branch · architecture

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

    Branch needs a click to match

    Branch needs the link click context matched to the app open, plus the event and its revenue. Without the deferred deep link payload there is nothing to join the install to.

  3. 3

    The identifier is the bridge

    The Branch link click identifier and the deferred deep link payload, 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

    Branch deduplicates on the event identifier you supply. Firing a purchase from both the SDK and your server without a shared identifier double-counts, and Branch forwards to downstream partners, so the duplicate propagates.

Moodle → Branch · normal or broken

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

Normal, not a fault

  • The Branch link click identifier and the deferred deep link payload present on the enrolment

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

  • Deduplicated correctly

    Branch deduplicates on the event identifier you supply. Firing a purchase from both the SDK and your server without a shared identifier double-counts, and Branch forwards to downstream partners, so the duplicate propagates.

  • Reconciles with the source

Actually broken

  • The Branch link click identifier and the deferred deep link payload 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

    Someone clicks a paid ad on the mobile web, hits the app store, installs, and opens the app as a brand new anonymous user. Without deferred deep linking that campaign produced an organic install, and the ad account shows nothing for a conversion it genuinely caused.

  • Nobody has reconciled it

Moodle → Branch · diagnose

Diagnostic order — Moodle → Branch

  1. 01

    Count enrolments carrying the Branch link click identifier and the deferred deep link payload

  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

    Measure your organic install share and ask whether it is plausible

    An implausibly large organic share is usually broken attribution rather than genuine word of mouth.

  5. 05

    Read the match rate, not the success message

    Branch shows the attributed link and campaign on the event in its dashboard. Check that the install carries a link click rather than showing as organic, which is the failure this product exists to prevent.

Moodle → Branch · prove

How it gets proven — Moodle → Branch

Source of truth

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

  • The Branch link click identifier and the deferred deep link payload confirmed present on a live enrolment.
  • Attributed installs and in-app purchases reconciled against your own user records, with the unattributed share stated.
  • Paid enrolments confirmed separated from free and cohort-synced ones before anything is sent.

Moodle → Branch · free audit

What we check in the free audit

  • Count enrolments carrying the Branch link click identifier and the deferred deep link payload
  • Follow one real conversion end to end
  • Break down enrolments by enrolment method
  • Measure your organic install share and ask whether it is plausible
  • 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 → Branch · when not to buy

When you don't need this — Moodle → Branch

  • Measure identifier coverage yourself first — pull your last hundred enrolments and count how many carry the Branch link click identifier and the deferred deep link payload.
  • If your Moodle is purely internal training with no paid enrolment, there is no conversion here to measure.
  • If you have no app, or no web surface driving app installs, there is no seam here to bridge and the integration solves nothing.

Moodle → Branch · what we deliver

What gets built — Moodle → Branch

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

    The Branch server-to-server events API, posted from your backend with the user identity and event data.

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

Not for attribution with the standard Moodle app, which does not include your Branch SDK. A branded app is the only case to ask Moodle about.

Free · 30 min

Get Moodle and Branch joined properly

Free30 minutesNo obligation