Skip to main content
LearnWorlds → GA4Integration guide

Connecting LearnWorlds to GA4

LearnWorlds is a hosted course platform for creators and small training businesses, with the school on its own domain or subdomain. GA4 is where the business goes to understand what happened, which makes an unattributed conversion there expensive in decisions rather than in ad spend. The join between them succeeds or fails on one thing: whether the GA4 client_id reaches the LearnWorlds enrolment before the conversion happens, because GA4 can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

LearnWorlds to GA4: paid enrolments, free courses kept apart

To send LearnWorlds sales to GA4, configure cross-domain measurement and use either the school's own GA4 tag or a Measurement Protocol send from the order webhook, not both. For server sends, pass client_id through the checkout URL and send purchase with the order ID as transaction_id within 72 hours. Free enrollments go as sign_up or generate_lead.

LearnWorlds schools usually live on a subdomain (school.yourbrand.com) or a separate domain from the marketing site, so GA4 sees two properties' worth of traffic unless cross-domain measurement is configured. Check whether your LearnWorlds plan lets you add a GA4 measurement ID or GTM container directly; if it does, that tag fires on the school, and a Measurement Protocol event from the order webhook on top of it will double count, because GA4 does not deduplicate.

If you send server-side, append the client_id to the checkout URL from your marketing site and confirm it can be read back from the order. Send purchase with the LearnWorlds order ID as transaction_id, items named by course or bundle, and a separate event or item category for subscriptions. Measurement Protocol only accepts events timestamped within 72 hours, so send from the webhook as it fires.

The GA4-specific damage from free lead-magnet courses is subtle: a free enrolment sent as purchase with value 0 inflates the transaction count and drags average order value down in every report. Send free enrolments as sign_up or generate_lead instead, and refunds inside the course refund window as refund events with the original transaction_id.

LearnWorlds → GA4 · what breaks

Why this join usually fails — LearnWorlds → GA4

  1. 01

    The GA4 client_id never reaches LearnWorlds

    Checkout is hosted, so an identifier captured on a separate marketing site does not reach the enrolment unless carried through the checkout URL and confirmed on the order.

  2. 02

    Free lead-magnet courses counted as conversions

    Free courses are a legitimate lead magnet and a terrible conversion target. Sending them teaches bidding to find people who take free courses.

  3. 03

    Everything lands under (direct)/(none)

    The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.

  4. 04

    Nothing reconciles afterwards

    GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.

LearnWorlds → GA4 · the fix

What working looks like — LearnWorlds → GA4

  • The GA4 client_id on every enrolment

  • Conversions arriving in GA4

    Conversions appear in GA4 attributed to the original session's source and medium, so acquisition reporting reflects what actually drove revenue.

  • Reconciled against the source

LearnWorlds → GA4 · architecture

How LearnWorlds and GA4 actually connect

  1. 1

    LearnWorlds holds the truth

    LearnWorlds carries one-off courses, bundles and subscriptions side by side. Subscriptions need valuing over their expected life; treating them as one-off sales understates them badly.

  2. 2

    GA4 needs a click to match

    GA4 needs the client_id to attach a server event to the user and session that produced the click. Without it there is no attribution to inherit and the event is orphaned.

  3. 3

    The identifier is the bridge

    The GA4 client_id, captured at the visit and carried into the LearnWorlds enrolment.

  4. 4

    The event source decides reliability

    Send paid enrolments, distinguishing one-off purchases from subscriptions so each carries the right value.

  5. 5

    Deduplication at the destination

    GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.

LearnWorlds → GA4 · normal or broken

Working vs. broken, side by side — LearnWorlds → GA4

Normal, not a fault

  • The GA4 client_id present on the enrolment

  • Sent from the LearnWorlds order webhook

  • Deduplicated correctly

    GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.

  • Reconciles with the source

Actually broken

  • The GA4 client_id missing on most records

    Checkout is hosted, so an identifier captured on a separate marketing site does not reach the enrolment unless carried through the checkout URL and confirmed on the order.

  • Sent from the browser

    Free courses are a legitimate lead magnet and a terrible conversion target. Sending them teaches bidding to find people who take free courses.

  • Counted twice, or not at all

    The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.

  • Nobody has reconciled it

LearnWorlds → GA4 · diagnose

Diagnostic order — LearnWorlds → GA4

  1. 01

    Count enrolments carrying the GA4 client_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether free and paid enrolments share a conversion action

    If they do, the free tier is setting your bids.

  4. 04

    Check whether server events carry a session and a source

    In GA4 Realtime or DebugView, find the event and look at its session and traffic source. A brand-new user with no source on every server event is the missing-client_id signature.

  5. 05

    Read the match rate, not the success message

    GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.

LearnWorlds → GA4 · prove

How it gets proven — LearnWorlds → GA4

Source of truth

LearnWorlds' paid enrolments and subscription records for the same window.

  • The GA4 client_id confirmed present on a live enrolment.
  • Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
  • Paid enrolments confirmed separated from free, with subscriptions at lifetime value.

LearnWorlds → GA4 · free audit

What we check in the free audit

  • Count enrolments carrying the GA4 client_id
  • Follow one real conversion end to end
  • Check whether free and paid enrolments share a conversion action
  • Check whether server events carry a session and a source
  • Read the match rate, not the success message

Checked against

LearnWorlds' paid enrolments and subscription records for the same window.

Get my free conversion tracking audit

Free30 minutesNo obligation

LearnWorlds → GA4 · when not to buy

When you don't need this — LearnWorlds → GA4

  • Measure identifier coverage yourself first — pull your last hundred enrolments and count how many carry the GA4 client_id.
  • If you run one free course as a funnel entry and monetise elsewhere, the conversion is not in LearnWorlds.
  • GA4 is reporting, not bidding. If your problem is ad platform optimization, fix the ad platform destination first — GA4 will not change what any campaign does.

LearnWorlds → GA4 · what we deliver

What gets built — LearnWorlds → GA4

  • Identifier capture into LearnWorlds

    Append the identifier to the course checkout URL and verify it is retrievable from the enrolment record before building anything downstream.

  • Event source: the LearnWorlds order webhook

    Send paid enrolments, distinguishing one-off purchases from subscriptions so each carries the right value.

  • Dispatch to GA4

    Measurement Protocol events with the client_id, session_id and the correct measurement ID and API secret, sent server-side.

  • Reversals where they exist

    Refunds within the course refund window are common and should reduce the figure.

Written guarantee

95%+ tracking accuracy

Measured against LearnWorlds' paid enrolments and subscription records for the same window.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

LearnWorlds → GA4 questions, answered

Either use LearnWorlds' own GA4 setting if your plan includes it, or send purchase from the order webhook with your client_id. Using both counts each sale twice.

Free · 30 min

Get LearnWorlds and GA4 joined properly

Free30 minutesNo obligation