Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计通过

meta-ads-capi-setup元广告 capi 设置

Agent Skill

meta-ads-capi-setup 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,916

周安装

124

GitHub Stars

公开资料未说明

下载量

1,022
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:meta-ads-capi-setup(元广告 capi 设置)
来源仓库:https://github.com/elias-didoo/meta-ads-capi-setup
安装命令:
openclaw skills install meta-ads-capi-setup
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install meta-ads-capi-setup

简介

设置元转化 API (CAPI) 的分步指南,提升转化测量准确性。

  • 适用于部署服务器端事件跟踪以优化归因模型时参考。meta-ads-capi-setup 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 按步骤配置像素与后端集成,确保数据上报合规稳定。
  • 安装前须验证 API 密钥权限及网络连通性要求。
  • 注意核对原始 README 中关于错误处理和重试机制说明。

SKILL.md

name
meta-ads-capi-setup
description
[Didoo AI] Step-by-step guide for setting up Meta Conversions API (CAPI) — server-side event tracking that improves conversion measurement accuracy and reduces CPA discrepancy vs pixel-only tracking. Use when setting up tracking for a new account or when CPA shown in Meta Ads Manager is significantly higher than actual leads/sales.

Meta Ads CAPI Setup Guide

Required Credentials

CredentialWhere to GetUsed For
META_ACCESS_TOKENMeta Developer Console → Graph API Explorer → Generate TokenAll Meta Marketing API calls
META_PIXEL_IDMeta Events Manager → select your Pixel → copy Pixel IDIdentifying which pixel to configure
Token note: The System User access token (generated in Business Settings) is the primary credential for CAPI API calls. You still need a registered Meta App (App ID) to set up the CAPI integration in Events Manager — the App ID is required when creating the System User and configuring token permissions. Make sure the token includes these scopes: ads_management, business_management, pages_read_engagement.

When to Use

When setting up tracking for a new account, or when CPA shown in Meta Ads Manager is significantly higher than actual leads/sales (indicating a tracking gap). CAPI is especially critical for lead generation campaigns where offline conversions are the true business outcome.


What CAPI Does (vs Pixel Only)

  • Pixel only: Browser-based. Tracks users who click your ad and then take action on your website. Misses users who convert on different devices, after clearing cookies, or without clicking.
  • CAPI: Server-to-server. Sends conversion events directly from your server to Meta. More accurate, more reliable, harder to block.

Together: Pixel + CAPI gives Meta the most complete picture → better optimization → lower CPA over time.

If you're not using CAPI, you're likely overpaying for every lead. The gap can be 20–50% depending on industry and browser mix.


Prerequisites

Before setting up CAPI, you need:

  1. Meta Pixel installed on your website
  2. A Meta App registered at developers.facebook.com (App ID required to configure CAPI in Events Manager)
  3. A server environment that can send HTTP requests (or a partner integration like Shopify, WooCommerce, Zapier, or Google Tag Manager Server-side)
  4. Access to your Meta Business Manager with pixel-level permissions

Step 1: Choose Your Integration Method

Recommended for Most SMBs — Native Platform Integration

Use your e-commerce platform's built-in Meta integration. This is the easiest path:

PlatformHow to Connect
ShopifyShopify Admin → Sales Channels → Meta
WooCommercePlugins → Meta for WooCommerce
Other platformsCheck Meta's partner directory at meta.com/partners

Steps (native integration):

  1. Go to Meta Events Manager → select your Pixel
  2. Click "About CAPI" → "Get Started"
  3. Select your platform from the partner list
  4. Follow the on-screen prompts to authorize the connection
  5. Select which events to send (see Step 3 below)

Advanced — Manual Integration Options

Only use these if you are a developer or using a platform without native Meta integration.

MethodBest ForComplexity
Google Tag Manager Server-SideTeams already using GTMMedium
Zapier / Make.comNo-code teams, non-standard tech stacksMedium
Meta Conversions API via Meta Business ManagerSimple server events without developer resourcesLow
Direct API IntegrationDevelopers building custom infrastructureHigh

For Direct API: use your META_ACCESS_TOKEN to send events to https://graph.facebook.com/v21.0/{pixel_id}/events.


