> ## 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 Ghost

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

<img src="https://mintcdn.com/partnero/U-Ywbk_C0k4DQ_nm/images/articles/integrate-ghost/6e76306f.webp?fit=max&auto=format&n=U-Ywbk_C0k4DQ_nm&q=85&s=5e642e12502a21d9f70bdcc7d1272309" alt="" width="2878" height="1510" data-path="images/articles/integrate-ghost/6e76306f.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 > **Ghost**. Click **Instructions**.
2. Copy the PartneroJS snippet:<img src="https://mintcdn.com/partnero/U-Ywbk_C0k4DQ_nm/images/articles/integrate-ghost/48cb27b9.webp?fit=max&auto=format&n=U-Ywbk_C0k4DQ_nm&q=85&s=a4cea0d13faaada73a5f11dd86dee2cb" alt="" width="2878" height="1520" data-path="images/articles/integrate-ghost/48cb27b9.webp" />
3. Log into your Ghost Admin panel.
4. Navigate to **Settings** → **Code Injection**.
5. In the **Site Header** section, paste the PartneroJS snippet
6. Click **Save** to apply the changes.

Alternative method: Add the script to your Ghost theme's default.hbs file in the head section.

***

### Step 2: Member sign-up tracking

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

1. On Partnero, open the Ghost 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-ghost/0e400785.webp?fit=max&auto=format&n=U-Ywbk_C0k4DQ_nm&q=85&s=99f0485325d012014fa98fd49860733d" alt="" width="2878" height="1514" data-path="images/articles/integrate-ghost/0e400785.webp" />
2. Return to Ghost and paste the code snippet under **Settings** > **Code injection** > **Site header** section.
3. Click **Save**.

***

### Step 3: Subscription tracking

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

#### Method 1: Stripe integration

**Recommended**: Since Ghost uses Stripe for membership payments, 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-ghost/055b8e1b.webp?fit=max&auto=format&n=U-Ywbk_C0k4DQ_nm&q=85&s=4225a337f88eac2ec792bfd03b3e3295" alt="" width="2876" height="1518" data-path="images/articles/integrate-ghost/055b8e1b.webp" />

#### Method 2: Ghost webhooks

Use Ghost's built-in webhooks to automatically send member and subscription data to Partnero when Stripe integration is not available. <img src="https://mintcdn.com/partnero/U-Ywbk_C0k4DQ_nm/images/articles/integrate-ghost/0357819f.webp?fit=max&auto=format&n=U-Ywbk_C0k4DQ_nm&q=85&s=81f5eca31936e0be2a7d7075997bf66f" alt="" width="2876" height="1512" data-path="images/articles/integrate-ghost/0357819f.webp" />

#### Method 3: JavaScript tracking

Track subscription payments and upgrades using Ghost's Portal events when Stripe integration is not available. <img src="https://mintcdn.com/partnero/U-Ywbk_C0k4DQ_nm/images/articles/integrate-ghost/a53155ce.webp?fit=max&auto=format&n=U-Ywbk_C0k4DQ_nm&q=85&s=cb6c04f8b36c2cdcfa28edb54781a20c" alt="" width="2878" height="1514" data-path="images/articles/integrate-ghost/a53155ce.webp" />

***

Your integration with Ghost 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.