Skip to main content
Teachable → BigQueryIntegration guide

Connecting Teachable to BigQuery

Teachable hosts courses and their checkout, so the sale happens inside the platform and the creator's own site is usually just a front door. 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 Teachable transaction 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

Teachable to BigQuery: transactions, plans and refunds by cohort

Load Teachable transactions into BigQuery keyed on transaction ID, with student ID, product, plan type, amount, currency, refund status and the checkout identifier, one row per instalment. Deduplicate webhook redeliveries, offset late refunds against the original row, and join to ad spend through stored click IDs or UTMs. Use the Teachable user ID, not email, for student-level value.

Course businesses argue about one number more than any other: what a student is worth after refunds and missed payment plan instalments. BigQuery is where it can be computed from Teachable's transaction records instead of guessed from the first charge, and joined to ad spend through the identifier carried through checkout.

Load transactions keyed on the transaction ID, with the student ID, product, plan type, amount, currency, refund status and the identifier carried in the checkout URL. Keep each payment plan instalment as its own row so a student's collected revenue is a sum, not an assumption. Then join students to campaigns on the click identifier or UTMs stored with their first transaction, and to spend tables loaded from each ad platform. Check what Teachable exposes through webhooks, API or export on your plan before building.

Refunds arrive late and should offset the original row rather than vanish from the sum. Webhooks can be redelivered, so deduplicate on the transaction ID before every aggregate. A student who buys three courses is one student, so student-level value needs the stable Teachable user ID rather than email, which students change. Report cohorts by first-purchase month, net of refunds, and only after the refund window has closed.

Teachable → BigQuery · what breaks

Why this join usually fails — Teachable → BigQuery

  1. 01

    Whatever join key you decide on never reaches Teachable

    Checkout is hosted on Teachable, so an identifier captured on your own marketing site does not automatically reach the enrolment. It has to be carried through the checkout URL and read back from the transaction.

  2. 02

    A hosted checkout on another domain

    Your marketing site and the checkout are separate origins, so nothing carries across on its own and the enrolment arrives with no trace of the campaign.

  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.

Teachable → BigQuery · the fix

What working looks like — Teachable → 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

Teachable → BigQuery · architecture

How Teachable and BigQuery actually connect

  1. 1

    Teachable holds the truth

    Teachable distinguishes one-time purchases, payment plans and subscriptions. As with any course platform, valuing a payment plan at its first instalment is the standard mistake.

  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 Teachable transaction.

  4. 4

    The event source decides reliability

    Send from the webhook on completed transactions, distinguishing plan types so each carries an appropriate 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.

Teachable → BigQuery · normal or broken

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

Normal, not a fault

  • Whatever join key you decide on present on the enrolment

  • Sent from the Teachable transaction webhook

  • 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 is hosted on Teachable, so an identifier captured on your own marketing site does not automatically reach the enrolment. It has to be carried through the checkout URL and read back from the transaction.

  • Sent from the browser

    Your marketing site and the checkout are separate origins, so nothing carries across on its own and the enrolment arrives with no trace of the campaign.

  • 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

Teachable → BigQuery · diagnose

Diagnostic order — Teachable → BigQuery

  1. 01

    Count enrolments carrying whatever join key you decide on

  2. 02

    Follow one real conversion end to end

  3. 03

    Open a recent transaction and look for the identifier

    Absent means the checkout URL is not carrying it, which is the usual cause.

  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.

Teachable → BigQuery · prove

How it gets proven — Teachable → BigQuery

Source of truth

Teachable's transaction records for the same window, net of refunds.

  • 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.
  • An enrolment confirmed to carry both the identifier and the correct plan value.

Teachable → 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
  • Open a recent transaction and look for the identifier
  • Reconcile warehouse order counts against each platform for one closed window
  • Read the match rate, not the success message

Checked against

Teachable's transaction records for the same window, net of refunds.

Get my free conversion tracking audit

Free30 minutesNo obligation

Teachable → BigQuery · when not to buy

When you don't need this — Teachable → BigQuery

  • Measure identifier coverage yourself first — pull your last hundred enrolments and count how many carry whatever join key you decide on.
  • For a single course at modest volume, Teachable's own reporting is adequate.
  • 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.

Teachable → BigQuery · what we deliver

What gets built — Teachable → BigQuery

  • Identifier capture into Teachable

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

  • Event source: the Teachable transaction webhook

    Send from the webhook on completed transactions, distinguishing plan types so each carries an appropriate 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 are recorded, and course refund windows generate a real volume of them.

Written guarantee

95%+ tracking accuracy

Measured against Teachable's transaction records for the same window, net of refunds.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Teachable → BigQuery questions, answered

Use Teachable's webhooks or API, depending on your plan, to load transactions keyed on the transaction ID. Store each instalment and refund as its own row.

Free · 30 min

Get Teachable and BigQuery joined properly

Free30 minutesNo obligation