Skip to main content
LearnDash → BigQueryIntegration guide

Connecting LearnDash to BigQuery

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. BigQuery has no attribution model, no deduplication rules and no opinion about your data — which makes it the only destination on this site where every number is exactly as good as the query that produced it. The join between them succeeds or fails on one thing: whether whatever join key you decide on reaches the LearnDash enrolment before the conversion happens, because BigQuery can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

LearnDash to BigQuery: join enrolments to orders, not enrolments alone

To analyze LearnDash in BigQuery, load course enrollments and paid orders from WooCommerce or your checkout plugin, joined on WordPress user ID plus course ID, so unmatched enrollments reveal granted and coupon access. Write captured ad click IDs onto the order, store amount charged and refunds in their own columns, normalize dates to UTC, and keep every enrollment change.

Course sites outgrow the LearnDash reports quickly, and the warehouse is where paid and granted access finally get separated properly. Load two things: course enrolments (from LearnDash's user activity data; check the table names in your install, as they vary with version and multisite) and paid orders from WooCommerce or whichever checkout plugin sells access. Join them on WordPress user ID plus course ID. Enrolments with no matching paid order are your granted, membership and coupon access, and their share is the number most course owners have never seen.

Write the ad click identifiers captured on the sales page onto the order at checkout and load them with the order. That keeps attribution tied to money, not to access. Store order currency, the amount charged after coupons and the refund amount and date in their own columns, because a refunded enrolment that is still active in LearnDash is a common leak that only shows up in a join.

Two loading traps. WordPress stores many LearnDash dates as Unix timestamps in user meta and others as site-local datetimes, so normalize to UTC on load or cohorts will drift by hours around midnight. And enrolment can be removed and re-granted, so keep every change with a load time rather than overwriting the latest state.

LearnDash → BigQuery · what breaks

Why this join usually fails — LearnDash → BigQuery

  1. 01

    Whatever join key you decide on 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

    The warehouse quietly disagreeing with every platform

    This is not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.

  4. 04

    Nothing reconciles afterwards

    BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.

LearnDash → BigQuery · the fix

What working looks like — LearnDash → BigQuery

  • Whatever join key you decide on on every enrolment

  • Conversions arriving in BigQuery

    The row lands in a table you own, joinable to every other table you own, with no window and no expiry.

  • Reconciled against the source

LearnDash → BigQuery · architecture

How LearnDash and BigQuery 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

    BigQuery needs a click to match

    BigQuery needs a schema and consistent types. The failure mode is not rejection, it is silent divergence: a column that arrives as a string in one load and an integer in the next, or a timestamp in the wrong zone, which produces answers that look plausible and are not.

  3. 3

    The identifier is the bridge

    Whatever join key you decide on, 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

    Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.

LearnDash → BigQuery · normal or broken

Working vs. broken, side by side — LearnDash → BigQuery

Normal, not a fault

  • Whatever join key you decide on present on the enrolment

  • Sent from the payment record joined to the enrolment

  • Deduplicated correctly

    Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.

  • Reconciles with the source

Actually broken

  • Whatever join key you decide on 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

    This is not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.

  • Nobody has reconciled it

LearnDash → BigQuery · diagnose

Diagnostic order — LearnDash → BigQuery

  1. 01

    Count enrolments carrying whatever join key you decide on

  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

    Reconcile warehouse order counts against each platform for one closed window

    The gaps localize the problem: a gap against all platforms is a collection issue, a gap against one is that platform's window or matching.

  5. 05

    Read the match rate, not the success message

    BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.

LearnDash → BigQuery · prove

How it gets proven — LearnDash → BigQuery

Source of truth

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

  • Whatever join key you decide on confirmed present on a live enrolment.
  • Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
  • Paid enrolments reconciled at charged amounts against imported conversions.

LearnDash → BigQuery · free audit

What we check in the free audit

  • Count enrolments carrying whatever join key you decide on
  • Follow one real conversion end to end
  • Split enrolments by how access was granted
  • Reconcile warehouse order counts against each platform for one closed window
  • 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 → BigQuery · when not to buy

When you don't need this — LearnDash → BigQuery

  • Measure identifier coverage yourself first — pull your last hundred enrolments and count how many carry whatever join key you decide on.
  • If every enrolment is a direct purchase, one conversion action is correct and simpler.
  • If you have one store and one ad platform, a warehouse is infrastructure you will maintain for a reconciliation you could do in a spreadsheet.

LearnDash → BigQuery · what we deliver

What gets built — LearnDash → BigQuery

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

    Streaming inserts or scheduled batch loads from your order system, with the raw event retained alongside whatever you derive from it.

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

Load enrolments and paid orders into BigQuery, join on user ID and course ID, and count enrolments with no matching paid order. That split is the free and granted share.

Free · 30 min

Get LearnDash and BigQuery joined properly

Free30 minutesNo obligation