ads-meta
Installation
SKILL.md
ads-meta
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.
When to use
- Triggers: 'Meta pixel', 'Conversions API', 'CAPI', 'Purchase events missing', 'phantom Purchase on signup', 'Lookalike audience', 'Meta Ads MCP URL Blocked', 'System User token', 'empty adaccounts'.
- Client Pixel (fbq base plus Purchase) and server CAPI (Graph /{pixel-id}/events) with a shared event_id dedup key; the unset CAPI token that silently no-ops; firing on hashed-email match, not fbclid, so organic purchases report; advanced matching.
- App-capability 400s (Advanced Access for ads_management, promotable Page); Lookalikes from a hashed-email Custom Audience (USER_PROVIDED_ONLY, EMAIL_SHA256, 100 matched-user floor); a Purchase on free signup is usually the Automatic Events setting; verification via Graph stats and last_fired_time.
- Meta Ads MCP in the CLI: the hosted mcp.facebook.com/ads OAuth fails with 'URL Blocked / redirect_uris not registered' (works only on claude.ai web or Desktop); the token fix with pipeboard-co/meta-ads-mcp and META_ACCESS_TOKEN; the Business Settings path to a non-expiring System User token (app role, scopes with SMS 2FA, ad-account assignment).
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).