Step 2: Generate a System User Access Token

  1. Go to Meta Business Manager → Business Settings → System Users
  2. Create a new system user with "Analytics" or "Ads" permissions
  3. Generate an access token with: ads_management, business_management, pages_read_engagement
  4. Save this token securely — you'll need it for all API calls

Step 3: Configure Which Events to Send

  1. Go to Meta Events Manager → select your Pixel
  2. Click "About CAPI" → "Get Started"
  3. Select your integration method
  4. Configure which events to send:
EventRecommended For
PageViewAll campaigns — helps Meta build audience
ViewContentE-commerce product pages
AddToCartE-commerce
PurchaseE-commerce (critical — this is your conversion event)
LeadLead generation (critical — matches your optimization goal)
CompleteRegistrationWebinar, courses, freemium signups
ContactLocal service businesses

Step 4: Test Your CAPI Connection

In Meta Events Manager:

  1. Select your pixel → "Test Events" tab
  2. Trigger the events on your website (submit a form, complete a purchase, etc.)
  3. Check that events appear in the test panel within seconds

What to verify:

  • Events are arriving with Deduping source confirmed (CAPI and Pixel aren't double-counted)
  • Event IDs are being passed (for deduplication)
  • Parameter completeness — more parameters = better optimization

Event parameters that improve CAPI quality:

  • event_id — unique ID per event, enables deduplication
  • user_data — email, phone, country (hashed with SHA-256)
  • custom_data — value, currency, content_name, content_category

Step 5: Verify CAPI Is Working Correctly

In Meta Events Manager, check:

  1. Event Quality Score — should be "Active" with green status
  2. Matching Quality — how many user parameters Meta can match to real users
  3. No significant gap between pixel events and CAPI events

Matching Quality benchmarks:

  • 7+ parameters with good hash quality → Excellent
  • 5–6 parameters → Good
  • < 5 parameters → Poor — optimize your event setup

Step 6: Standard Events vs. Custom Events

Standard Events (Preferred)

Meta's predefined event names: Lead, Purchase, PageView, ViewContent, AddToCart, InitiateCheckout, CompleteRegistration. Better optimization because Meta knows exactly what the event means.

Custom Events

Use only when no standard event fits. Define custom name and parameters yourself. Required for: offline sales, phone calls, specific business workflows.


CAPI Common Issues and Fixes

IssueLikely CauseFix
CAPI events not appearing in MetaToken expired or permissions wrongRegenerate access token with correct permissions
Huge gap between pixel and CAPI volumesCAPI not connected properlyCheck Events Manager → CAPI status
CPA artificially high in MetaCAPI not sending offline conversions (lead gen)Verify Lead event is firing server-side
Events marked as "Unmatched"User data not being passed correctlyEnsure email/phone is hashed before sending
Duplicate events (double counting)Both pixel and CAPI firing without deduplicationPass event_id in both pixel and CAPI calls

Lead Generation — CAPI Is Especially Critical

For lead gen campaigns, the conversion happens offline — someone fills out a form, you call them, they sign up. Meta pixel can't see this.

What CAPI must send for lead gen:

  1. Lead event when form is submitted (server-side, not just pixel)
  2. Lead event when you mark a lead as qualified in your CRM (offline → Meta)
  3. Revenue data if possible (even approximate) — helps Meta optimize for quality

CRM Integrations that support CAPI for leads: HubSpot, Salesforce, Zapier, Make.com.

If you're not sending offline lead data back to Meta: Meta is optimizing for form submissions only. You're paying for leads that never convert.


Event Deduplication — Preventing Double Counting

When both Pixel and CAPI send the same event (same event_id), Meta deduplicates automatically. Requirements:

  • Same event_id in both pixel and CAPI call
  • Same event_name
  • Events fired within the same 48-hour window
  • Same user data (at least one: email, phone, client_ip, client_user_agent)

Security Notes

  • Access tokens for CAPI should be treated like passwords — store in environment variables, never in code repositories
  • Use HTTPS for all CAPI calls
  • Hash PII (email, phone) using SHA-256 before sending to Meta

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

83.66%
按下载量换算855

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills