This guide is for merchants building their own affiliate program around a React storefront or SaaS app. React handles the browser UI; your backend still owns Stripe Checkout creation.
Install AffiliateBase in the document shell used by every affiliate landing page. When a buyer starts checkout, submit the generated referral ID with the request to your backend. The public ?via token is not the Stripe client_reference_id.
If your React application uses a framework, follow that framework’s script and server-route conventions. Then use the Stripe guide and verification checklist.
Wire the browser and checkout backend together:
Locate the Checkout Boundary
Install the Tracking Script
<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://app.affiliatebase.io/track.js" data-account-id='YOUR_ACCOUNT_ID'></script>
Send Referral State to the Backend
Test a Fresh Referral
Confirm the Commission
What React Owns in the Flow
Browser Capture
The React page is where the affiliate click becomes a generated referral ID.
Explicit API Handoff
Your checkout request carries referral state to protected server code.
Framework Flexibility
The same contract works with a custom backend or a React framework’s server routes.
React Affiliate Tracking Questions
Is there an AffiliateBase React package?
Can React create Stripe Checkout securely?
How do I verify attribution?
Related Platform Guides
Add an Affiliate Program to Next.js
Install affiliate tracking in Next.js, hand the generated referral ID to a server-created Stripe Checkout Session, and verify attribution.
Add an Affiliate Program to Nuxt
Load affiliate tracking in Nuxt, pass the generated referral ID to a server route, and verify a Stripe sale and commission.
Create an Affiliate Program with WordPress
Install AffiliateBase on WordPress, choose a supported Stripe checkout, and verify referral attribution without assuming WooCommerce or plugin compatibility.
Create an Affiliate Program with Webflow
Add affiliate tracking to a published Webflow site, pair it with a supported Stripe checkout, and verify referral attribution before launch.
Add Affiliate Tracking to a Vue Checkout
Capture affiliate referrals in Vue, send the generated referral ID to your checkout backend, and verify the Stripe sale and commission.
Prove Your React Checkout Handoff
Test the exact referral and checkout route customers will use.