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

This guide explains how to integrate Partnero affiliate tracking into your Gumroad digital product sales.

These instructions can also be found on your Partnero account, under  **Integration** > **Guides** tab > **Gumroad**:<img src="https://mintcdn.com/partnero/U-Ywbk_C0k4DQ_nm/images/articles/integrate-gumroad/525b2760.webp?fit=max&auto=format&n=U-Ywbk_C0k4DQ_nm&q=85&s=184f7ffe1a2abc04902b4166576df249" alt="" width="2878" height="1500" data-path="images/articles/integrate-gumroad/525b2760.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. Go to **Integration** > **Guides** tab > **Gumroad**. Click **Instructions**.
2. Copy the PartneroJS snippet:<img src="https://mintcdn.com/partnero/U-Ywbk_C0k4DQ_nm/images/articles/integrate-gumroad/818f9b67.webp?fit=max&auto=format&n=U-Ywbk_C0k4DQ_nm&q=85&s=167b6e948a6028cec010925e7561d163" alt="" width="2866" height="1496" data-path="images/articles/integrate-gumroad/818f9b67.webp" />
3. On Gumroad, go to **Settings** → **Advanced**
4. Find the **Google Analytics ID** section
5. Paste the PartneroJS snippet into the **Custom Javascript** field
6. Click **Save Changes**.

   Alternative method: If you have your own website linking to Gumroad products, add the PartneroJS snippet to your website's header before directing users to Gumroad.

***

### Step 2: Customer sign-up tracking

Since Gumroad handles the checkout process, you need to capture customer signups before they leave your site to make a purchase. This ensures proper partner attribution.

Copy the customer sign-up tracking from Partnero integration guide:<img src="https://mintcdn.com/partnero/U-Ywbk_C0k4DQ_nm/images/articles/integrate-gumroad/3a0784b3.webp?fit=max&auto=format&n=U-Ywbk_C0k4DQ_nm&q=85&s=1f667a3559dc60580c2fd62b7e3305a1" alt="" width="2874" height="1494" data-path="images/articles/integrate-gumroad/3a0784b3.webp" />

Where to add this script:

1. **Your own website** - Add to pages where you have Gumroad product links or buy buttons
2. Before the closing \</body> tag or in your website's footer
3. On pages with: Product descriptions, sales pages, or anywhere users click to go to Gumroad
4. Not in Gumroad - This goes on *your* site, not in Gumroad's Custom Javascript field

⚠️ Important: This must be on the same domain where you installed the PartneroJS snippet.

***

### Step 3: Sales tracking

Partnero offers three sales tracking methods, each with unique instructions. Select one that works best for your setup and follow the instructions provided in the Gumroad integration guide under **Integration** > **Guides** tab > **Gumroad**.

#### Method 1: Webhooks

Use Gumroad webhooks to automatically send purchase data to Partnero for reliable transaction tracking.<img src="https://mintcdn.com/partnero/U-Ywbk_C0k4DQ_nm/images/articles/integrate-gumroad/9e15aca4.webp?fit=max&auto=format&n=U-Ywbk_C0k4DQ_nm&q=85&s=9e926d77e52751eae3d240b13ff85843" alt="" width="2874" height="1498" data-path="images/articles/integrate-gumroad/9e15aca4.webp" />

#### Method 2: Manual ping setup

If webhooks are not available, you can use Gumroad's Ping feature for server-side transaction tracking. This requires technical setup:

#### <img src="https://mintcdn.com/partnero/U-Ywbk_C0k4DQ_nm/images/articles/integrate-gumroad/29e9eaef.webp?fit=max&auto=format&n=U-Ywbk_C0k4DQ_nm&q=85&s=cf4ea1c27a31d9b3010b2ead1a285235" alt="" width="2878" height="1500" data-path="images/articles/integrate-gumroad/29e9eaef.webp" />Method 3: JavaScript tracking

Track sales using JavaScript when webhooks are not available. This method works for customers who purchase directly on Gumroad pages.

<img src="https://mintcdn.com/partnero/U-Ywbk_C0k4DQ_nm/images/articles/integrate-gumroad/838aa566.webp?fit=max&auto=format&n=U-Ywbk_C0k4DQ_nm&q=85&s=f87f619b181b8537883eef0ed8ebf6c0" alt="" width="2872" height="1496" data-path="images/articles/integrate-gumroad/838aa566.webp" />

***

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