How to Create an Affiliate Program with Wix | AffiliateBase

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:

1

Install AffiliateBase SDK

Add the AffiliateBase JavaScript SDK to your Wix site using custom code.
bash
npm install @affiliatebase/sdk
2

Add Custom Code

In your Wix Editor, go to Settings > Custom Code. Add the tracking script to the Head section.
html
<!-- 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>
3

Track Form Submissions

Add conversion tracking to Wix forms using form submission events.
javascript
// 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>
4

Track Stripe Payments

Add tracking to your Stripe payment success handler to track subscription payments and memberships.

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.

Ready to Launch Your Wix Affiliate Program?

Get started with AffiliateBase today and start growing your Wix site with affiliate marketing.