# Whop

> Connect Whop to AnyTrack to track purchases, attribute sales to your campaigns, and send conversion data to Google Ads, Facebook, and TikTok via the Conversion API.

## Whop Integration Overview

The Whop and AnyTrack integration tracks purchases from your Whop checkout and attributes them to the campaigns that drove the sale. Whop sends each successful payment to AnyTrack through a webhook, and AnyTrack forwards the conversion to your ad platforms (Google Ads, Facebook `Conversion API`, and TikTok API) so your campaigns optimize on real revenue.

<Prerequisites
  title="Before you begin"
  items={[
    { label: "You have an active AnyTrack account", done: true },
    { label: "You have a Whop account with access to webhook settings", done: true },
    { label: "The AnyTrack Tracking Tag is installed on the pages that lead to your Whop checkout", done: true },
  ]}
/>

### How the Whop AnyTrack integration works

<SimpleStepper>
  <SimpleStep header="Step 1: Capture the visit">
    When visitors land on your pages, the AnyTrack Tracking Tag captures traffic source and first-party data.
  </SimpleStep>

  <SimpleStep header="Step 2: Visitor checks out on Whop">
    The visitor completes a payment on your Whop checkout.
  </SimpleStep>

  <SimpleStep header="Step 3: Whop notifies AnyTrack">
    Whop sends the successful payment to AnyTrack through a webhook, including the order and buyer details.
  </SimpleStep>

  <SimpleStep header="Step 4: AnyTrack sends the conversion to ad platforms">
    AnyTrack records the `Purchase`, attributes it to the campaign, and forwards it to your connected ad platforms via the Conversion API.
  </SimpleStep>
</SimpleStepper>

### Technical details

| Reference          | Value       | Information                                                              |
| ------------------ | :---------- | :---------------------------------------------------------------------- |
| Integration Method | `Webhook`   | Whop sends successful payments to AnyTrack via a webhook URL.            |
| Tracking Tag       | `Required`  | Install the AnyTrack Tag on the pages that lead to your Whop checkout.   |

### Tracked Events

| Event Name | Details                                      | Data Source  |
| :--------- | :------------------------------------------- | :----------- |
| `PageView` | A visitor lands on a page with the AnyTrack Tag | AnyTrack JS Tag |
| `Purchase` | A buyer completes a payment on Whop          | Whop Webhook |

## Setup Guide

### Step 1: Install the Whop integration in AnyTrack

1. Go to the **[Integration Catalog](https://dashboard.anytrack.io/catalog/)** and search for **Whop**.
2. Click **Install Integration**.
3. Copy the **Webhook URL** provided by the integration.

### Step 2: Add the webhook in Whop

1. Log in to your **Whop account** and open your webhook settings.
2. Add a new webhook and paste the **AnyTrack Webhook URL**.
3. Select the **successful payment** event as the trigger.
4. Save the webhook configuration.

### Step 3: Confirm the Tracking Tag captures the journey

For AnyTrack to attribute a Whop purchase to a campaign, the [AnyTrack Tracking Tag](/docs/install-anytrack-tag) must be installed on the landing or funnel pages your visitors pass through before checkout. Without it, the purchase is recorded but cannot be matched to a traffic source.

<Callout icon="📘" theme="info">
**Using ClickFunnels 2.0 with Whop checkout?**

If your funnel is built in ClickFunnels 2.0 and Whop only handles the checkout, follow the dedicated [ClickFunnels 2.0 and Whop Checkout](/docs/whop-checkout) guide. It adds a checkout script that fires `InitiateCheckout` with the lead's details before the Whop payment.
</Callout>

## Validate your integration

1. Open the **Event Log** in your AnyTrack dashboard.
2. Complete a test purchase on your Whop checkout.
3. Confirm the `Purchase` event appears with the order details.

<Callout icon="🔎" theme="default">
  ### Install the AnyTrack Pixel Helper Extension

  Install the [AnyTrack Pixel Helper](https://chromewebstore.google.com/detail/anytrack-pixel-helper/ojmhkmdpagjeopleoeihbhgejcfoijjn) Chrome extension to verify the AnyTrack Tag is installed on the pages leading to your Whop checkout. [View the Pixel Helper guide](/docs/anytrack-chrome-extension).
</Callout>

<Callout icon="⚠️" theme="warning">
**Avoid duplicate tracking**

After you connect your ad platforms through AnyTrack, remove any standalone ad-platform pixels from your Whop and funnel pages so conversions aren't counted twice.
</Callout>

<FaqAccordion
  title="Whop Integration - Frequently Asked Questions"
  icon="fa-duotone fa-circle-question"
  items={[
    {
      question: "How does AnyTrack track Whop purchases?",
      answer: "Whop sends each successful payment to AnyTrack through a webhook. AnyTrack records the Purchase, attributes it to the campaign, and forwards it to your connected ad platforms via the Conversion API."
    },
    {
      question: "Do I need the AnyTrack Tag on my pages?",
      answer: "Yes. The Tracking Tag must be installed on the pages that lead to your Whop checkout so AnyTrack can capture the traffic source and match the purchase to a campaign. Without it, the purchase is recorded but not attributed."
    },
    {
      question: "Will the integration track upsells on Whop?",
      answer: "Upsell tracking depends on whether Whop sends a separate webhook event for the upsell purchase. If it does, add the matching webhook trigger in your Whop account so AnyTrack receives it."
    },
    {
      question: "Can I import past Whop purchases?",
      answer: "No. AnyTrack only tracks conversions that happen after a visitor session is recorded. Purchases made before the integration was set up cannot be imported."
    },
    {
      question: "I use ClickFunnels 2.0 with Whop checkout. Is the setup different?",
      answer: "Yes. Follow the <a href='/docs/whop-checkout'>ClickFunnels 2.0 and Whop Checkout</a> guide, which adds a checkout script to capture lead details before the Whop payment."
    }
  ]}
/>

<Cards columns={2}>

  <Card title="ClickFunnels 2.0 + Whop Checkout" href="/docs/whop-checkout" icon="fa-filter-circle-dollar" iconColor="blue-500">
    Track funnels that use ClickFunnels 2.0 for lead capture and Whop for checkout.
  </Card>

  <Card title="Install the AnyTrack Tag" href="/docs/install-anytrack-tag" icon="fa-code" iconColor="blue-500">
    Add the Tracking Tag to your pages so AnyTrack can attribute conversions.
  </Card>

  <Card title="Event Mapping" href="/docs/event-mapping" icon="fa-route" iconColor="blue-500">
    Control which events each ad platform receives and how they are mapped.
  </Card>

  <Card title="Advertising Integrations" href="/docs/advertising-integrations" icon="fa-bullhorn" iconColor="blue-500">
    Connect Google Ads, Facebook, and TikTok to receive Whop conversions.
  </Card>

</Cards>
