> ## Documentation Index
> Fetch the complete documentation index at: https://docs.partnero.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Integrate Memberstack

This guide explains how to integrate Partnero into your Memberstack membership site to track referral-driven memberships and subscriptions. These instructions can also be found on your Partnero account, under **Integration** > **Guides** tab > **Memberstack**:

<img src="https://mintcdn.com/partnero/U-Ywbk_C0k4DQ_nm/images/articles/integrate-memberstack/38e7870b.webp?fit=max&auto=format&n=U-Ywbk_C0k4DQ_nm&q=85&s=71150c8c4575a67aca688b99c864c5b6" alt="" width="2878" height="1520" data-path="images/articles/integrate-memberstack/38e7870b.webp" />

***

### Step 1: Start tracking website visitors

To track visitors on your website, you need to install the PartneroJS snippet as custom code.

#### Install the PartneroJS Snippet

1. On Partnero, go to **Integration** > **Guides** tab > **Memberstack**. Click **Instructions**.
2. Copy the PartneroJS snippet:<img src="https://mintcdn.com/partnero/U-Ywbk_C0k4DQ_nm/images/articles/integrate-memberstack/13b22518.webp?fit=max&auto=format&n=U-Ywbk_C0k4DQ_nm&q=85&s=0a0b98f1ad390efd1df004c42dd4a54f" alt="" width="2872" height="1514" data-path="images/articles/integrate-memberstack/13b22518.webp" />
3. Log into your **Memberstack** dashboard.
4. Navigate to **Settings** → **Custom Code**.
5. In the **Site Header Code** section, paste the PartneroJS snippet
6. Click **Save** to apply the changes.

Alternative method: If you're using Webflow, Framer, or another platform with Memberstack, add the script to your platform's custom code section.

***

### Step 2: Member sign-up tracking

⚠️ Important: You must track member signups with partner attribution before Stripe integration will work.

On Partnero, open the Memberstack integration guide and copy the snippet provided under the Member signup tracking section: <img src="https://mintcdn.com/partnero/U-Ywbk_C0k4DQ_nm/images/articles/integrate-memberstack/57136f34.webp?fit=max&auto=format&n=U-Ywbk_C0k4DQ_nm&q=85&s=d6253995df2bd85144c18d96f75ad42d" alt="" width="2874" height="1518" data-path="images/articles/integrate-memberstack/57136f34.webp" />

Return to Memberstack. Navigate to **Settings** > **Custom code** > **Site Header Code**. Paste the snippet and save.

***

### Step 3: Payment tracking

Partnero offers three payment tracking methods. Select one that works best for your setup and follow the instructions provided in the Memberstack integration guide under   **Integration** > **Guides** tab > **Memberstack**.

#### Method 1: Stripe integration

**Recommended**: Since Memberstack uses Stripe for payment processing, connecting your Stripe account directly to Partnero provides the most reliable tracking.

**Prerequisite**: Member signup tracking (above) must be implemented first.

<img src="https://mintcdn.com/partnero/U-Ywbk_C0k4DQ_nm/images/articles/integrate-memberstack/b2725d55.webp?fit=max&auto=format&n=U-Ywbk_C0k4DQ_nm&q=85&s=7143f5bfd2838ee1c20eefed806c5417" alt="" width="2878" height="1522" data-path="images/articles/integrate-memberstack/b2725d55.webp" />

To authorize Stripe:

1. Navigate to **Integration** and scroll down to **Apps & Integrations**.
2. Click **Authorize** next to Stripe:<img src="https://mintcdn.com/partnero/U-Ywbk_C0k4DQ_nm/images/articles/integrate-memberstack/bdbafda4.webp?fit=max&auto=format&n=U-Ywbk_C0k4DQ_nm&q=85&s=9337d074cedd586aab8a880f266c7ea9" alt="" width="1754" height="864" data-path="images/articles/integrate-memberstack/bdbafda4.webp" />
3. There are two authorization methods available: OAauth or API key.
   <img src="https://mintcdn.com/partnero/U-Ywbk_C0k4DQ_nm/images/articles/integrate-memberstack/c57e49a2.webp?fit=max&auto=format&n=U-Ywbk_C0k4DQ_nm&q=85&s=2df72c090a0f455b3c8de2c06459cecc" alt="" width="2874" height="1414" data-path="images/articles/integrate-memberstack/c57e49a2.webp" />**OAuth**: click Authorize to be redirected to your Stripe account to grant Partnero access.

   **API key**:  Enter your Stripe API key. Go to Developers > API keys in your Stripe dashboard to find your Stripe API key.
4. Click **Authorize**.

***

Method 2: JavaScript tracking

Track membership payments and subscription upgrades using Memberstack's JavaScript events when Stripe integration is not available. <img src="https://mintcdn.com/partnero/U-Ywbk_C0k4DQ_nm/images/articles/integrate-memberstack/2940497d.webp?fit=max&auto=format&n=U-Ywbk_C0k4DQ_nm&q=85&s=5cddfcad37294233e1c9d105c32fe721" alt="" width="2876" height="1520" data-path="images/articles/integrate-memberstack/2940497d.webp" />

Method 3: Webhooks

For the most reliable tracking when Stripe integration isn't available, use webhooks to automatically receive membership and payment notifications. <img src="https://mintcdn.com/partnero/U-Ywbk_C0k4DQ_nm/images/articles/integrate-memberstack/ec27e681.webp?fit=max&auto=format&n=U-Ywbk_C0k4DQ_nm&q=85&s=43bf7be6677dac6ba37708f5005f149f" alt="" width="2876" height="1514" data-path="images/articles/integrate-memberstack/ec27e681.webp" />

***

Your integration with Memberstack is now complete! We strongly recommend testing the integration by purchasing through an affiliate link.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.