How to track affiliate sales from Facebook Ads, and send them back to Meta
November 19, 2026 · Hoplytic team · 2 min read
Read the video transcript
How do you track affiliate sales from Facebook Ads, and tell Meta which ad earned them?
The sale happens on the merchant's site, so your pixel never sees it, and Meta optimises for clicks, not buyers.
Meta adds fbclid to the click, and your tracking link saves it. Your click ID goes to the network in a sub-ID, and the sale comes back by postback or API. Your tracker sends a Purchase to Meta's Conversions API with that fbclid.
In the ad's URL parameters field, add the campaign, the ad set and ad, so reports show sales and ROAS per ad. And the placement.
No fbclid usually means a shortener dropped it. Use the full tracking link. Sales missing in Meta? Check the pixel ID and token.
Add Meta once under Send back, with your pixel ID and access token. Each sale goes within about twenty seconds.
The full guide is right below. Hoplytic: ad tracking made simple.
Meta's bidding learns from the conversions you report. With affiliate offers, the sale happens on someone else's site, so the pixel never sees it, and Meta optimises for clicks instead of buyers.
Short answer: capture Meta's click ID (fbclid) on your tracking link, pass your own click ID to the network in a sub-ID, and let the network report the sale to your tracker. The tracker then sends that sale to Meta's Conversions API with the original fbclid, so Ads Manager shows purchases per ad and bidding finds more buyers.
How the chain works
- Someone clicks your ad. Meta adds
fbclidto the URL by itself. - Your tracking link saves the fbclid and the ad's details (campaign, ad set, ad) and sends the visitor on with your click ID in the network's sub-ID.
- The visitor buys. The network reports the sale to your tracker by postback or API, with your click ID.
- The tracker finds the click, sees the fbclid, and sends a Purchase event to Meta's Conversions API with the commission as the value.
Capture the ad details too
Add Meta's URL parameters to the ad so every click carries its campaign, ad set and ad. In the ad's URL parameters field:
campaign={{campaign.id}}&adset={{adset.id}}&ad={{ad.id}}&placement={{placement}}
Then your reports can show sales and ROAS per ad, not just per campaign. IDs stay the same when you rename an ad, which keeps reports tidy; use {{ad.name}} instead if you'd rather read names.
Getting cost in
Meta doesn't pass the cost of each click in the URL. Enter your daily or weekly spend from Ads Manager on the tracking link, and the tracker spreads it over that link's clicks on those days. Now you have cost, commission and ROAS per ad, using your network's numbers, not Meta's estimates.
Common problems
- No fbclid on clicks. It's missing when the ad's link was shortened by something that drops parameters, or when people come from an organic post. Use the full tracking link in the ad.
- Sales in your tracker but not in Meta. Check the pixel ID and token, and that the sale came from a click that had an fbclid. Clicks older than Meta's attribution window won't match.
- Different numbers in Meta and your network. Normal: Meta counts by its attribution settings, your network by the actual sale. Judge profit on the network's commission.
On Hoplytic
Make the tracking link for Facebook / Instagram in the link maker (fbclid is captured automatically), then add Meta once under Send back with your pixel ID and access token. Each sale is sent within about 20 seconds of the network reporting it, retried for up to 12 hours if Meta is down, and you choose whether to send pending sales or approved ones only. The same works for TikTok, Google Ads, Microsoft Ads and push or native networks.
Questions people ask
Can I put the Facebook pixel on an affiliate offer?
Usually not: the thank-you page belongs to the merchant. Instead, your tracker learns about the sale from the network (by postback or API) and reports it to Meta server to server with the Conversions API.
What do I need for the Conversions API?
Your pixel (dataset) ID and an access token from Meta Events Manager. The tracker sends each sale with Meta's click ID (fbclid) from the original click, so Meta can match it to the ad.
Does Meta allow ads that link straight to an affiliate offer?
Meta reviews the landing page, not the tracker. Many affiliates send ads to their own page first. Check Meta's advertising standards and the offer's terms (some, like Amazon Associates, don't allow paid ads to their links).
More in Conversion tracking
Also: tracking glossary · ad platform macros · Markdown copy