Restrict Content Pro Affiliate Program: Integration Guide | AffiliateBase

Restrict Content Pro is a popular WordPress membership plugin that helps you create membership sites, restrict content, and manage subscriptions. If you're using Restrict Content Pro and want to grow through affiliate marketing, AffiliateBase provides seamless integration.

This comprehensive guide will walk you through everything you need to know about setting up an affiliate program with Restrict Content Pro, from adding the tracking script to tracking membership sign-ups through Stripe webhooks.

Whether you're selling premium content, online courses, or subscription memberships, an affiliate program can help you acquire new members while rewarding your partners for successful referrals.

Follow these steps to integrate AffiliateBase with Restrict Content Pro:

1

Add the Tracking Script

Add the AffiliateBase tracking script to your WordPress site. You can add it via your theme's header or using a header scripts plugin. Using jsDelivr CDN ensures fast global delivery and automatic updates. No hosting required.
html
<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>
2

Add via functions.php (Alternative)

Alternatively, add the script using WordPress hooks in your theme's functions.php file.
php
// Add to your theme's functions.php
add_action('wp_head', function() {
?>
<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>
<?php
});
3

Connect Your Stripe Account

Pass the referral ID as client_reference_id to Stripe for accurate conversion tracking. In your AffiliateBase dashboard, go to **Settings > Integrations > Stripe** and connect your Stripe account. This enables automatic conversion tracking via Stripe webhooks.
4

Test Your Integration

Visit your site with a test affiliate link and verify tracking is working.
javascript
// Visit your site with a test affiliate link:
// https://yoursite.com?via=test123

// Open browser console and check:
console.log(window.affiliatebase_referral); // Should show "test123"

Why Use AffiliateBase with Restrict Content Pro?

AffiliateBase is the perfect solution for Restrict Content Pro site owners who want powerful affiliate tracking.

Simple Script Installation

Add a single script tag to your WordPress site. No complex plugin configuration required.

Multiple Payment Gateway Support

Works with Stripe, PayPal, and other payment gateways supported by Restrict Content Pro.

Subscription Lifecycle Tracking

Tracks subscription renewals, upgrades, and downgrades. Affiliates receive commissions for recurring revenue.

Multiple Membership Levels

Support for different commission rates based on membership tiers.

WordPress Native

Works with your existing WordPress setup. No additional plugins required.

Affiliate Dashboard

Give your affiliates a professional dashboard to track their performance and generate links.

Frequently Asked Questions

Does AffiliateBase work with Restrict Content Pro?
Yes! AffiliateBase integrates with Restrict Content Pro via a simple tracking script and Stripe webhooks. It automatically tracks membership sign-ups and renewals.
How are subscription renewals tracked?
AffiliateBase tracks subscription renewals through Stripe webhooks. Affiliates receive commission for renewals.
Does it work with Stripe and PayPal?
Yes! AffiliateBase integrates with Stripe. For PayPal, conversions are tracked when payments are processed through Restrict Content Pro.
Can I set different commission rates for different membership levels?
Yes! You can configure different commission structures in AffiliateBase based on membership level or any other criteria.
What tracking parameters does AffiliateBase support?
AffiliateBase automatically detects ?via=, ?ref=, ?affiliate=, and ?a= URL parameters.
Do affiliates get their own dashboard?
Yes! Affiliates get access to a professional dashboard where they can view conversions, commissions, and generate affiliate links.

Ready to Launch Your Restrict Content Pro Affiliate Program?

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