meta-ads
Installation
SKILL.md
meta-ads
Meta conversion tracking has two halves — a client-side Pixel (fires in the browser on page load and on purchase) and a server-side Conversions API (CAPI) call (fires from your backend after the charge actually happens, e.g. a payment webhook). Ship both together with a shared dedup key, or purchases get double-counted.
Setup, in order
- Meta Events Manager → create a dataset / pixel. The pixel id is a numeric string, safe to expose client-side (it's not a secret).
- Generate a CAPI access token — Events Manager → your dataset → Settings → Conversions API → Generate access token. This is a secret; server-side only.
- Attach a promotable Facebook Page to the ad account (needed later for creating ads).
Client-side Pixel
Standard fbq base + a Purchase event on the confirmation page: