ChatGPT Ads Conversion Tracking: Pixel vs. Conversions API

· 4 min read

Diagram of browser and server events flowing into ChatGPT Ads reporting

If you only take one thing from this post: set up conversion tracking before you spend a dollar on ChatGPT Ads. Without it, you can see clicks and spend but not leads or sales, and you can't use conversion-optimized bidding at all.

ChatGPT Ads gives you two ways to send conversion data. Here's how they differ and how to set them up properly.

How ChatGPT Ads tracking fits together

Three pieces work together (OpenAI docs):

  1. A data source (identified by a Pixel ID) receives events from your website or server.
  2. A conversion event setting defines which event counts as a conversion, such as a completed purchase.
  3. A campaign uses that setting for reporting and, if you choose, optimization.

Both the pixel and the Conversions API use the same Pixel ID, even if you only send server events.

Founder's take

When I use both the pixel and Conversions API, I want one customer action counted once. Sending that action through two paths only helps if the event IDs let the systems recognize it as the same event. I would rather have a trustworthy lead count than a bigger number created by duplicate reporting.
Mike Zagare, founder of Zagare Labs
Mike Zagare

Founder, Zagare Labs · Creator of PPC Entourage

Option 1: The Measurement Pixel

The pixel is a small JavaScript snippet placed near the top of your site's <head>. You initialize it with your Pixel ID and call measure when something happens:

oaiq("init", { pixelId: "YOUR-PIXEL-ID" });

// On the order confirmation page
oaiq("measure", "order_created",
  { type: "contents", amount: 8900, currency: "USD" },
  { event_id: "order_12345" }
);

Amounts use the currency's minor unit, so 8900 is $89.00.

What the pixel handles for you:

  • Click matching. When someone clicks your ad, the landing page URL carries a privacy-preserving identifier (oppref). The pixel stores it in a first-party cookie for 30 days so later conversions can be matched to the click.
  • Automatic advanced matching. When enabled, the pixel detects supported customer information on your site and hashes it (SHA-256) in the browser before sending.
  • Consent controls. Call oaiq("consent", false) before init to block measurement until a visitor consents.

Pixel weaknesses: ad blockers, browser privacy features, consent banners and pages that don't fully load can all drop events.

Option 2: The Conversions API (CAPI)

The Conversions API sends events from your server to OpenAI. It's best for actions your server confirms, such as paid orders, qualified leads in your CRM and subscription starts.

You create a separate Conversions API key and send events to OpenAI's events endpoint with your Pixel ID. Each event needs:

  • A unique event ID (your order or lead ID works well)
  • The event type (for example order_created)
  • A timestamp in Unix milliseconds
  • An action source and source URL
  • Value and currency where relevant

One step people miss: the Conversions API does not capture the oppref click identifier automatically. Capture it from the landing page URL, store it with the session or lead, and include it on the server event. Without it, matching relies on hashed customer information.

OpenAI describes the Conversions API as a more reliable tracking source than the pixel alone (OpenAI docs).

Want help launching ChatGPT Ads? Book a strategy call with Zagare Labs.

Book a strategy call

Pixel vs. Conversions API at a glance

Measurement Pixel Conversions API
Runs in Visitor's browser Your server
Setup effort Low: paste a snippet Medium: needs a developer or integration
Affected by ad blockers and consent Yes Less so
Captures click identifier Automatically You must pass oppref
Best for Page-level actions, quick start Confirmed orders, CRM leads, subscriptions

Best practice: use both, with shared event IDs

The most reliable setup sends the same conversion through both channels. To avoid counting it twice, use:

  • The same Pixel ID
  • The same event name (for example order_created)
  • The same event ID: the pixel's event_id and the Conversions API's id

OpenAI recognizes the duplicate and counts the conversion once.

Tip: Use your real order ID or lead ID as the event ID. It's unique, it's available in both the browser and the server, and it makes troubleshooting easy.

Which events to track

ChatGPT Ads supports these standard events (full list):

Event Use it for
order_created Completed purchases
lead_created Lead forms and contact requests
appointment_scheduled Bookings, demos, consultations
registration_completed Account or event sign-ups
trial_started / subscription_created SaaS trials and paid subscriptions
checkout_started, items_added, contents_viewed, page_viewed Funnel steps
custom Anything not covered above

Only standard events can be used as the optimization goal for conversion-optimized campaigns. Custom events can be tracked and reported but not optimized for.

Understanding attribution windows

Reporting defaults to a 30-day click window and a 1-day view window. You can report on 7, 14 or 30-day click windows and 0 or 1-day view windows. When a conversion qualifies for both, the click gets the credit.

When you compare numbers with Ads Manager or another tool, use the same date range, windows and time basis. Otherwise the numbers won't match.

How to test your setup

  1. Turn on the pixel's debug mode and watch your browser console.
  2. Complete a real test action, such as a test order or form submission.
  3. Check recent events for your Pixel ID. It shows a sample of events from roughly the last 15 minutes.
  4. Confirm the event type is right and the channel shows pixel_sdk (browser) or server_to_server (CAPI).
  5. Allow at least a day before judging attributed conversions in reports.

Tracking is the foundation of everything else in ChatGPT Ads. If you'd like it done right the first time, our setup service starts with exactly this.

Related service: ChatGPT Ads set up properly in about two weeks.

Frequently asked questions

Do I need both the pixel and the Conversions API?

Not strictly, but using both is the most reliable setup. OpenAI describes the Conversions API as more reliable than the pixel alone, and with shared event IDs, duplicates are removed automatically.

What attribution window does ChatGPT Ads use?

Reporting defaults to a 30-day click window and a 1-day view window. You can report on 7, 14 or 30-day click windows and 0 or 1-day view windows.

How long until conversions show up in reporting?

Conversions update through daily processing. Allow at least one day before judging conversion results.

Mike Zagare

Mike Zagare, founder of Zagare Labs

Mike Zagare founded PPC Entourage, software and an agency used by thousands of sellers, acquired by Carbon6 in 2022. He brings 10+ years in Amazon PPC and $50M+ in managed ad spend to ChatGPT Ads.

About Mike

Related guides

Let's see if ChatGPT Ads fits your business

In 30 minutes, we'll look at your business, your current advertising and your goals. You'll leave with an honest recommendation and a clear next step.

Book a strategy call