Skip to main content

Memberstack Affiliate Program: Stripe Tracking Guide

This guide is for site owners using Memberstack for their own memberships. Memberstack supports custom site scripts and Stripe-powered plans, but those facts alone do not prove AffiliateBase checkout attribution.

Install AffiliateBase on the same Webflow, Framer, or custom site where visitors arrive. Then determine whether your checkout path can receive AffiliateBase’s generated referral ID. Memberstack’s Developer Hub documents its current site and API surfaces.

If checkout is not merchant-controlled, treat compatibility as unverified. If you create a supported Stripe Checkout Session yourself, use the Stripe guide and complete the verification checklist.

Follow these steps to integrate AffiliateBase with Memberstack:

1

Add the Tracking Script

Add the AffiliateBase tracking script to your website. For Webflow, go to **Site Settings > Custom Code > Head Code**. For other platforms, add to your site's header. Install once with the stable tracking URL and receive compatible updates automatically.
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://app.affiliatebase.io/track.js" data-account-id='YOUR_ACCOUNT_ID'></script>
2

Use Stripe Payment Links or Buttons (If Using)

If you use Stripe Payment Links or Buy Buttons alongside Memberstack, add the tracking script on the same page so AffiliateBase can pass the generated referral ID.
html
<!-- Keep Stripe checkout elements on the same page as the AffiliateBase script. -->
<a href="https://buy.stripe.com/xxxxx">Buy now</a>

<stripe-pricing-table
  pricing-table-id="prctbl_xxx"
  publishable-key="pk_live_xxx"
></stripe-pricing-table>

<!-- For custom or redirected Stripe-hosted links, opt in explicitly. -->
<a data-affiliatebase href="https://link.payment/xxxxx">Buy now</a>
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 account used by the checkout you can supply with the generated referral ID. This does not prove Memberstack checkout compatibility.
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 Memberstack?

Treat the site script and Memberstack checkout as separate compatibility checks.

Works with Webflow & Framer

Perfect for Memberstack users building on Webflow or Framer. Track conversions across your no-code stack.

Simple Script Installation

Load the account-specific script on the published Webflow, Framer, or custom site and confirm it runs.

Stripe Integration

Process supported Stripe events only after the checkout carries the generated referral ID.

Subscription Lifecycle Tracking

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

Affiliate Dashboard

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

Real-Time Tracking

Track conversions in real-time as members join or upgrade.

Ready to get started?

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

Start for free

Frequently Asked Questions

Does AffiliateBase work with Memberstack?
Memberstack site-script support does not establish checkout attribution. AffiliateBase requires a compatible Stripe checkout that receives the generated referral ID.
Does it work with Webflow and Framer?
You can install a tracking script on supported Webflow or Framer pages, but the Memberstack checkout handoff remains a separate test.
How are membership sign-ups tracked?
The checkout must receive the generated referral ID. A captured visit alone does not attribute a Memberstack payment.
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.

Ready to Launch Your Memberstack Affiliate Program?

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