Skip to content
Business
Skill

/meta-pixel-setup

Set up the Meta Pixel (Facebook/Instagram ads tracking) on a website and fire a conversion event (Lead, CompleteRegistration, Purchase) end to end. Guides the user through Business Suite / Events Manager, creating or finding the Pixel/Dataset ID, installing the base code, firing

From plugin
ccc
50217 skills4 agents18 commands

Claude Code

$ npx -y skills add ooiyeefei/ccc --skill meta-pixel-setup --agent claude-code

SKILL.md

meta-pixel-setup.SKILL.md
name: meta-pixel-setup
description: Set up the Meta Pixel (Facebook/Instagram ads tracking) on a website and fire a conversion event (Lead, CompleteRegistration, Purchase) end to end. Guides the user through Business Suite / Events Manager, creating or finding the Pixel/Dataset ID, installing the base code, firing a standard event, and verifying it with the Meta Pixel Helper BEFORE running ads. Use whenever someone wants to add the Meta/Facebook Pixel, track FB/IG ad conversions, install "the pixel", find their Pixel/Dataset ID, set up a Lead or Purchase event for Meta ads, debug why Pixel events aren't firing, or is being pushed by Meta's wizard toward the Conversions API and isn't sure if they need it. Meets the user wherever they are — always asks what they've already set up (Facebook Page? Business Suite? a Pixel ID?) first.

Meta Pixel Setup

