meta-capi-and-events

meta-capi-and-events is a skill for Claude Code, Codex from swan-gtm/gtm-skills. It costs 39 tokens per session (1,494 once invoked), scanned A, original, MIT.

A guide to sending later sales outcomes from a customer system back to Meta through its Conversions API. The Conversions API is Meta’s server connection for recording events such as qualified leads, opportunities, and customers.

In plain words
What is it for?
Use it to plan CRM event tracking, connect browser and server events, prevent duplicate counts, and improve event matching.
Why use it?
A basic form submission does not show whether a lead is valuable. Connecting later stages helps Meta optimise for real business results and reduces missing data from browser restrictions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to plan CRM event tracking, connect browser and server events, prevent duplicate counts, and improve event matching.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/swan-gtm/gtm-skills/meta-capi-and-events
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add swan-gtm/gtm-skills --skill meta-capi-and-events
Clone the repo
git clone --depth 1 https://github.com/swan-gtm/gtm-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for meta-capi-and-events

README.md
[![agentmods](https://agentmods.dev/badge/skills/swan-gtm/gtm-skills/meta-capi-and-events/github.svg)](https://agentmods.dev/skills/swan-gtm/gtm-skills/meta-capi-and-events)
Your own site
<a href="https://agentmods.dev/skills/swan-gtm/gtm-skills/meta-capi-and-events"><img src="https://agentmods.dev/badge/skills/swan-gtm/gtm-skills/meta-capi-and-events/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for meta-capi-and-events

Your own site · 80×15
<a href="https://agentmods.dev/skills/swan-gtm/gtm-skills/meta-capi-and-events"><img src="https://agentmods.dev/badge/skills/swan-gtm/gtm-skills/meta-capi-and-events.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,494 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.01494
Opus 5 $0.00019 $0.00747
Sonnet 5 $0.00008 $0.00299
Haiku 4.5 $0.00004 $0.00149

Measured 9d ago against content hash acbd30d4f47f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

meta-capi-and-events scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ivan-falco/meta-capi-and-events/SKILL.md · 93 lines

How it starts

The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Meta Conversions API (CAPI) & Events - B2B SaaS

Best practices for sending conversion data to Meta via the Conversions API: event hierarchy, CRM vs middleware, deduplication, and Event Match Quality. Use this when setting up or auditing CAPI, choosing between HubSpot native and n8n, or improving event match quality.


Best Option for B2B SaaS: CRM to CAPI (with Pixel)

  • Source of truth: Your CRM (HubSpot, Salesforce, etc.).
  • Conversion events: CRM lifecycle stages (Lead, MQL, Opportunity, Customer), not only a single "Lead" from the site.
  • Sending: Server-side via Conversions API from the CRM (or from a system that has the same CRM data).
  • Redundancy: Use both the Meta Pixel (browser) and CAPI (server) for the same conversion where possible, with deduplication so Meta counts it once.

This gives optimization on real pipeline (opportunity/customer), resilience to iOS/ad blockers, and a proper offline conversion loop: Meta lead to CRM to stage changes to CAPI back to Meta.


Event (example) When to send Why
Lead (or initial_lead) Contact enters "Lead" / first form or demo Top-of-funnel volume
marketingqualifiedlead Contact becomes MQL Qualified intent
opportunity Deal/opportunity created Pipeline; strong optimization target
customer Closed-won Revenue; best for value optimization

Send one CAPI event per lifecycle stage you care about. Set conversion event priority in Events Manager so the event you optimize for (e.g. Lead or Opportunity) ranks above PageView and other events.


Where to Send From: Best vs Second Best

Option When it's best
CRM native (e.g. HubSpot to Meta) You want one place to manage sync. Data sharing (Email, Phone, Click ID) is on for all lifecycle events and Event Match Quality is acceptable (e.g. 6+/10). You only need Meta (and maybe other native integrations). No custom logic required.
n8n (or similar) between CRM and Meta Event Match Quality stays low despite HubSpot data sharing. You need normalize + hash per Meta's spec (SHA-256, E.164 phone, etc.). You need to send to multiple destinations (Meta + LinkedIn, Google, Segment). You need custom logic (e.g. only send when deal value > X, or only for paid-source contacts). You want one event_id for pixel + CAPI and full control over deduplication. Compliance: you want to hash in middleware and never send plain PII.

Read the full file on GitHub · 93 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 93 lines · 39 tokens per session scan A acbd30d4f47f

Subscribe to this mod's changes

meta-capi-and-events is a skill published in the GitHub repository swan-gtm/gtm-skills (153 stars, last pushed 2d ago), licensed MIT. It adds 39 tokens to every session and 1,494 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

ad-campaign-analyzer

Analyze cross-channel campaign data, quantify uncertainty, and propose evidence-labeled budget tests without overstating causality.

sickn33/agentic-awesome-skills · 28 tokens

google-search-ads-builder

End-to-end Google Search Ads campaign builder. Performs deep keyword research (competitor SEO, review language mining, Reddit/HN community terminology, site audit), builds keyword architecture with funnel mapping and intent classification, creates ad group structure, generates headline/description variants, builds…

gooseworks-ai/goose-skills · 79 tokens

meta-ads-analyzer

Diagnose Meta Ads campaign performance and account gaps using Meta's actual system mechanics — including customer-journey coverage, Breakdown Effect, Learning Phase, Auction Overlap, Pacing, and Creative Fatigue. Use for performance diagnosis, account audits, full-funnel or TOF/MOF/BOF gap analysis, deciding what to…

gooseworks-ai/goose-skills · 93 tokens

ad-campaign-analyzer

Analyze ad campaign performance data (Google, Meta, LinkedIn) to identify what's working, what's wasting budget, and specific cut/scale/test recommendations. Runs statistical analysis, funnel diagnostics, and multi-channel budget reallocation with specific dollar-amount shift recommendations and scenario modeling.

gooseworks-ai/goose-skills · 60 tokens

competitor-ad-intelligence

Scrape competitor ads from Meta, TikTok, Google, and LinkedIn ad libraries, analyze creative patterns (hooks, formats, CTAs), reverse-engineer landing page funnels, and produce a strategic teardown with vulnerability analysis and counter-play recommendations. Use when you need to understand the competitive ad…

gooseworks-ai/goose-skills · 81 tokens

ad-angle-miner

Mine the highest-converting ad angles from customer reviews, Reddit complaints, support tickets, and competitor ads. Extracts actual pain language, competitor weaknesses, and outcome phrases that real buyers use. Outputs a ranked angle bank with proof quotes and recommended ad formats per angle.

gooseworks-ai/goose-skills · 58 tokens