> ## 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's ad platform when someone takes a valuable action, like subscribing or making a purchase, after seeing or swiping up on your Snap ad. This data is what Snapchat's algorithm uses to find more users who are likely to convert, which lowers your cost per subscriber over time.

**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 bridge the gap by tracking everything **server-side**: every click, subscription, tip, and purchase is sent back to your Snapchat Pixel automatically. No JavaScript, nothing to install 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 is a strong traffic source for OnlyFans media buyers, especially for younger demographics and creative formats like Stories ads and AR Lenses. But like every platform, Snapchat's algorithm only optimizes well when it has conversion data.

* **Without conversion data**, Snapchat optimizes for swipe-ups (clicks), not subscribers. You pay for traffic that doesn't convert.
* **With Smart Links + your Snapchat Pixel**, every subscription and transaction is sent to Snapchat via server-side postbacks. Snapchat learns which swipe-ups become paying fans and finds more of them.

Snapchat's native pixel is browser-based JavaScript, which makes it vulnerable to ad blockers, cross-device loss, and redirect drop-off. Smart Links postbacks bypass all of that: our servers talk directly to Snapchat's Conversions API, so events can't be blocked or dropped.

<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) and open **Smart Links** in the left sidebar. Click **Create Smart Link** (or open an existing one) and fill in:

    * **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*

    <div className="mx-auto max-w-md">
            <img alt="OnlyFans API dashboard: Create Smart Link dialog" src={__img4} placeholder="blur" />
    </div>
  </Step>

  <Step>
    ### Add your Snapchat pixel

    On the Smart Link, open the **Connect your ad platforms** panel and click **Add Tracking Pixel** (you can also manage pixels from **Smart Links → Manage Ad Platforms**). 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. Review the **Event Configuration**. The defaults are sensible (see [Events sent to Snapchat](#events-sent-to-snapchat) below)
    5. Click **Save**

    <div className="mx-auto max-w-md">
            <img alt="OnlyFans API dashboard: Add Tracking Pixel dialog with Snapchat Ads selected" src={__img5} placeholder="blur" />
    </div>
  </Step>

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

    If you created the pixel from the **Ad Platforms** page rather than inline, attach it to the Smart Link using the **Ad Platforms** selector on the Smart Link. You can connect more than one pixel to a single link.

    <div className="mx-auto max-w-md">
            <img alt="OnlyFans API dashboard: Snapchat pixel attached via the Ad Platforms selector" src={__img6} placeholder="blur" />
    </div>
  </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={__img7} 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**            | Fan's first non-subscription transaction (tip, PPV, etc.) | `PURCHASE`               |
| **Repeat Purchase**           | Any transaction after the first                           | `PURCHASE`               |
| **Message Received from Fan** | Fan sends a message after converting                      | *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, so Snapchat can optimize toward your highest-value fans, not just any conversion.
</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 shows invalid right after creating your business account | Snapchat can take up to a day to activate a brand-new pixel, so wait and try again.                                                                 |
| 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`).                                              |