LoyalFansAPI
Ads tracking
Operational+34% avg ROAS visibility

LoyalFans to Meta Pixel + Conversions API

Server-side conversion tracking for every LoyalFans subscription, Video Store clip, Audio Store track, Go Live tip and One on One call.

Architecture

Browser click (fbclid)
   -> loyalfansapi.com tracking link (stores fbclid, IP, UA)
   -> LoyalFans checkout (subscription, store, tip, call)
   -> LoyalFans API webhook engine (net = gross * 0.80, event_id)
   -> Meta Pixel + Conversions API

Parameter capture matrix

ParameterSourceRequired
fbclidLanding URL queryYes
_fbcCookie built from fbclidYes
_fbpMeta Pixel browser cookieRecommended
client_ip_addressTracking link requestYes
client_user_agentTracking link requestYes

Event mapping

LoyalFans eventMeta event
New subscriptionSubscribe
Video Store / Audio Store purchasePurchase
Go Live tip / One on One callPurchase

Net value calculation

Conversion Value = Gross Amount * 0.80

Reflects the LoyalFans 80/20 creator payout so ROAS matches what the creator actually earns. A $50 purchase reports $40.

Deduplication strategy

event_id = hash(order_id + event_name)

Deterministic IDs (UUIDv5) mean retries and browser + server double-fires are counted once.

Code examples

curl -X POST https://api.loyalfansapi.com/v1/ads/meta/events \
  -H "Authorization: Bearer sk_live_..." \
  -d '{
    "event_name": "Purchase",
    "order_id": "ord_9912",
    "gross": 50.00,
    "fbc": "fb.1.1712.IwAR...",
    "fbp": "fb.1.1712.98123"
  }'

Testing checklist

Use a test_event_code from Meta Events Manager, then confirm the event appears under Test Events with Deduplicated status when the browser Pixel fires the same event_id.

Troubleshooting

IssueFix
Event shows Not deduplicatedSend the same event_id from Pixel and CAPI. Use hash(order_id + event_name).
Low Event Match QualityInclude _fbc, _fbp, client IP and user agent captured by the tracking link.
Value looks too highConfirm net mode is enabled so the value equals gross multiplied by 0.80.

Ship your first LoyalFans integration today.

Free trial, sandbox keys in minutes, no credit card. Questions? hello@loyalfansapi.com

Start for free