Skip to main content

Teachable Affiliate Program: Native Setup vs Stripe

Know what must work before you launch

Use Teachable attribution for school checkout or prove a separate Stripe path

Best fit
Teams evaluating AffiliateBase for a Teachable affiliate workflow.
Checkout handoff
The checkout path must receive the generated AffiliateBase referral ID.
Proof required
Complete one referred checkout and confirm the attributed sale and commission.

Follow the attribution evidence

Illustrative scenario · fictional values

  1. Referred visit

    ?via=partner

    AffiliateBase captures the visit and generates a referral record.

  2. Checkout handoff

    referral ID

    The checkout must carry the generated identifier into Stripe.

  3. Paid event

    $99 paid

    A supported Stripe event confirms the attributed payment.

  4. Commission

    $19.80 due

    An eligible attributed sale creates the commission record.

  5. Payout prep

    Payout ready

    Review the commission and prepare the next step with your payout provider.

This guide is for school owners creating a program for their own courses. Teachable provides school affiliate tools on eligible plans, including affiliate accounts, link generation, attribution settings, earnings, and resources.

Teachable states that attribution for its checkout is tracked through Teachable-hosted pages. Use the official school affiliates overview for that path. Saving an AffiliateBase referral in browser storage does not establish Teachable checkout attribution.

AffiliateBase can be evaluated for a separate Stripe Payment Link or custom Checkout Session launched from a page you control. Use the Stripe guide and verify the resulting sale and commission.

Follow these steps to integrate AffiliateBase with Teachable:

1

Add the Tracking Script

Add the AffiliateBase tracking script to your Teachable site. Go to **Settings > Code Snippets > Head Code** and paste this script. Use the pinned jsDelivr tracking URL for the latest published AffiliateBase release.
html
<script async src="https://app.affiliatebase.io/track.js" data-account-id="YOUR_ACCOUNT_ID"></script>
2

Use Stripe Payment Links or Buttons (If Using)

If you use Stripe Payment Links or Buy Buttons on your Teachable site, add the tracking script on the same page so AffiliateBase can pass the generated referral ID.
html
<!-- Keep Stripe checkout elements on the same page as the AffiliateBase script. -->
<a href="https://buy.stripe.com/xxxxx">Buy now</a>

<stripe-pricing-table
  pricing-table-id="prctbl_xxx"
  publishable-key="pk_live_xxx"
></stripe-pricing-table>

<!-- For custom or redirected Stripe-hosted links, opt in explicitly. -->
<a data-affiliatebase href="https://link.payment/xxxxx">Buy now</a>
3

Connect Your Stripe Account

Pass the generated referral ID as client_reference_id to Stripe for accurate conversion tracking. Do not use the public ?via token. Connect the Stripe account used by the external supported checkout. This does not connect AffiliateBase to Teachable-hosted payments.
4

Use Teachable Tracking for School Checkout

Teachable documents that its hosted pages own school affiliate attribution. Browser storage does not pass AffiliateBase attribution into that checkout.
5

Test Your Integration

For a separate Stripe checkout, use AffiliateBase’s generated setup-test link and verify the completed checkout, sale, and commission.
javascript
// Visit your site with a test affiliate link:
// Open the exact setup-test link shown in AffiliateBase.

// Open browser console and check:
console.log(window.AffiliateBase?.referral); // Should show a generated referral ID

Why Use AffiliateBase with Teachable?

Use Teachable affiliate attribution for school checkout or verify a separate Stripe path.

Simple Script Installation

Capture referrals on a customizable page, then confirm the script is present on the published route.

Stripe Integration

Supported Stripe events can be attributed only after a compatible checkout receives the generated referral ID.

Subscription Support

Tracks subscription-based course access, including monthly and annual subscriptions.

Multiple Course Support

Support for different commission rates based on course type, price, or category.

Affiliate Dashboard

Give your affiliates a professional dashboard to track their performance and generate links.

Real-Time Tracking

Track conversions in real-time as students enroll or purchase courses.

Frequently Asked Questions

Does AffiliateBase work with Teachable?
Teachable provides school affiliate tools for its hosted checkout. AffiliateBase is only established here for a separate supported Stripe path.
How are course enrollments tracked?
Referral capture is separate from payment attribution. The external checkout must receive the generated referral ID.
Can I track subscription-based courses?
Yes! AffiliateBase tracks subscriptions through Stripe webhooks. Affiliates receive commissions for subscription sign-ups and renewals.
Can I set different commission rates for different courses?
Yes! You can configure different commission structures in AffiliateBase based on course, category, or price.
What tracking parameters does AffiliateBase support?
AffiliateBase automatically detects ?via= URL parameters by default. You can add custom token keys with data-affiliatebase-params.
Do affiliates get their own dashboard?
Yes! Affiliates get access to a professional dashboard where they can view conversions, commissions, and generate affiliate links.

Related Platform Guides

Ready to Launch Your Teachable Affiliate Program?

Get started with AffiliateBase today and start growing your Teachable school through affiliate marketing.