Get the Meta Pixel tracking a real conversion on a website, verified, so Facebook/Instagram ad optimization has something true to learn from. Two things trip people up and this skill front-loads both: **the Pixel-vs-Conversions-API decision** (Meta's wizard aggressively pushes the heavier one) and **which data category to declare** (a wrong choice can throttle your ads).

Naming note: Meta renamed "Pixel" to **"Dataset"** in the UI. A dataset contains the pixel and its **Dataset ID = Pixel ID** (a ~15–16 digit number). Treat the two words as the same thing.

Start where the user is

Setup is a chain: **Facebook Page → Business portfolio → Events Manager → Pixel/Dataset (get the ID) → base code on site → conversion event → verify.** People arrive mid-chain. Ask first, then jump in — don't re-create what exists (a business often already has a pixel; reuse it rather than fragmenting data across two).

Ask (adapt to what they've said): 1. Do you have a **Facebook Page** and **Meta Business Suite / Business portfolio** set up already? 2. Do you already have a **Pixel / Dataset** (in Events Manager)? If yes, what's the **Dataset ID** (the ~16-digit number)? Paste it — that may be all that's needed. 3. What's the **one conversion** that matters (a lead/waitlist submit, a signup, a purchase)? This is what ads optimize toward. 4. The site's **stack + domain** (Next.js, plain HTML, WordPress, Shopify) — decides how the code goes in.

If they already have the Dataset ID and a Page, skip straight to install (§3). Do not walk them back through account creation they've done.

Decision 1: Pixel only, or + Conversions API? (start with Pixel only)

Meta's setup wizard shows **"Conversions API and Meta Pixel (Recommended)"** with a shiny stat. Don't reflexively take it. Here's the honest trade-off:

  • **Meta Pixel (browser)** — a code snippet on the site sends events from the visitor's browser. Simple, no backend, works today. **This is all you need to launch.**
  • **Conversions API (CAPI)** — your *server* sends events directly to Meta. It's server-to-server, **"developer support required,"** and to actually help it needs **customer PII** (email, phone, IP) sent to Meta for matching. That's more build **and** a bigger privacy/compliance surface (GDPR/PDPA/CCPA).

So: **launch with the browser Pixel.** Add CAPI later, only if browser signal loss (ad-blockers, iOS ATT) is measurably hurting you and you've resolved the PII/consent question. Treat CAPI as a post-launch optimization, not a setup step. Read `references/conversions-api.md` before ever wiring it — it exists to stop you sending personal data to Meta by accident.

Decision 2: the Dataset "category" — leave it blank unless it clearly fits

When creating the dataset, Meta asks to "select any applicable categories." **This is a trap for finance/health/sensitive products.** The dialog warns: *"depending on the category and location, data sharing may be limited or blocked."* Categories like **"Financial service," "Economic vulnerability," "Personal hardship," "Nationality"** trigger Meta's restricted-data handling and can **throttle or block your ad optimization**.

Rule: **only tick a category if it accurately and unavoidably describes you, and you understand it restricts data.** A budgeting/productivity/SaaS tool is *software*, not a "financial service" (that category is for lenders, credit reports, consumer finance). When in doubt, **leave categories empty** (it's optional) — empty means no restriction, which is what a normal waitlist/signup test wants.

1. Create or find the Pixel/Dataset (get the ID)

In [Events Manager](https://business.facebook.com/events_manager): 1. Left rail → **Connect data** (green +) → **Web** → **Meta Pixel** → Connect. (Or if a dataset exists, click it — the ID is right under its name.) 2. Name it after the business (e.g. "Acme Web"). For category, see Decision 2 (usually leave blank). 3. **Copy the Dataset ID** — the ~16-digit number under the name. Also always visible later under **Events Manager → Datasets**. 4. If it launches a "set up / connect your website" wizard offering Conversions-API vs Pixel-only — you can **close/skip it**. You only need the ID; the code goes in by hand (§3). If you do proceed, choose **Meta Pixel only** (Decision 1).

2. (Optional) Reuse an existing pixel

A pixel is **not** a hard reporting wall like a GA4 property. **One pixel can cover a whole domain** — the main app *and* a `/waitlist` landing page. Distinguish funnels by the event + custom params (e.g. `content_name: 'waitlist'`), not by a second pixel. If the business already has one, reuse its ID.

3. Install the base code

Paste in `<head>` on every page, replacing `YOUR_PIXEL_ID`. It fires `PageView` automatically. (Copy your exact snippet from Events Manager — it has the ID pre-filled — or use this canonical form.)

<!-- Meta Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.cr
Read more
@ooiyeefei
Ships withccc

Custom plugins and skills for Claude Code.

50217 skills4 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
502
Star history of ooiyeefei/ccc on GitHub, a chart by star-history.com

Other skills on ccc.

daily-chief

daily-chief

Run the user-invoked Daily Chief Plan today workflow with device login, a local preview, and explicit confirmation before remote…

@ooiyeefei@ooiyeefeiInstall Skill
mvp-launch

mvp-launch

Web app MVP launch checklist knowledge. Auto-triggered when conversation involves "launch readiness", "MVP checklist",…

@ooiyeefei@ooiyeefeiInstall Skill
product-management

product-management

This skill should be used when the user asks to "analyze my product", "research competitors", "find feature gaps", "create…

@ooiyeefei@ooiyeefeiInstall Skill
rethink-surveys

rethink-surveys

Design, critique, or scaffold surveys grounded in Caroline Jarrett, Dillman, and Tourangeau methods. Use when designing a new…

@ooiyeefei@ooiyeefeiInstall Skill
agentic-system-design

agentic-system-design

Prescriptive Q&A workflow for designing agentic pipelines, multi-model councils, sub-agent hierarchies, and tool-loop hardening…

@ooiyeefei@ooiyeefeiInstall Skill
cross-app-shared-auth

cross-app-shared-auth

Blueprint for wiring many apps to one shared login plus a central accounts database, so a person has a single account across…

@ooiyeefei@ooiyeefeiInstall Skill

More skills from other plugins.

opc-asset-ops

opc-asset-ops

Turn repeatable outputs of a one-person company into compounding assets. Use when Codex needs to explain asset-compounding…

@easychen@easychenInstall Skill
dbs

dbs

dontbesilent 商业工具箱的技能调度台,根据当前问题和反馈选择下一步,在对话中直接执行、澄清、组合或对照尝试 Skill。用户不知道从哪里开始、需要调整处理方法、第一次使用…

dbs11d11k
@dontbesilent2025@dontbesilent2025Install Skill

Questions about meta-pixel-setup.

Which coding agents can use meta-pixel-setup?
meta-pixel-setup installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.