Skip to main content
Moodle → Google AdsIntegration guide

Connecting Moodle to Google Ads

Moodle is self-hosted open-source learning management, used mostly by institutions where enrolment and payment are usually two different systems. Google Ads knows what you spent and which click it came from, and nothing at all about what happened afterwards. The join between them succeeds or fails on one thing: whether the GCLID reaches the Moodle enrolment before the conversion happens, because Google Ads can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Moodle to Google Ads: gclid on the profile, paid enrollments only

Write the gclid into a Moodle profile custom field at account creation and upload paid enrollments to an import conversion action. Check your signup-to-payment gap against Google's 90-day window, with enhanced conversions for leads as fallback. Exclude free, manual and cohort enrollments, and retract refunds against the original upload.

Write the gclid into a Moodle user profile custom field when the account is created, then upload paid enrollments against an import conversion action. Many learners create an account long before paying: someone who signs up for a free taster course in January and buys the paid course in May is past Google's 90-day window, and that upload is rejected. Check the gap between account creation and first paid enrollment in your own data before deciding offline import can carry this account.

Where the gap is too long, enhanced conversions for leads is the fallback. It matches on hashed email instead of the gclid, but it needs your Google tag to capture the hashed email at sign-up, so set that up before you need it, and check its own lookback limits.

Exclude free, manual and cohort-synced enrollments from the upload entirely. Do not create a second conversion action for them carrying the same gclid; a learner who joins a free course and then a paid one would count in both. Send refunds processed through the payment plugin as retractions against the original upload. And if institutional SSO drops the gclid between the public site and Moodle, keep it in a first-party cookie on the public site and write it to the profile field on the first authenticated page load.

Moodle → Google Ads · what breaks

Why this join usually fails — Moodle → Google Ads

  1. 01

    The GCLID 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 conversion action is the wrong type

    Uploads against a standard website conversion action fail. The action has to be created as 'Import' — and existing actions cannot be converted, so this is discovered late and requires starting a new action with no history.

  4. 04

    Nothing reconciles afterwards

    Google Ads reports uploads in Goals → Conversions → Uploads, with rows accepted and rows failed. A green result means the file parsed, not that the clicks matched. The number to watch is how many conversions actually appear against campaigns afterwards.

Moodle → Google Ads · the fix

What working looks like — Moodle → Google Ads

  • The GCLID on every enrolment

  • Conversions arriving in Google Ads

    Conversions appear against the campaign, ad group and keyword that produced the click, with the value you sent — which is what lets Smart Bidding optimize toward revenue instead of toward form fills.

  • Reconciled against the source

Moodle → Google Ads · architecture

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

    Google Ads needs a click to match

    Google Ads matches an uploaded conversion back to a click using the GCLID. The conversion action must be created as an import type — an upload against a website-tag conversion action is rejected. Uploads must also land inside Google's window: the click has to be within the last 90 days.

  3. 3

    The identifier is the bridge

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

    Google deduplicates on the combination of GCLID, conversion action and conversion time. Uploading the same click twice against the same action at the same timestamp is rejected rather than double-counted, but uploading it against a second conversion action counts twice — which is how most double-counting here actually happens.

Moodle → Google Ads · normal or broken

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

Normal, not a fault

  • The GCLID present on the enrolment

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

  • Deduplicated correctly

    Google deduplicates on the combination of GCLID, conversion action and conversion time. Uploading the same click twice against the same action at the same timestamp is rejected rather than double-counted, but uploading it against a second conversion action counts twice — which is how most double-counting here actually happens.

  • Reconciles with the source

Actually broken

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

    Uploads against a standard website conversion action fail. The action has to be created as 'Import' — and existing actions cannot be converted, so this is discovered late and requires starting a new action with no history.

  • Nobody has reconciled it

Moodle → Google Ads · diagnose

Diagnostic order — Moodle → Google Ads

  1. 01

    Count enrolments carrying the GCLID

  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

    Check the conversion action type and the upload diagnostics

    In Google Ads, Goals → Conversions → Uploads shows every upload with its error rows. Read the errors rather than the success count; a file can import successfully with most rows rejected.

  5. 05

    Read the match rate, not the success message

    Google Ads reports uploads in Goals → Conversions → Uploads, with rows accepted and rows failed. A green result means the file parsed, not that the clicks matched. The number to watch is how many conversions actually appear against campaigns afterwards.

Moodle → Google Ads · prove

How it gets proven — Moodle → Google Ads

Source of truth

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

  • The GCLID confirmed present on a live enrolment.
  • The Uploads diagnostics read row by row, with 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 → Google Ads · free audit

What we check in the free audit

  • Count enrolments carrying the GCLID
  • Follow one real conversion end to end
  • Break down enrolments by enrolment method
  • Check the conversion action type and 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 → Google Ads · when not to buy

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

  • Measure identifier coverage yourself first — pull your last hundred enrolments and count how many carry the GCLID.
  • If your Moodle is purely internal training with no paid enrolment, there is no conversion here to measure.
  • If your sales close inside a few days and your website tag already reports accurately, you may not need offline import at all. It exists to solve the delay between click and revenue.

Moodle → Google Ads · what we deliver

What gets built — Moodle → Google 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 Google Ads

    Offline Conversion Import through the Google Ads API, or a scheduled upload. Enhanced conversions for leads where GCLID coverage is poor and you have consented email addresses.

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

Yes, if the gclid is saved on the Moodle user profile and the paid enrollment happens within 90 days of the click. Use an import-type conversion action and upload paid enrollments only.

Free · 30 min

Get Moodle and Google Ads joined properly

Free30 minutesNo obligation