Podia Affiliate Program: Complete Integration Guide | AffiliateBase

Podia is an all-in-one platform for selling online courses, digital products, and memberships. If you're using Podia to sell your content and want to grow through affiliate marketing, AffiliateBase provides seamless integration.

This comprehensive guide will walk you through everything you need to know about setting up an affiliate program with Podia, from adding the tracking script to tracking conversions through Stripe webhooks.

Whether you're selling online courses, digital downloads, or membership subscriptions, an affiliate program can help you acquire new customers while rewarding your partners for successful referrals.

Follow these steps to integrate AffiliateBase with Podia:

1

Add the Tracking Script

Add the AffiliateBase tracking script to your Podia site. Go to **Settings > Website > Tracking Code** and paste this script in the **Header** section. Using jsDelivr CDN ensures fast global delivery and automatic updates. No hosting required.
html
<script>(function(w,r){w._abq=w._abq||[];w[r]=w[r]||function(){(w[r].q=w[r].q||[]).push(arguments)}})(window,'affiliatebase');</script>
<script async src="https://cdn.jsdelivr.net/npm/affiliatebase-tracking@1/src/index.js" data-org-id='YOUR_ORG_ID'></script>
2

Add Stripe Payment Links Support (If Using)

If you use Stripe Payment Links or Buy Buttons on your Podia site, add this script to automatically pass the referral ID.
html
<!-- Add to your site alongside the tracking script -->
<script>
  document.addEventListener('DOMContentLoaded', function() {
    setTimeout(function() {
      const referralId = window.affiliatebase_referral || '';
      if (!referralId) return;

      // Update Stripe Payment Links
      document.querySelectorAll('a[href^="https://buy.stripe.com/"]').forEach(link => {
        const url = new URL(link.href);
        if (!url.searchParams.has('client_reference_id')) {
          url.searchParams.set('client_reference_id', referralId);
          link.href = url.toString();
        }
      });

      // Update Stripe Pricing Tables
      document.querySelectorAll('stripe-pricing-table').forEach(table => {
        table.setAttribute('client-reference-id', referralId);
      });

      // Update Stripe Buy Buttons
      document.querySelectorAll('stripe-buy-button').forEach(button => {
        button.setAttribute('client-reference-id', referralId);
      });
    }, 1500);
  });
</script>
3

Connect Your Stripe Account

Pass the referral ID as client_reference_id to Stripe for accurate conversion tracking. In your AffiliateBase dashboard, go to **Settings > Integrations > Stripe** and connect your Stripe account. This enables automatic conversion tracking via Stripe webhooks.
4

Pass Referral ID to Checkout

For Podia's built-in checkout, add a custom script to capture and store the referral ID for conversion attribution.
html
<!-- Add to Footer Tracking Code -->
<script>
  // Store referral ID for checkout
  if (window.affiliatebase_referral) {
    // Store in localStorage for use at checkout
    localStorage.setItem('affiliatebase_referral', window.affiliatebase_referral);
  }
</script>
5

Test Your Integration

Visit your Podia site with a test affiliate link and verify tracking is working.
javascript
// Visit your site with a test affiliate link:
// https://yourstore.podia.com?via=test123

// Open browser console and check:
console.log(window.affiliatebase_referral); // Should show "test123"

Why Use AffiliateBase with Podia?

AffiliateBase is the perfect solution for Podia creators who want powerful affiliate tracking without complexity.

Simple Script Installation

Add a single script tag to your Podia site. No complex webhook configuration required.

Multi-Product Support

Tracks all Podia product types: online courses, digital downloads, and membership subscriptions.

Stripe Integration

Automatic conversion tracking through Stripe webhooks. Every payment is attributed correctly.

Subscription Support

Tracks membership subscriptions, including monthly and annual plans.

Affiliate Dashboard

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

Real-Time Tracking

Track conversions in real-time as customers purchase or enroll.

Frequently Asked Questions

Does AffiliateBase work with Podia?
Yes! AffiliateBase integrates with Podia via a simple tracking script and Stripe webhooks. It automatically tracks course enrollments, digital product sales, and membership subscriptions.
Can I track all Podia product types?
Yes! AffiliateBase tracks online courses, digital downloads, and membership subscriptions through Stripe webhooks.
How are course enrollments tracked?
AffiliateBase captures the referral ID when a visitor arrives via an affiliate link. When they purchase through Stripe, the conversion is automatically attributed.
Can I track subscription-based memberships?
Yes! AffiliateBase tracks Podia membership subscriptions through Stripe webhooks. Affiliates receive commissions for subscription sign-ups and renewals.
What tracking parameters does AffiliateBase support?
AffiliateBase automatically detects ?via=, ?ref=, ?affiliate=, and ?a= URL parameters.
Do affiliates get their own dashboard?
Yes! Affiliates get access to a professional dashboard where they can view conversions, commissions, and generate affiliate links.

Ready to Launch Your Podia Affiliate Program?

Get started with AffiliateBase today and start growing your Podia store through affiliate marketing.