GPT Ads Guide · Guides · Free Tools · Products · Services · About · Contact

ChatGPT Ads Conversion Tracking: How to Set Up the OpenAI Pixel and Conversions API

By Masab Asif · Published Nov 23, 2026 · 8 min read

A step-by-step guide to measuring sales and leads from ChatGPT ads: creating a Pixel ID, installing the oaiq script, sending standard events, using the Conversions API without double counting, and reading view-through results.

Why Conversion Tracking Matters for ChatGPT Ads

Clicks and impressions only tell you that people saw and tapped your ad. To know whether ChatGPT ads are making money, you need to record what happens after the click: a purchase, a lead form, a booking or a free-trial sign-up. OpenAI gives advertisers two tools for this: the OpenAI Pixel, a JavaScript snippet that runs in the visitor's browser, and the Conversions API, which sends the same events from your server.

Without conversion tracking, Ads Manager can't report cost per acquisition and can't optimize campaigns toward results. If you plan to run conversion-objective campaigns, tracking is the first thing to set up.

What You Need Before You Start

  • An active OpenAI Ads Manager account (ads.openai.com) with admin access
  • Access to edit your website's code, or to your tag manager
  • A list of the actions you want to count, such as purchases, leads or sign-ups
  • If you use the Conversions API: a developer or a measurement partner, plus a Conversions API key

Step 1: Create a Data Source and Pixel ID

In Ads Manager, open the Conversions section and create a web data source. This gives you a Pixel ID. If you also plan to send server-side events, create a Conversions API key in the same place. OpenAI's help center describes conversion measurement as creating a data source and sending events through the Pixel, the Conversions API or both.

Step 2: Install the Pixel Script

Add OpenAI's loader snippet near the top of the page's head on every page of your site, using the exact snippet shown in Ads Manager or in OpenAI's developer documentation. The loader creates a queue called oaiq and loads the SDK from bzrcdn.openai.com. Then initialize it by calling oaiq("init", { pixelId: "YOUR-PIXEL-ID" }), replacing the placeholder with your own Pixel ID. During testing you can add debug: true to the init settings to log the pixel's activity in the browser console.

If your site uses a Content Security Policy, OpenAI's documentation says to allow https://bzrcdn.openai.com for scripts, https://bzrcdn.openai.com and https://bzr.openai.com for connections, and https://bzr.openai.com for images. Otherwise the browser will silently block the pixel.

Step 3: Send Conversion Events

Each conversion is recorded with a measure call: the event name, the event data, and optional settings. In OpenAI's documented example, a purchase is sent as oaiq("measure", "order_created", { type: "contents", amount: 2599, currency: "USD" }). OpenAI asks for whole numbers (integers) in the amount field, so check the Supported Events page for the exact unit before you go live.

Standard event names listed in OpenAI's pixel documentation include:

  • page_viewed and contents_viewed
  • items_added and checkout_started
  • order_created (purchases)
  • lead_created (lead forms)
  • registration_completed
  • appointment_scheduled
  • subscription_created and trial_started

For anything else, use a custom event: the event name is "custom", the data is { type: "custom" }, and you add your own name in the options, for example custom_event_name: "quote_requested". Custom names can be 1 to 64 characters, using letters, numbers, underscores or dashes, and can't reuse a standard event name.

Tip: fire the event on the confirmation step (the thank-you page or the success response), not when the button is clicked, so failed submissions aren't counted.

Step 4: Keep the Click Reference Through Redirects

When someone clicks a ChatGPT ad, the landing URL carries a parameter called oppref. The pixel saves it in a first-party cookie that lasts 30 days, which is how a later purchase is linked back to the ad. OpenAI's help center tells advertisers to preserve oppref through redirects and landing-page navigation. If your site redirects visitors (for example from a short link or a regional page) and drops URL parameters, conversions will go missing.

Browser pixels miss some conversions because of ad blockers, browser privacy features and closed tabs. The Conversions API sends events from your server instead. You can run both, as long as you avoid counting the same sale twice:

  1. Generate one unique event_id for each conversion.
  2. Send it in the pixel call as an option: { event_id: "order-10482" }.
  3. Send the same event_id, event name and Pixel ID in the server event.

OpenAI matches duplicates on Pixel ID, event name and event_id, keeps the first event it receives and ignores the rest.

If you don't have a developer, OpenAI lists third-party tools that can do this for you. Stape, for example, provides Google Tag Manager templates for both the Pixel and the Conversions API, and analytics and attribution platforms such as Branch, AppsFlyer, Northbeam and Rockerbox have integrations.

If you need visitor consent before tracking (for example in the UK or EU), call oaiq("consent", false) before you initialize the pixel, then oaiq("consent", true) once the visitor accepts. Events blocked while consent is off are not sent later.

Click-Through vs View-Through Conversions

Ads Manager reports two kinds of conversions:

  • Click-through conversions: the person clicked your ad and converted within your campaign's click window. These appear in the main Conversions column and drive CPA, conversion rate, bidding and optimization.
  • View-through conversions: the person saw your ad, didn't click, and converted within one day. OpenAI reports these as a separate campaign-level metric that is not included in Conversions. If both apply, the click wins.

Treat view-through numbers as a signal of awareness, not as sales you can credit fully to the ad.

Why Your Numbers Won't Match Google Analytics

OpenAI notes that Ads Manager, your analytics tool and other ad platforms can report different conversion totals. Common reasons:

  • Different attribution windows and models (last click vs data-driven)
  • View-through conversions counted by one tool but not another
  • Ad blockers and consent choices affecting the browser pixel
  • Time zones and reporting delays

Pick one source of truth for budget decisions, and use UTM parameters on your ad links so you can compare ChatGPT traffic against other channels in your own analytics. Our free UTM builder creates tagged links in seconds.

Quick Setup Checklist

  • Pixel ID created in Ads Manager
  • Loader snippet on every page, and the init call with your Pixel ID
  • Content Security Policy updated, if you use one
  • measure calls on confirmation pages for each key action
  • oppref kept through redirects
  • Conversions API (or a partner) added, with a shared event_id for deduplication
  • Consent handling in place where the law requires it
  • Test conversion seen in Ads Manager before launch

Frequently Asked Questions

Do I need the pixel to run ChatGPT ads? No, you can run traffic or awareness campaigns without it. But you need conversion tracking to see cost per acquisition and to optimize toward sales or leads.

Can I install the OpenAI Pixel with Google Tag Manager? Yes. Add the loader and init call as a tag on all pages, and fire measure tags on your conversion triggers. Stape also offers ready-made GTM templates.

How long does a click stay attributable? The pixel stores the click reference for 30 days in a first-party cookie, and attribution follows the click window configured for your campaign. View-through conversions use a fixed one-day window.

What if my landing page is on a different domain from my checkout? Install the pixel on both, and make sure the oppref parameter is passed along when visitors move between domains.

Sources: OpenAI developer documentation (JavaScript Pixel) and OpenAI Help Center articles on conversion measurement and measurement partner integrations, checked November 2026. Ads Manager features change often, so confirm details in your own account.