How to Set Up Affiliate Tracking with Stripe in 5 Minutes
How to Set Up Affiliate Tracking with Stripe
Stripe is the most popular payment processor for SaaS companies, and it integrates seamlessly with affiliate tracking platforms. Here is how to get it working in under 5 minutes.
What You Need
- A Stripe account (free to create)
- A PartnerForge account (free plan available)
- Your website or SaaS application
Step 1: Connect Stripe via OAuth
PartnerForge uses Stripe Connect OAuth, which means:
- No API keys to copy-paste
- Read-only access to your webhook events
- 2-click authorization flow
- Automatic webhook registration
Simply click "Connect Stripe" in your dashboard. You will be redirected to Stripe to authorize the connection.
Step 2: Install the Tracking Script
Add one line of JavaScript to your website:
<script src="https://partner-forge.com/t.js" data-program="YOUR_PROGRAM_ID" defer></script>
This script:
- Reads the referral parameter from the URL
- Sets a first-party cookie for attribution
- Weighs only 2KB gzipped
- Loads asynchronously (no performance impact)
Step 3: Configure Your Program
Set your program parameters:
- Commission type: Percentage or fixed amount
- Commission rate: Typically 15-30% for SaaS
- Cookie window: How long the referral cookie lasts (30-90 days recommended)
- Recurring commissions: Whether affiliates earn on subscription renewals
- Approval mode: Auto-approve or manual review
How Tracking Works
- Visitor clicks affiliate link → cookie is set
- Visitor completes Stripe Checkout → webhook fires
- PartnerForge matches the webhook to the cookie
- Commission is created and held per trust-based rules
- After hold period, commission is approved for payout
Supported Stripe Integrations
- Stripe Checkout
- Stripe Payment Links
- Stripe Pricing Tables
- Custom Stripe integrations (via checkout session metadata)
- Coupon code attribution (no cookie needed)
Connect Stripe and launch your affiliate program in minutes.