OnlyFans API

Connect your Snapchat Pixel to OnlyFans API Smart Links

Send configurable Smart Link click, subscription, purchase, and reply events to Snapchat through its server-side Conversions API.

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.

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)

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.

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.

Step-by-step setup

Find your Snap Pixel ID

In Snapchat Ads Manager, open the top menu and go to Assets → Pixels (Snapchat also lists pixel activity under Events Manager).

Snapchat Business Manager: menu with Assets → Pixels highlighted

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

Snapchat: Pixels overview page with Create Pixel

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

Snapchat: pixel details page showing the Pixel ID

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).

Snapchat: Business Details with the Conversions API Tokens section

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.

Log into your OnlyFans API Dashboard, 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

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 and scope the pixel to specific traffic sources
  5. Review the Event Configuration (see Events sent to Snapchat below)
  6. Click Create

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.

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.

OnlyFans API dashboard: Send Test Event dialog for a Snapchat pixel

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

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.

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

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 eventWhen it firesSnapchat event (default)
ClickFan clicks the Smart Link and is redirected to OnlyFansVIEW_CONTENT
New SubscriberFan subscribes through the Smart LinkSIGN_UP
First PurchaseFirst transaction other than the initial new-subscription payment. A rebill can be first.PURCHASE
Repeat PurchaseOther transactions, including the initial new-subscription payment and transactions after First PurchasePURCHASE
Message Received from FanFan sends a message after convertingNot sent by default
Fan Sent 1st MessageFan reaches their 1st inbound messageNot sent by default
Fan Sent 3+ MessagesFan reaches their 3rd inbound messageLEVEL_COMPLETE

For subscriber and purchase events, Smart Links also sends the conversion value and currency when available.

Troubleshooting

ProblemFix
No events showing in SnapchatDouble-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 rejectedConfirm the Pixel ID belongs to the same organization that generated the token.
Test event never appearsSnapchat 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 optimizingSet your campaign's optimization goal to the matching conversion event (e.g. PURCHASE or SIGN_UP).

On this page