meta-capi-and-events

在对接 Meta 转化 API 并设置漏斗事件时使用的技能。用于将 MQL/SQL 信号反馈回 Meta,以便 Meta 优化合格商机而非仅优化表单提交。

仓库最近推送
GitHub Stars
247
Forks
109
Issues / PRs
1

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "meta-capi-and-events":https://skillpi.com/zh/skills/deepskill-23bb020e2584883c1c79613fb13aed21504f773c1fb78e74ae13b65ad4112e9e。安装前核对上游来源和版本:https://github.com/swan-gtm/gtm-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

在对接 Meta 转化 API 并设置漏斗事件时使用的技能。用于将 MQL/SQL 信号反馈回 Meta,以便 Meta 优化合格商机而非仅优化表单提交。

0 下载

介绍来源: third_party · swan-gtm · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: "meta-capi-and-events"
title: "Meta Conversions API & events"
description: "Use this skill when wiring the Conversions API and funnel events — feeding MQL/SQL signal back so Meta optimizes for qualified pipeline, not form-fills."
category: Ads

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.


Recommended Event Hierarchy (B2B SaaS)

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.

Order of preference: (1) Native HubSpot to Meta with Data sharing on for all events. (2) If match quality stays low or you need custom logic/multi-destination/hashing control, add n8n (or Segment, or custom backend): CRM to n8n to normalize + hash to CAPI.


When n8n Is Better Than HubSpot Native

  • Low Event Match Quality even with HubSpot data sharing on - n8n lets you normalize and hash exactly per Meta's spec.
  • Multiple destinations - One workflow: HubSpot to n8n to Meta CAPI + LinkedIn, Google, etc.
  • Custom event mapping or filtering - e.g. only send when deal value > X, or only contacts from paid campaigns.
  • Same event_id for pixel + CAPI - Full control for deduplication when the pixel fires with a known event_id and you want CAPI to send the same one.
  • Compliance / data control - Hash in n8n, filter by consent, suppress segments before sending.

Deduplication: Where It Happens

  • Where: In Meta's systems. You don't configure dedup in HubSpot or n8n; you send the right identifiers.
  • How: Send the same event_id (and same event_name) from both the pixel (e.g. on thank-you page) and CAPI (from CRM or n8n when that conversion is recorded). Meta merges them into one conversion.
  • If the conversion only exists in the CRM (e.g. "became Opportunity" days later), you only send CAPI - no pixel event to dedupe with.

Event Match Quality (EMQ)

  • Send user_data with every CAPI event: at least email and phone (normalized, then hashed per Meta's rules). Optionally: first name, last name, city, state, zip, country, external_id (your CRM ID, hashed).
  • HubSpot: Use "Data sharing" and select Email, Phone, Click ID (and any other recommended fields) for all lifecycle events.
  • n8n: Use normalize + hash (Crypto node or Code node with crypto.createHash('sha256').update(str).digest('hex')) so every event includes hashed em, ph, etc. Meta expects hex (lowercase).
  • Check Event Match Quality in Events Manager; aim for 6+/10 or "Good." Low scores (e.g. 3.2-3.8) mean Meta can't match well - improve user_data or add hashing via n8n.

Meta CAPI Best Practices (Summary)

  • Pixel + CAPI for the same events (redundant setup).
  • Deduplication: same event_name + event_id (or external_id + fbp) from pixel and CAPI.
  • Parameters: Send required (e.g. action_source, event_source_url, client_user_agent for web) and recommended customer information (em, ph, fn, ln, etc.) - hashed where required.
  • Real time: Send events as soon as the stage changes (or at least daily).
  • Test: Use Meta's Test Events tool and Payload Helper to validate.
  • Post-setup: Check Event Match Quality; avoid changing pixels or campaign structure unnecessarily during learning.

Related Files

  • meta-setup-and-tracking.md - Pixel, events, domain verification, first campaign
  • audience-strategy.md - Prospecting audiences, data hierarchy
  • campaign-structure.md - Remarketing vs prospecting, ABO/CBO/Advantage+
  • optimization-playbook.md - Decision trees, weekly cadence, scaling protocol

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值92/100

亮点

  • 提供 B2B SaaS 场景下 Meta CAPI 的完整实施框架
  • 明确区分 CRM 原生集成与 n8n 中间件的适用边界
  • 解决广告主从表单提交转向合格商机优化的核心痛点
触发精准95/100

亮点

  • description 精准描述使用场景:CAPI 对接与漏斗事件设置
  • 覆盖多种变体:配置审计、数据源选择、EMQ 优化
  • 边界清晰,不易误触
结构规范95/100

亮点

  • 模块化结构清晰:最佳实践、事件层级、发送源选择、去重机制
  • 包含端到端示例和对比表格
  • frontmatter 完整,文档长度适中
执行可靠93/100

亮点

  • 参数说明准确:event_id 去重、SHA-256 哈希规范
  • 覆盖主要异常场景:低 EMQ 处理、多目的地同步
  • 提供测试验证建议和变更控制提醒
证据可验 (前四项均值)94/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。