Skip to main content
If you buy Meta or TikTok traffic, you can feed real OnlyFans conversions back into the ad platform and let its campaigns optimize on subscribers and revenue instead of clicks. A browser pixel cannot be placed on OnlyFans, so we send the events from our server: straight to the Meta Conversions API or the TikTok Events API.
This page is for partners (partners.onlytraffic.com). Your pixels live in Tools → Pixels and are attached to a campaign in its Postbacks window. If you are a creator or an agency advertising your own pages through Studio, read Ad Platform Pixels in Studio: there the pixels live in Tracking Links → Pixels. The two cabinets keep separate pixel lists.
Five steps: an ad click with fbclid or ttclid, the tracking link that keeps the click data, the OnlyFans page, the OnlyTraffic server, conversion events sent to Meta or TikTok

How a conversion reaches the ad platform

Pixels work alongside Callbacks: a campaign can send events to your tracker and to your pixels at the same time.

What you need

  • A campaign on an OnlyTraffic tracking link: a RevShare Smart Link campaign or a CPL campaign on an OT tracking link. Regular campaign links and free trial links carry no click data, so a pixel cannot be attached to them.
  • A Meta dataset (pixel) or a TikTok pixel in the ad account that runs the ads.
  • The right to generate an access token for it.

Step 1. Get the Pixel ID and the access token

Meta Ads

1

Open your dataset

In Meta Events Manager open Data sources and pick the dataset (pixel) of the ad account that runs the ads.
2

Copy the ID

Copy the number shown under the dataset name. Meta labels it Dataset ID or Pixel ID: it is the same number, and it is what our form calls Pixel ID.
3

Generate the token

Open the Settings tab, find the Conversions API section and click Generate access token under Set up manually. Copy the token right away.
Meta shows the Generate access token link only to users with developer access to the business. If you do not see it, ask the owner of the business account to generate the token.

TikTok Ads

1

Open your pixel

In TikTok Events Manager open your web events pixel and copy its Pixel Code.
2

Generate the token

Open Settings of that pixel and use Generate Access Token in the Events API block.

Step 2. Add the pixel

Open Tools → Pixels (partners.onlytraffic.com/tools/pixels) and click Add Meta Ads or Add TikTok Ads.

Step 3. Check the connection before you run ads

1

Get a test code

In Meta Events Manager open your dataset and the Test events tab. Copy the code Meta shows there (it looks like TEST12345) and keep the tab open. In TikTok the code is in the test tool of your pixel.
2

Save it in the pixel

Paste the code into Test Event Code of the pixel and save. Saving sends one test event to the platform.
3

Look at both sides

Within a minute the pixel shows Healthy in Tools → Pixels, and a PageView event (Meta) or a HealthCheck event (TikTok) appears in the platform’s test tab. To send the test event again, press Send test in the pixel’s row, or Test next to the destination filter in Tools → Postback Logs when a pixel is picked there.
4

Optional: test a real conversion

Attach the pixel to a campaign (step 4), open the campaign link with a made-up click id added to it, for example &fbclid=test123, and subscribe from a test OnlyFans account. A few minutes later a Subscribe event with the click id appears in the test tab.
5

Remove the code

Clear Test Event Code and save before you launch ads.
If the pixel shows Error, the badge carries the platform’s own answer. The usual cause is a token copied incompletely or generated for another dataset: generate a new token and save it.
A test code does not hide events from Meta. Events sent with it are processed like any others and, in addition, show up in the Test events tab. Use the code only while testing.
Without a Test Event Code a Meta pixel is still checked on save with our own test event. A TikTok pixel can be checked only with a code from its test tool: without one it stays Not checked until the first live event.

Step 4. Attach the pixel to campaigns

On the campaigns page open the campaign’s actions menu (the … button in its row), choose Postbacks, tick the pixel under Ad platforms and save. One pixel can serve many campaigns, and a campaign can send to up to 20 pixels. The same can be done from code: see From code.

Step 5. Launch

  • Use the campaign’s tracking link as the destination of the ad. Meta and TikTok add fbclid / ttclid to it by themselves.
  • Your tracker’s click_id= can stay in the same link. It is stored separately for your callbacks and does not replace the platform’s click id.
  • Do not put a URL shortener between the ad and the link if it strips query parameters.
  • Optimize Meta campaigns for Subscribe or Purchase, TikTok campaigns for Subscribe or CompletePayment.

