Webflow is a powerful no-code platform for building beautiful, responsive websites. If you're running a Webflow site and want to monetize it through an affiliate program, AffiliateBase makes it simple.
This comprehensive guide will walk you through everything you need to know about setting up an affiliate program with Webflow, from custom code integration to form submissions and Stripe payment tracking.
Whether you're building a marketing site, membership platform, or SaaS landing page with Stripe, an affiliate program can help you grow your user base and increase revenue.
Follow these steps to integrate AffiliateBase with your Webflow site:
Add 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://cdn.jsdelivr.net/npm/affiliatebase-tracking@1/src/index.js" data-org-id='YOUR_ORG_ID'></script>
Test the Script
// Open browser console and check for:
console.log(window.AffiliateBase); // Should show the tracking object
console.log(window.affiliatebase_referral); // Empty string or referral ID
Integrate with Stripe Payment Links
<!-- 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>
Track Form Submissions (Optional)
<!-- Add data-affiliatebase="true" to your Webflow form wrapper -->
<!-- In Webflow Designer: select the Form Block, go to Settings, add Custom Attribute -->
<!-- Name: data-affiliatebase, Value: true -->
<!-- The referral ID will be automatically injected as a hidden field -->
Verify Tracking
// Visit your site with a test affiliate link:
// https://yoursite.webflow.io?via=test123
// Check the console:
console.log(window.affiliatebase_referral); // Should show "test123"
Why Use AffiliateBase with Webflow?
AffiliateBase is the perfect solution for Webflow users who want to add affiliate marketing without leaving the no-code platform.
No-Code Integration
Copy and paste the script in Webflow's custom code settings. No development required.
Stripe Integration
Works seamlessly with Stripe Payment Links, Buy Buttons, and Pricing Tables.
Form Integration
Track conversions from Webflow forms by adding a single attribute.
CMS Compatible
Works with Webflow CMS collections and dynamic content.
Frequently Asked Questions
Do I need coding knowledge to use AffiliateBase with Webflow?
Can I track conversions from Webflow forms?
Does AffiliateBase work with Stripe on Webflow?
What tracking parameters does AffiliateBase support?
Related Platform Guides
Create an Affiliate Program for Your Squarespace Site
Complete guide to setting up an affiliate program for your Squarespace site. Step-by-step integration with Squarespace code injection and forms for no-code users.
Create an Affiliate Program for Your Wix Site
Complete guide to setting up an affiliate program for your Wix site. Step-by-step integration with Wix custom code, forms, and Wix Stores for website owners.
Create an Affiliate Program with Next.js
Complete guide to setting up an affiliate program in Next.js. Step-by-step integration with code examples and best practices for Next.js developers.
Create an Affiliate Program with Nuxt
Complete guide to setting up an affiliate program in Nuxt. Step-by-step integration with Nuxt 3, server routes, and composables for Vue developers.
Create an Affiliate Program with WordPress
Complete guide to setting up an affiliate program in WordPress. Step-by-step integration with WordPress themes, plugins, and WooCommerce for any WordPress site.
Ready to Launch Your Webflow Affiliate Program?
Get started with AffiliateBase today and start growing your Webflow site with affiliate marketing.