Skip to main content
LearnDash → X AdsIntegration guide

Connecting LearnDash to X Ads

LearnDash runs courses inside WordPress, which means enrolment can happen through a purchase, a membership, a manual grant or a coupon — and only one of those is revenue. X is a conversation platform where a large share of engagement is discussion rather than intent, which makes the gap between engagement metrics and conversions unusually wide. The join between them succeeds or fails on one thing: whether the twclid click identifier reaches the LearnDash enrolment before the conversion happens, because X Ads can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

LearnDash and X Ads: twclid onto the checkout order, not enrolment

To send LearnDash sales to X Ads, read twclid on the sales page, store it server-side immediately and pass it onto the checkout order. Send the paid order, not the enrollment, to the X Conversions API as a purchase with amount charged, twclid, hashed email and the order ID as conversion ID shared with the pixel.

Courses sold on X are usually sold by the creator's own account and threads, and the click opens in X's in-app browser. Read twclid on the sales page and store it server-side straight away, then pass it onto the checkout order. That matters more than on most platforms here, because plenty of learners click on X, read, then come back days later on a laptop to buy, and the in-app browser's storage is gone by then. That share is lost no matter what you build.

Send the paid order, not the LearnDash enrolment, to the X Conversions API as a purchase, at the amount charged, with twclid, hashed email, and the order ID as the conversion ID shared with the X pixel if the pixel also fires on the thank-you page. Granted and coupon enrolments stay out. For a creator selling a launch to a few hundred people, a duplicated purchase is very visible as a doubled return, so test deduplication with one real order before the launch, not after.

Separate organic from paid. Creators often post the same link organically; those clicks carry no twclid and should not be counted as ad conversions. Use a distinct landing URL for ads so the split is clean in your own records too.

LearnDash → X Ads · what breaks

Why this join usually fails — LearnDash → X Ads

  1. 01

    The twclid click identifier never reaches LearnDash

    Checkout runs through whichever WooCommerce or membership plugin is attached, so the identifier has to survive an extra handoff.

  2. 02

    Granted access counted as sales

    An admin enrolling a cohort, a membership granting bundled access and a coupon at one hundred percent all produce enrolment records identical to a paid one. Counting them inflates revenue by whatever your free access volume is.

  3. 03

    Engagement mistaken for intent

    A post can be quoted, argued with and shared widely by people with no interest in buying anything. Optimising toward engagement on this platform reliably finds an audience that will never convert, and the engagement numbers look excellent throughout.

  4. 04

    Nothing reconciles afterwards

    Read the delivered and matched counts in X's reporting rather than assuming a 200 response means the event was usable.

LearnDash → X Ads · the fix

What working looks like — LearnDash → X Ads

  • The twclid click identifier on every enrolment

  • Conversions arriving in X Ads

    The conversion is matched to a click or an engagement and becomes available for optimisation and reporting.

  • Reconciled against the source

LearnDash → X Ads · architecture

How LearnDash and X Ads actually connect

  1. 1

    LearnDash holds the truth

    LearnDash enrols users from several sources. Course access granted by a membership plugin or by an admin is not a sale and must not be counted as one.

  2. 2

    X Ads needs a click to match

    An event X recognises, a conversion identifier for deduplication, hashed customer information, and the click identifier where you have it.

  3. 3

    The identifier is the bridge

    The twclid click identifier, captured at the visit and carried into the LearnDash enrolment.

  4. 4

    The event source decides reliability

    Send paid enrolments at the amount charged. Free and granted enrolments carry no value.

  5. 5

    Deduplication at the destination

    X deduplicates browser and server events on a shared conversion ID. Send both without pairing them and every conversion counts twice — worth testing deliberately, because X volumes are often small enough that a doubling reads as a good week.

LearnDash → X Ads · normal or broken

Working vs. broken, side by side — LearnDash → X Ads

Normal, not a fault

  • The twclid click identifier present on the enrolment

  • Sent from the payment record joined to the enrolment

  • Deduplicated correctly

    X deduplicates browser and server events on a shared conversion ID. Send both without pairing them and every conversion counts twice — worth testing deliberately, because X volumes are often small enough that a doubling reads as a good week.

  • Reconciles with the source

Actually broken

  • The twclid click identifier missing on most records

    Checkout runs through whichever WooCommerce or membership plugin is attached, so the identifier has to survive an extra handoff.

  • Sent from the browser

    An admin enrolling a cohort, a membership granting bundled access and a coupon at one hundred percent all produce enrolment records identical to a paid one. Counting them inflates revenue by whatever your free access volume is.

  • Counted twice, or not at all

    A post can be quoted, argued with and shared widely by people with no interest in buying anything. Optimising toward engagement on this platform reliably finds an audience that will never convert, and the engagement numbers look excellent throughout.

  • Nobody has reconciled it

LearnDash → X Ads · diagnose

Diagnostic order — LearnDash → X Ads

  1. 01

    Count enrolments carrying the twclid click identifier

  2. 02

    Follow one real conversion end to end

  3. 03

    Split enrolments by how access was granted

    One field, and on established course sites the free share is usually larger than expected.

  4. 04

    Compare engagement rate against conversion rate by campaign

    On X the two frequently move in opposite directions, and that divergence is the finding rather than a measurement fault.

  5. 05

    Read the match rate, not the success message

    Read the delivered and matched counts in X's reporting rather than assuming a 200 response means the event was usable.

LearnDash → X Ads · prove

How it gets proven — LearnDash → X Ads

Source of truth

Paid enrolments from your payment system, held apart from free and granted access.

  • The twclid click identifier confirmed present on a live enrolment.
  • Conversions reconciled per order against imported figures, with deduplication verified on a live test.
  • Paid enrolments reconciled at charged amounts against imported conversions.

LearnDash → X Ads · free audit

What we check in the free audit

  • Count enrolments carrying the twclid click identifier
  • Follow one real conversion end to end
  • Split enrolments by how access was granted
  • Compare engagement rate against conversion rate by campaign
  • Read the match rate, not the success message

Checked against

Paid enrolments from your payment system, held apart from free and granted access.

Get my free conversion tracking audit

Free30 minutesNo obligation

LearnDash → X Ads · when not to buy

When you don't need this — LearnDash → X Ads

  • Measure identifier coverage yourself first — pull your last hundred enrolments and count how many carry the twclid click identifier.
  • If every enrolment is a direct purchase, one conversion action is correct and simpler.
  • If X is a brand and community channel for you rather than a performance one, measure it that way and do not force a conversion pipeline onto it.

LearnDash → X Ads · what we deliver

What gets built — LearnDash → X Ads

  • Identifier capture into LearnDash

    Capture on landing and pass through the purchase flow to the enrolment record.

  • Event source: the payment record joined to the enrolment

    Send paid enrolments at the amount charged. Free and granted enrolments carry no value.

  • Dispatch to X Ads

    The X Conversions API, posted server-side with the click identifier and hashed customer data.

  • Reversals where they exist

    Refunds reverse and should revoke access.

Written guarantee

95%+ tracking accuracy

Measured against Paid enrolments from your payment system, held apart from free and granted access.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

LearnDash → X Ads questions, answered

Capture twclid on the sales page, store it on the checkout order, and send the paid order to the X Conversions API with the order ID as the conversion ID. Do not trigger it from enrolment.

Free · 30 min

Get LearnDash and X Ads joined properly

Free30 minutesNo obligation