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

# Connect your Snapchat Pixel to OnlyFans API Smart Links (/introduction/guides/snapchat-pixel-smart-links)

import { Step, Steps } from "fumadocs-ui/components/steps";

## What is a Snapchat Pixel?

A Snapchat Pixel is Snapchat's conversion tracking tool. It tells Snapchat when someone takes an action, such as subscribing or purchasing, after seeing or swiping up on your Snap ad.

**Why connect it to Smart Links?** OnlyFans doesn't support Snapchat's pixel natively, and there's no way to install tracking code on OnlyFans pages. Smart Links can send the events you configure to Snapchat's Conversions API without installing JavaScript on OnlyFans.

<Callout>
  **What you'll need**

  * An active OnlyFans API account with **Smart Links** enabled
  * A **Snapchat Ads** account with **Business Manager** access (you must be an *Organization Admin* to generate the API token)
  * Your Snap **Pixel ID** *and* a **Conversions API token** (we'll get both below)
</Callout>

## Why this matters for Snapchat

Snapchat cannot observe subscriptions, tips, PPV purchases, or replies on OnlyFans through browser JavaScript. Smart Links sends configured events from OnlyFansAPI's servers instead. Delivery can still fail because of invalid credentials, rejected payloads, or platform availability; inspect the pixel's event logs in OnlyFansAPI.

<Callout type="info">
  This guide is the Snapchat-specific setup. For how Smart Links work under the hood, including attribution rules, the conversion window, lifetime revenue attribution, and postback variables, see the [Smart Links guide](/introduction/guides/onlyfans-meta-pixel-smart-links).
</Callout>

## Step-by-step setup

<Steps>
  <Step>
    ### Find your Snap Pixel ID

    In [Snapchat Ads Manager](https://ads.snapchat.com), open the top menu and go to **Assets → Pixels** (Snapchat also lists pixel activity under **Events Manager**).

        <img alt="Snapchat Business Manager: menu with Assets → Pixels highlighted" src={__img0} placeholder="blur" />

    On the Pixels page, open your pixel, or click **Create Pixel**, name it, and open it.

        <img alt="Snapchat: Pixels overview page with Create Pixel" src={__img1} placeholder="blur" />

    Your **Pixel ID** is shown right below the pixel's name. Copy it.

        <img alt="Snapchat: pixel details page showing the Pixel ID" src={__img2} placeholder="blur" />
  </Step>

  <Step>
    ### Generate a Conversions API token

    Snapchat's server-side Conversions API needs an **access token** in addition to the Pixel ID. This is how Smart Links authenticate when sending events to Snapchat.

    In the sidebar, open **Business Details**, scroll to **Conversions API Tokens**, and click **Generate Token** (or copy an existing one).

        <img alt="Snapchat: Business Details with the Conversions API Tokens section" src={__img3} placeholder="blur" />

    <Callout type="warn">
      You must be an **Organization Admin** to generate this token. Copy it somewhere safe and treat it like a password. Store it on a secure backend, and never share it client-side.
    </Callout>
  </Step>

  <Step>
    ### Create or open a Smart Link

    Log into your [OnlyFans API Dashboard](https://app.onlyfansapi.com), open **Smart Links → Links**, and click **Create Smart Link**. To use an existing link, open its action menu and click **Edit**.

    * **Account**: the OnlyFans account you're running ads for
    * **Smart Link Name**: something descriptive, e.g. your Snapchat campaign name
    * **Offer Type**: *Free Trial* or *Tracking Link*
  </Step>

  <Step>
    ### Add your Snapchat pixel

    Open **Smart Links → Tracking Pixels** and click **Add Pixel**. Then:

    1. Set **Platform** to **Snapchat Ads**
    2. Paste your **Pixel ID** from Step 1
    3. Paste your Conversions API token into the **Access Token** field (from Step 2)
    4. Choose **All traffic sources**, or [create matching rules](/introduction/guides/onlyfans-meta-pixel-smart-links#traffic-sources) and scope the pixel to specific traffic sources
    5. Review the **Event Configuration** (see [Events sent to Snapchat](#events-sent-to-snapchat) below)
    6. Click **Create**
  </Step>

  <Step>
    ### Attach the pixel to your Smart Link

    Open **Smart Links → Links**, edit the Smart Link, and select the pixel in **Tracking Pixels**. You can attach more than one pixel to a link.
  </Step>

  <Step>
    ### Send a test event

    Open the **Send Test Event** dialog on your pixel, pick an **Event**, and send it. **Snapchat doesn't use a test event code.** The event goes to Snapchat's validation endpoint and appears in Snapchat Events Manager under your pixel's **Test Events** tab within a few minutes.

    <div className="mx-auto max-w-md">
            <img alt="OnlyFans API dashboard: Send Test Event dialog for a Snapchat pixel" src={__img4} placeholder="blur" />
    </div>
  </Step>

  <Step>
    ### Use the Smart Link in your Snapchat ad

    In Snapchat Ads Manager, set your ad's **Website URL** / **Attachment URL** to your Smart Link:

    ```text
    https://trk.of-traffic.com/go/YOUR_SMART_LINK_ID
    ```

    Replace `YOUR_SMART_LINK_ID` with the ID from your Smart Links dashboard. When a Snapchatter swipes up, Snapchat automatically appends its click ID (`ScCid`) to the URL, and Smart Links captures it for attribution. There's no macro to add.
  </Step>

  <Step>
    ### Verify conversions are flowing

    Once your ads are live:

    * **Smart Links dashboard**: you should see clicks, subscribers, and revenue
    * **Snapchat Events Manager**: conversion events appearing on your pixel
    * **Snapchat Ads Manager**: your campaign's results filling in with tracked conversions
  </Step>
</Steps>

## Events sent to Snapchat

Smart Links can send the following events to your Snapchat Pixel. Each one maps to a Snapchat event in the **Event Configuration** section when you add the pixel. These are the defaults, and every event is configurable (map it to any Snapchat standard event, a custom event, or turn it off).

| Smart Link event              | When it fires                                                                                            | Snapchat event (default) |
| ----------------------------- | -------------------------------------------------------------------------------------------------------- | ------------------------ |
| **Click**                     | Fan clicks the Smart Link and is redirected to OnlyFans                                                  | `VIEW_CONTENT`           |
| **New Subscriber**            | Fan subscribes through the Smart Link                                                                    | `SIGN_UP`                |
| **First Purchase**            | First transaction other than the initial new-subscription payment. A rebill can be first.                | `PURCHASE`               |
| **Repeat Purchase**           | Other transactions, including the initial new-subscription payment and transactions after First Purchase | `PURCHASE`               |
| **Message Received from Fan** | Fan sends a message after converting                                                                     | *Not sent by default*    |
| **Fan Sent 1st Message**      | Fan reaches their 1st inbound message                                                                    | *Not sent by default*    |
| **Fan Sent 3+ Messages**      | Fan reaches their 3rd inbound message                                                                    | `LEVEL_COMPLETE`         |

<Callout type="info">
  For subscriber and purchase events, Smart Links also sends the conversion **value** and **currency** when available.
</Callout>

## Troubleshooting

| Problem                                         | Fix                                                                                                                                                 |
| ----------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| No events showing in Snapchat                   | Double-check you pasted **both** the Pixel ID and the Conversions API token, and that the token was generated by an **Organization Admin**.         |
| Pixel credentials are rejected                  | Confirm the Pixel ID belongs to the same organization that generated the token.                                                                     |
| Test event never appears                        | Snapchat doesn't use a test event code. Just send the test event and check your pixel's **Test Events** tab in Events Manager. Allow a few minutes. |
| Events arrive but the campaign isn't optimizing | Set your campaign's optimization goal to the matching conversion event (e.g. `PURCHASE` or `SIGN_UP`).                                              |