OnlyFans API

Connect your Snapchat Pixel to OnlyFans API Smart Links

Send every OnlyFans subscription, purchase, and message event straight to your Snapchat Pixel with server-side postbacks. No JavaScript, nothing to install on OnlyFans.

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.

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

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

OnlyFans API dashboard: Create Smart Link dialog

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 below)
  5. Click Save

OnlyFans API dashboard: Add Tracking Pixel dialog with Snapchat Ads selected

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.

OnlyFans API dashboard: Snapchat pixel attached via the Ad Platforms selector

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 PurchaseFan's first non-subscription transaction (tip, PPV, etc.)PURCHASE
Repeat PurchaseAny transaction after the firstPURCHASE
Message Received from FanFan sends a message after convertingNot 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, so Snapchat can optimize toward your highest-value fans, not just any conversion.

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 shows invalid right after creating your business accountSnapchat can take up to a day to activate a brand-new pixel, so wait and try again.
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