Create an Affiliate Program for Your Wix Site
Step-by-step guide to integrating affiliate tracking in your Wix website
Wix is a leading cloud-based web development platform that allows users to create HTML5 websites and mobile sites. If you're running a Wix 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 Wix, from custom code integration to form tracking and Stripe payment integration.
Whether you're running a business website, online store, or portfolio, an affiliate program can help you grow your audience and increase revenue.
Follow these steps to integrate AffiliateBase with your Wix site:
Install AffiliateBase SDK
npm install @affiliatebase/sdk
Add Custom Code
<!-- Add to Wix Settings > Custom Code > Head -->
<script src="https://cdn.affiliatebase.com/sdk.js"></script>
<script>
window.AffiliateBase.init({
apiKey: 'YOUR_API_KEY'
});
</script>
Track Form Submissions
// Add to Custom Code > Footer
<script>
$w.onReady(function () {
// Track form submissions
$w('#contactForm').onSubmit(async (event) => {
await window.AffiliateBase.trackConversion({
type: 'form_submission',
formName: 'contact',
});
});
});
</script>
Track Stripe Payments
Why Use AffiliateBase with Wix?
AffiliateBase is the perfect solution for Wix users who want to add affiliate marketing to their websites.
Wix Custom Code
Easy integration using Wix's custom code feature for tracking and conversions.
Form Integration
Track conversions from Wix forms, including contact forms and lead capture forms.
Stripe Integration
Works seamlessly with Stripe for tracking subscription payments and membership purchases.
No Coding Required
Simple setup that works with any Wix template and design.
Frequently Asked Questions
Do I need Wix Premium to use AffiliateBase? ▼
Yes, you'll need a Wix Premium plan to add custom code to your site.
Can I track conversions from Wix forms? ▼
Yes! You can track form submissions, sign-ups, and other conversions using our JavaScript SDK and Wix's form events.
Does AffiliateBase work with Stripe? ▼
Yes, you can track subscription payments and membership purchases from Stripe using our tracking code.
Will the code affect my Wix site's performance? ▼
No, our tracking code is lightweight and optimized. It won't slow down your Wix site.
Related Platform Guides
Create an Affiliate Program with Webflow
Complete guide to setting up an affiliate program in Webflow. Step-by-step integration with Webflow CMS, custom code, and forms for no-code developers.
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 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 plugins, themes, and Stripe for WordPress SaaS and membership sites.
Ready to Launch Your Wix Affiliate Program?
Get started with AffiliateBase today and start growing your Wix site with affiliate marketing.