Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

openai-ads-conversions-setup

БесплатноЗапускает вложенные скриптыНе проверен

Guide Codex through instrumenting or extending repositories with OpenAI Ads Measurement Pixel and optional Conversions API (CAPI). Use when adding Ads…

openaiот openai★ 8 494 звезды на GitHub

Об этом скилле

OpenAI Ads Conversions Setup

Overview

Use this skill to add, extend, or review OpenAI Ads conversion instrumentation in an advertiser repository. It supports browser Pixel setup, server-side Conversions API setup, Pixel+CAPI deduplication, and incremental reruns after the app adds new pages or flows, while keeping diffs small and avoiding secret exposure.

Use only public OpenAI Ads documentation and repository-local patterns for implementation choices. If the docs are unavailable or unclear, ask for clarification or leave a documented follow-up instead of relying on undocumented behavior.

Required Inputs

Before editing code, identify:

  • Setup mode: pixel, capi, or pixel+capi.
  • Frontend/runtime surface: browser JavaScript/TypeScript, server-rendered web, backend-only, mobile/native, or unknown.
  • Pixel ID, if Pixel is in scope.
  • CAPI authentication plan, if CAPI is in scope: existing secret/env var name, secret manager path, or placeholder-only.
  • Conversion events to instrument and where they occur in the product flow.
  • Whether this is a first-time setup or an incremental rerun extending existing OpenAI Ads instrumentation.
  • Whether the desired behavior is propose patch, apply local patch, or review existing integration.

Treat the linked OpenAI Ads docs as the source of truth for exact SDK syntax, endpoint shape, supported events, request fields, and validation rules. When browsing is available, check the current docs before writing concrete calls; if the docs conflict with this skill, follow the docs and mention the conflict in the setup report. When browsing is unavailable, use this skill's references as a fallback. Do not invent SDK functions, event names, request schemas, or endpoint paths.

Primary docs to prefer when available:

  • https://developers.openai.com/ads/measurement-pixel
  • https://developers.openai.com/ads/conversions-api
  • https://developers.openai.com/ads/supported-events

Workflow

  1. Inspect the repository shape.

    • Detect framework, package manager, router, server runtime, frontend surface, env convention, test commands, and existing analytics integrations.
    • Determine whether a browser JavaScript Pixel is supportable. If the customer-facing surface is mobile/native, backend-only, or otherwise lacks a safe browser JS insertion point, use CAPI-only and report that Pixel was skipped.
    • Search for existing OpenAI Ads instrumentation: Pixel initialization, CAPI clients, event helpers, config/env vars, dedupe IDs, attribution context, tests, and setup docs.
    • Search for existing pixels or server conversion APIs such as Meta Pixel/CAPI, Google Ads/gtag, TikTok Events API, Pinterest, Snap, Segment, RudderStack, or custom analytics wrappers.
    • Use other ad platform integrations as evidence for local conversion boundaries, consent gates, config/secret patterns, non-blocking dispatch, dedupe IDs, and tests. Do not copy their event names, payload schemas, user matching fields, credential exposure patterns, or retry behavior.
    • Prefer the repository's existing analytics abstraction over adding a parallel abstraction. If OpenAI Ads instrumentation already exists, treat its helper/client/config pattern as canonical.
    • Search for existing config and secret retrieval patterns before choosing env vars: framework settings, typed config objects, deployment env conventions, Vault, cloud secret managers, Kubernetes secrets, Doppler, 1Password, or similar.
  2. Confirm the setup plan.

    • For Pixel, identify a single browser-only initialization point, event call sites, and any approved browser user-data path.
    • For CAPI, identify a server-only execution point, secret retrieval pattern, and outbound HTTP/client pattern.
    • For Pixel+CAPI, define one logical Pixel ID and a stable event_id strategy so browser and server events can deduplicate.
    • For CAPI web events, define an oppref strategy and a sanitized source_url strategy before editing. Prefer a server-readable raw __oppref cookie value; if unavailable, pass minimal optional conversion context from the browser to an existing server conversion request. For deduped Pixel+CAPI events, make CAPI source_url describe the same browser conversion context as the paired Pixel event when practical. If the browser fires the Pixel event before navigation and the server would otherwise derive a different URL, pass the browser's current sourceUrl to the server and validate it against a trusted request/configured origin before using it. If a configured canonical site origin exists, prefer it for fallback source_url construction while still allowing the request origin as trusted.
    • For CAPI-only web setup, explicitly plan how the server event will include matching and attribution context that the Pixel would otherwise help provide: oppref, source_url, client user_agent, trusted client IP, and documented hashed user identifiers when safely available.
    • If adding a CAPI validation
Полный SKILL.md на GitHub

Установить openai-ads-conversions-setup в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yamlreferences/conversions-api.mdreferences/framework-patterns.mdreferences/measurement-pixel.mdreferences/report-schema.mdreferences/verification-checklist.mdscripts/verify_ads_setup.pyscripts/verify_capi_secret_not_exposed.py

FAQ

Что делает скилл openai-ads-conversions-setup?

Guide Codex through instrumenting or extending repositories with OpenAI Ads Measurement Pixel and optional Conversions API (CAPI). Use when adding Ads conversion tracking, browser pixel events, server-side conversion events, event_id deduplication, CAPI secret placeholders, incremental conversion coverage, or validating Ads conversion setup. Applies to local repositories and PR review contexts; prioritize safe, reviewable diffs and never place API keys or secrets in source code or client bundles.

Как установить скилл openai-ads-conversions-setup?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл openai-ads-conversions-setup запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить openai-ads-conversions-setup с