Skip to main content

Memberstack Affiliate Program: Stripe Tracking Guide

Verify the Memberstack-to-Stripe handoff

Add referral metadata automatically to Memberstack checkout on Webflow

Best fit
Memberstack sites using its DOM checkout and the same Stripe account connected to AffiliateBase.
Checkout handoff
AffiliateBase wraps purchasePlansWithCheckout and adds the generated referral ID to metadataForCheckout.
Proof required
Complete one referred checkout and confirm the attributed Stripe sale and commission in AffiliateBase.

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.

AffiliateBase automatically integrates with Memberstack’s DOM checkout on Webflow. Install the AffiliateBase tracking script on your site and keep your existing Memberstack checkout buttons.

Before Memberstack starts checkout, the AffiliateBase tracker adds the generated referral ID to metadataForCheckout.affiliatebase_referral_id. Checkout still continues without referral metadata if attribution is unavailable or takes too long.

Connect the same Stripe account used by Memberstack and complete the verification checklist. A referral ID in the browser proves only that tracking ran; the completed checkout confirms whether the payment was attributed. For custom SDK calls and other checkout paths, see the Stripe integration guide.

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. 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

Keep Your Memberstack Checkout Buttons

For Memberstack on Webflow, use your existing checkout buttons. The AffiliateBase tracker automatically connects to Memberstack’s DOM checkout, so no second AffiliateBase snippet or custom checkout handler is required.
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. Use the same Stripe account that handles your Memberstack payments.
4

Test Your Integration

Open the setup-test link from AffiliateBase, then follow the tracking verification checklist through checkout. Confirm the referred visit and checkout attribution in AffiliateBase; a referral ID in the browser alone does not confirm a credited payment.
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?

Use your existing Webflow membership checkout to run an affiliate program.

Automatic Webflow Checkout Support

AffiliateBase adds the referral ID when Memberstack starts checkout from your existing Webflow buttons.

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.

Frequently Asked Questions

Does AffiliateBase work with Memberstack?
Yes. AffiliateBase automatically adds its generated referral ID to Memberstack’s DOM checkout metadata. Install the AffiliateBase script, connect the same Stripe account, and verify the complete checkout path.
Does it work with Webflow and Framer?
AffiliateBase’s automatic Memberstack checkout adapter is designed for Memberstack’s DOM checkout, including Webflow sites. You can install AffiliateBase on Framer too, but verify the specific checkout path you use before relying on payment attribution.
How are membership sign-ups tracked?
When Memberstack starts checkout, AffiliateBase adds the generated referral ID to the checkout metadata. AffiliateBase then uses supported Stripe events to attribute eligible payments. If attribution is unavailable or times out, checkout continues without AffiliateBase referral metadata.
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 Memberstack Affiliate Program?

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