Events

Each event can be remapped to another standard platform event or switched off in the pixel form. The Click event is TikTok-only: it gives the campaign’s learning phase signal volume while conversions are still rare. Purchase value is the payment after the OnlyFans fee. Payment events carry a USD value: what the fan paid, minus the 20% OnlyFans fee. A $10 tip is sent as 8. On RevShare your commission is a fixed share of that amount, so value-based bidding ranks campaigns the same way it would on your earnings, and CPL campaigns (where you are paid per sub, not per transaction) still send a meaningful value.

Renewals

A renewal (rebill) is a recurring subscription payment. Every renewal of an attributed fan is sent as its own event with its own amount: a fan who renews three times produces three events. The Renewal row of the pixel form decides how they go:
  • A paid subscription gives two events: Subscribe (New Subscriber) and Purchase with the subscription price (New Transaction).
  • A change applies to every campaign of the pixel at once and to the renewals that come after it.
  • Callbacks are not affected: your tracker gets every payment, and {{transaction.type}} tells subscription from resubscription.
A stopped campaign keeps sending the purchases of the fans it already brought.

What we send

No names, emails or message texts are sent. Fields that are empty for a fan (for example the click id of a fan who came without one) are left out of the request. Where the click id comes from. Meta adds fbclid to the destination URL of every ad click. Our link reads it during the redirect and keeps it with the click in the fbc format Meta expects: fb.1.<click time in milliseconds>.<fbclid>. When the visitor subscribes, the fan is matched to that click, and every later event of that fan carries the same fbc, IP and user agent. TikTok works the same way with ttclid. Browser ID (fbp). Our link cannot read Meta’s _fbp cookie: it belongs to the domain of your landing page. If the landing page has the Meta pixel, read the cookie there and add it to the campaign link as params[fbp], for example &params[fbp]=fb.1.1787219747882.298725194832924794. The value is kept with the click and sent as fbp in every event of that fan. A value in any other format is left out. A Meta request, here for a purchase:
  • With an Event Source URL on the pixel, action_source is website and the request carries event_source_url with your domain.
  • With a Test Event Code on the pixel, the request carries test_event_code next to data.
  • Subscribe and Lead events have the same shape without custom_data.
A TikTok request, here for a purchase:
The exact request and the platform’s answer of every send are in Tools → Postback Logs.

Health and deliveries

  • Every pixel has a health badge: Healthy, Error with the platform’s own message, or Not checked. It is refreshed when you save the pixel, when you press Send test, by every live event and by a daily background check of quiet pixels. An expired token is flagged at the first failed send.
  • Tools → Postback Logs lists every send, pixel events included: the request, the platform’s response, the HTTP status and the retry attempts. Filter the log by pixel to see one destination.
  • Events are sent in batches every few minutes, so expect a delay of several minutes after the conversion. A send that could not complete is retried up to 3 times.

From code

Everything on this page can be done through the Partner API with a Full key from Tools → API: The whole cycle, from a new pixel to a live campaign:
After launch, ad_pixels of the campaign shows what the platform accepted: last_event_at, events_sent_today, and last_error when a send failed.

Practical setup for smart campaigns

  • One pixel per ad account; attach it to every tracking-link campaign that receives traffic from that account.
  • Keep Purchase mapped to New Transaction: those are the events that carry the payment amount as the value.
  • Do not map New Subscriber to Purchase: those events carry no amount.
  • To optimize on first payments only, give Renewal its own event or switch it off.

Troubleshooting

Check the pixel’s badge in Tools → Pixels and the sends in Tools → Postback Logs. A failed send shows the platform’s error message. No sends at all means the campaign has no conversions yet or the pixel is not attached to it: events fire on subscriptions and payments, and on clicks only for TikTok with the Click event on.
The campaign runs on a regular campaign link or a free trial link. Pixels need a tracking link: a Smart Link campaign on RevShare or an OT tracking link on CPL.
The click id did not reach the link. Check that the ad keeps fbclid / ttclid in the destination URL and that no shortener strips it. Fans without a click id are still sent with the hashed ID, IP and user agent, but match worse.
The code must be the one currently shown in the platform’s test tool, and the tool must be open while the event is sent. Codes expire: take a fresh one, save it in the pixel and press Send test again.
The amount is attached to New Transaction and Renewal only. If you mapped New Subscriber to Purchase, those events carry no amount.