What problem does it solve?
Adding advertising conversion tracking to a codebase is error-prone: secrets leak into client bundles, Pixel and server events double-count, and events fire on clicks instead of confirmed conversions. This Skill guides Codex through safely instrumenting or extending repositories with the OpenAI Ads Measurement Pixel and Conversions API (CAPI), producing small reviewable diffs and a structured setup report.
Core Features & Use Cases
- Pixel and CAPI instrumentation: Adds browser Pixel initialization, server-side CAPI event dispatch, and shared event_id deduplication for Pixel+CAPI setups.
- Safety-first verification: Ships static helper scripts that detect exposed CAPI secrets, unsupported event names, legacy payload fields, and unsafe validate_only defaults.
- Incremental reruns: Inventories existing OpenAI Ads and other ad platform integrations (Meta, Google, TikTok, Segment) to extend existing helpers instead of duplicating them.
- Use Case: An advertiser asks Codex to add conversion tracking to a Next.js checkout flow; the Skill instruments order_created via CAPI with oppref attribution, adds the Pixel with consent gating, verifies with the helper scripts, and produces a deployment-ready setup report.
Quick Start
Use the openai-ads-conversions-setup skill to add OpenAI Ads Pixel and Conversions API tracking to this repository and produce a setup report.