Skip to main content

Restrict Content Pro Affiliate Tracking with Stripe

Know what must work before you launch

Capture the click on WordPress and test the membership payment handoff

Best fit
Teams evaluating AffiliateBase for a Restrict Content Pro affiliate workflow.
Checkout handoff
The checkout path must receive the generated AffiliateBase referral ID.
Proof required
Complete one referred checkout and confirm the attributed sale and commission.

Follow the attribution evidence

Illustrative scenario · fictional values

  1. Referred visit

    ?via=partner

    AffiliateBase captures the visit and generates a referral record.

  2. Checkout handoff

    referral ID

    The checkout must carry the generated identifier into Stripe.

  3. Paid event

    $99 paid

    A supported Stripe event confirms the attributed payment.

  4. Commission

    $19.80 due

    An eligible attributed sale creates the commission record.

  5. Payout prep

    Payout ready

    Review the commission and prepare the next step with your payout provider.

This guide is for WordPress merchants running a program for their own Restrict Content Pro memberships. AffiliateBase can capture the landing-page referral, while the plugin controls checkout and subscription state.

Do not infer compatibility from the presence of Stripe. The plugin checkout must pass AffiliateBase’s generated referral ID, and recurring payments must be tested against the merchant’s commission rules.

If your site uses a same-page Stripe Payment Link or custom Checkout Session, follow the Stripe guide. Otherwise keep compatibility marked unverified until an end-to-end test creates a sale and commission.

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. Use the pinned jsDelivr tracking URL for the latest published AffiliateBase release.
html
<script async src="https://app.affiliatebase.io/track.js" data-account-id="YOUR_ACCOUNT_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://app.affiliatebase.io/track.js" data-account-id='YOUR_ACCOUNT_ID'></script>
<?php
});
3

Connect Your Stripe Account

Pass the generated referral ID as client_reference_id to Stripe for accurate conversion tracking. Do not use the public ?via token. Connect the Stripe account used by checkout, then verify that Restrict Content Pro passes the generated referral ID.
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:
// Open the exact setup-test link shown in AffiliateBase.

// Open browser console and check:
console.log(window.AffiliateBase?.referral); // Should show a generated referral ID

Why Use AffiliateBase with Restrict Content Pro?

Capture the referral on WordPress, then verify the plugin-controlled checkout separately.

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?
AffiliateBase can capture the site visit. Restrict Content Pro checkout and renewal attribution require a verified generated-ID handoff to Stripe.
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= URL parameters by default. You can add custom token keys with data-affiliatebase-params.
Do affiliates get their own dashboard?
Yes! Affiliates get access to a professional dashboard where they can view conversions, commissions, and generate affiliate links.

Related Platform Guides

Ready to Launch Your Restrict Content Pro Affiliate Program?

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