ChatGPT Ads Conversion Tracking: The Complete 2026 Setup Guide

Last updated: November 2026 · By MD Habib, conversion tracking specialist

ChatGPT is now an ad channel. OpenAI opened a self-serve Ads Manager in May 2026, and since August 31, 2026, advertisers in Europe can create an account and generate a measurement pixel too. The question every marketer asks next is simple: did those ads actually make money?

That is what ChatGPT ads conversion tracking answers. This guide walks you through the full setup, from a five-minute pixel install to a server-side Conversions API that survives ad blockers. It also covers deduplication, UTM tagging for GA4, and the mistakes that quietly break attribution. It is written from the same playbook we use for conversion tracking at Habib Analytics on GA4, Meta and Google Ads.

Quick answer: To track ChatGPT ads conversions, create a Pixel ID in the Conversions tab of OpenAI Ads Manager, install the OpenAI pixel (oaiq.min.js) in your site’s <head>, and fire oaiq("measure", ...) events such as order_created or lead_created when a conversion happens. For the most reliable data, also send the same events server-side through the OpenAI Conversions API, using a shared event ID so each conversion is counted once.

What is ChatGPT ads conversion tracking?

ChatGPT ads conversion tracking is the process of linking a valuable action on your website (a purchase, lead, sign-up or booking) back to the ChatGPT ad click that caused it. OpenAI calls the product OpenAI Ads, managed at ads.openai.com, but the ads run inside ChatGPT, so most people say “ChatGPT ads.” The setup is the same either way.

Before this existed, ChatGPT ad reports showed little more than impressions and clicks. Without conversion data you cannot calculate cost per acquisition or ROAS, and you cannot run conversion-optimized campaigns, which bid toward people likely to convert.

Key terms you need to know

  • Pixel ID: The unique ID for your data source, created in the Conversions tab of OpenAI Ads Manager. Every tracking method ties back to it.
  • oaiq: The JavaScript function name of the OpenAI browser pixel, loaded from https://bzrcdn.openai.com/sdk/oaiq.min.js.
  • oppref: OpenAI’s privacy-preserving click reference. It is added to your landing page URL (?oppref=...) when someone clicks your ad. The pixel saves it in a first-party __oppref cookie.
  • Conversions API (CAPI): OpenAI’s server-to-server endpoint for sending events from your backend.
  • Event ID: A unique ID you attach to a conversion so the same event sent by pixel and server is counted only once.
  • oCPC: Conversion-optimized campaigns. You still pay per click, but delivery is optimized toward one tracked conversion event.

3 ways to track ChatGPT ads conversions

OpenAI gives you three reporting methods, and all of them connect to the same Pixel ID. Most websites should use the JavaScript pixel plus the Conversions API together. The image tag is only a fallback for pages where JavaScript cannot run.

MethodWhere it runsCaptures oppref automatically?Best for
JavaScript pixel (oaiq)BrowserYesQuick setup, all websites
Conversions APIYour serverNo, you must pass itPurchases, leads, revenue events
Image tag (1×1 img)Browser, no JSNonoscript fallback only

Our recommendation: Start with the pixel today so data starts flowing. Then add the Conversions API for your highest-value events. OpenAI’s own documentation describes the Conversions API as the more reliable source and encourages using it whenever possible.

How to set up the OpenAI pixel (step by step)

You can install the OpenAI pixel in about five minutes. Create a Pixel ID, paste the base code into your site’s head, fire a measure event on each conversion, and test it in the browser. Here is each step.

Step 1: Create your Pixel ID

Log in to OpenAI Ads Manager, open the Conversions tab and create a new data source. Copy the Pixel ID. If you plan to use server-side tracking later, generate a Conversions API key here as well.

Step 2: Install the base code

Paste this snippet as high as possible inside the <head> of every page. Loading it early means conversions are not lost while the rest of the page loads.

<script>
  (function (w, d, s, u) {
    if (w.oaiq) return;
    var q = function () { q.q.push(arguments); };
    q.q = [];
    w.oaiq = q;
    var js = d.createElement(s);
    js.async = true;
    js.src = u;
    var f = d.getElementsByTagName(s)[0];
    f.parentNode.insertBefore(js, f);
  })(window, document, "script", "https://bzrcdn.openai.com/sdk/oaiq.min.js");

  oaiq("init", { pixelId: "YOUR_PIXEL_ID", debug: true });
</script>

pixelId is the only required value. Keep debug: true while testing, then remove it before going live.

Using Google Tag Manager? Add the snippet in a Custom HTML tag that fires on All Pages, as early as possible. WordPress? Add it through your theme’s wp_head hook, a header-code plugin, or GTM. Shopify? Several Shopify apps now install the pixel and server-side events without theme edits.

Step 3: Fire a conversion event

The pixel does not auto-track page views or conversions. You call measure yourself when the action happens:

// Purchase: amount is in cents (2599 = $25.99)
oaiq("measure", "order_created", {
  type: "contents",
  amount: 2599,
  currency: "USD"
}, { event_id: "order_12345" });

// Lead form submitted
oaiq("measure", "lead_created", { type: "customer_action" });

The call takes four arguments: the command, the event name, the event data, and options. Two rules matter here. Money is always an integer in the smallest currency unit, with a 3-letter ISO currency code. And event_id belongs in the fourth argument (options), not in the event data.

Step 4: Handle cookie consent (GDPR)

If you use a consent banner, set consent to false before init, then switch it on when the user agrees:

oaiq("consent", false);
oaiq("init", { pixelId: "YOUR_PIXEL_ID" });
// after the user accepts measurement cookies
oaiq("consent", true);

Events blocked while consent is false are not replayed later.

Step 5: Test and verify

Load your site with debug on (you can append ?oppref=test to a landing URL to check that the __oppref cookie is set), complete a test conversion, and check the browser console and the Network tab for requests to bzr.openai.com. If you run a Content Security Policy, allow bzrcdn.openai.com for scripts and bzr.openai.com for connections.

OpenAI ads standard events (full list)

OpenAI supports 10 standard events plus a custom option, and each event must use one specific data type. Pair an event with the wrong type and it is rejected. Use standard events wherever possible, because custom events cannot be used as optimization goals in conversion-optimized campaigns.

Event nameData typeUse it when
page_viewedcontentsA key page loads
contents_viewedcontentsA user views a product or content item
items_addedcontentsAdd to cart
checkout_startedcontentsCheckout begins
order_createdcontentsA purchase is completed
lead_createdcustomer_actionA lead or contact form is submitted
registration_completedcustomer_actionAn account or event sign-up finishes
appointment_scheduledcustomer_actionA demo, call or meeting is booked
subscription_createdplan_enrollmentA paid subscription starts
trial_startedplan_enrollmentA free trial starts
customcustomAnything not covered above

Mapping tip for Shopify and WooCommerce: Product view maps to contents_viewed, add to cart to items_added, checkout to checkout_started, and purchase to order_created. For custom events, set the name in the options object with custom_event_name (letters, numbers, underscores or dashes, up to 64 characters).

How to set up the OpenAI Conversions API

The OpenAI Conversions API sends conversions from your server straight to OpenAI, so ad blockers, Safari’s tracking protection and closed tabs cannot drop them (the same principle behind server-side tracking for GA4 and Meta). You POST events to one endpoint with your Pixel ID and API key. The one thing you must handle yourself is the oppref value.

Step 1: Save oppref on your server

The browser pixel stores oppref in the __oppref cookie, but the Conversions API does not read it for you. Read that cookie (or the oppref URL parameter) during checkout or form submission and store it with the order, lead or user record. Skipping this is the most common reason server-side conversions show up unattributed.

Step 2: Send the event from your backend

curl -X POST "https://bzr.openai.com/v1/events?pid=YOUR_PIXEL_ID" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "validate_only": false,
    "events": [{
      "id": "order_12345",
      "type": "order_created",
      "timestamp_ms": 1767225600000,
      "oppref": "VALUE_FROM_COOKIE",
      "source_url": "https://example.com/thank-you",
      "action_source": "web",
      "data": { "type": "contents", "amount": 2599, "currency": "USD" }
    }]
  }'

Key rules to follow:

  • timestamp_ms must be within the last 7 days and no more than 10 minutes in the future.
  • source_url is required when action_source is web. Other sources include offline, phone_call and physical_store, which is useful for CRM uploads of closed deals.
  • You can batch up to 1,000 events per request, but if one event fails, the whole batch fails.
  • Use "validate_only": true while developing to check payloads without saving them.
  • Never call this endpoint from browser JavaScript. Your API key must stay on the server.

Step 3: Deduplicate pixel and server events

If the pixel and the server both report the same purchase, OpenAI counts it once only when three things match: the same Pixel ID, the same event name, and the same event ID. In practice, use your order ID as the pixel’s event_id and the API’s id. For custom events, custom_event_name must also match. Never reuse one static ID for every conversion.

A simple flow that works for WooCommerce, Laravel, Next.js or any stack: capture oppref on landing, save it with the order, fire the pixel on the thank-you page with event_id set to the order ID, then send the same event server-side from your order-complete hook.

How to track ChatGPT ads in GA4 (UTM setup)

OpenAI Ads Manager lets you add tracking parameters at the campaign, ad group and ad level, with placeholders that fill in automatically at click time. Use a consistent UTM pattern so ChatGPT ad traffic shows up as its own channel in GA4 instead of blending into organic or referral traffic.

ParameterRecommended valueWhy
utm_sourcechatgptOne stable, lowercase source name
utm_mediumpaid-aiKeeps AI ad spend separate from cpc and paid-social
utm_campaignyour-campaign-nameHuman-readable name in reports
utm_id{campaign_id}Matches Ads Manager campaign IDs
utm_term{ad_group_id}Compare ad groups (context hints)
utm_content{ad_id}Compare creatives

Paste this into the ad group’s tracking parameters field:

utm_source=chatgpt&utm_medium=paid-ai&utm_campaign=spring-sale&utm_id={campaign_id}&utm_term={ad_group_id}&utm_content={ad_id}

Do not add oppref to your UTMs; the pixel picks it up from the URL on its own. In GA4, create a custom channel group rule where medium equals paid-ai, so ChatGPT ads get their own row in acquisition reports. If your GA4 ecommerce data does not match your store’s real orders yet, fix that first, because every platform downstream learns from it. Our GA4 ecommerce tracking service covers exactly that.

7 common ChatGPT ads tracking mistakes

Most broken ChatGPT ads setups fail for the same few reasons. Missing oppref on server events and missing event IDs cause most of the damage. Check your setup against this list before you spend a serious budget.

  1. Not saving oppref server-side. The Conversions API does not read the cookie for you, so server events arrive unattributed.
  2. Sending money as decimals. 25.99 is wrong; send 2599 with "currency": "USD".
  3. Putting event_id in the wrong argument. It goes in the fourth (options) argument of measure, not in the event data.
  4. No deduplication. Pixel and server both report the purchase without a shared ID, so conversions double. This is the same problem stores often see with Meta Pixel and CAPI.
  5. Redirects that strip the URL. If a redirect drops ?oppref=, attribution is lost. Preserve query strings through every hop.
  6. Using custom events as the campaign goal. Custom events cannot drive conversion-optimized campaigns; map to a standard event.
  7. Ignoring consent. EU and UK traffic needs the pixel wired to your cookie banner. The same applies to Google Consent Mode v2 for your other tags.

Quick setup checklist

  • ☐ Pixel ID and Conversions API key created in Ads Manager
  • ☐ Base pixel in the head of every page, debug removed
  • ☐ measure events on each real conversion, using standard event names
  • ☐ oppref saved with orders, leads and users
  • ☐ Conversions API sending high-value events with matching event IDs
  • ☐ UTMs set at ad group level; paid-ai channel created in GA4
  • ☐ Consent wired to the cookie banner
  • ☐ Test conversions checked against real backend orders

Not sure where your setup stands? Take the free 30-second tracking check to score your current GA4, Meta and Google Ads tracking.

Frequently asked questions

Can you track conversions from ChatGPT ads?

Yes. OpenAI Ads supports conversion tracking through a JavaScript pixel, a server-side Conversions API and an image tag fallback. You create a Pixel ID in the Conversions tab of Ads Manager and send events such as order_created or lead_created when a conversion happens.

Is OpenAI Ads the same as ChatGPT ads?

Yes. OpenAI Ads is the official name of the platform at ads.openai.com, and the ads appear inside ChatGPT. The tracking setup, Pixel ID and Conversions API are the same whichever name you use.

What is oppref in ChatGPT ads?

oppref is OpenAI’s click reference. It is added to your landing page URL when someone clicks a ChatGPT ad. The pixel stores it in a first-party cookie called __oppref, and you must forward it with server-side events so conversions are attributed to the ad.

Do I need the Conversions API, or is the pixel enough?

The pixel alone works and is enough to get started. OpenAI recommends adding the Conversions API because browser events get blocked by ad blockers and privacy features. For purchases and leads, use both with a shared event ID.

Does the OpenAI pixel track page views automatically?

No. The OpenAI pixel does not auto-track page views or conversions. You call oaiq(“measure”, …) for every event you want to record, including page_viewed.

How do I see ChatGPT ads traffic in GA4?

Add UTM parameters in the tracking parameters field of Ads Manager, such as utm_source=chatgpt and utm_medium=paid-ai. Then create a GA4 custom channel group for the paid-ai medium so ChatGPT ads appear as their own channel.

What is the attribution window for ChatGPT ads?

OpenAI matches conversions to the attribution window you set on your campaign. Where view-through reporting is available, it uses a one-day window after an eligible impression, and a click-through always takes priority over a view.

Can I track ChatGPT ads on Shopify or WordPress?

Yes. Several Shopify apps and WordPress plugins now install the OpenAI pixel and Conversions API without code. You can also add the pixel through Google Tag Manager on any platform.

Conclusion

ChatGPT ads conversion tracking takes an afternoon to start and a few days to perfect. Install the OpenAI pixel today, fire standard events on real conversions, then add the Conversions API with shared event IDs and saved oppref values. Clean data is what makes conversion-optimized campaigns work, so the server-side step pays for itself.

ChatGPT ads should not live in a silo, either. The same discipline (one source of truth, server-side events, deduplication, consent) should run across GA4, Meta Conversions API and Google Ads Enhanced Conversions.

Want it done for you? Book a free 15-minute tracking audit and get a clear list of what your ChatGPT, GA4, Meta and Google Ads tracking is missing. Running an agency? See our white-label tracking service for agencies. For more guides, browse the Habib Analytics blog.

Sources

ChatGPT Ads tracking works best inside a full setup. See ecommerce conversion tracking for online stores, or SaaS conversion tracking for apps and subscriptions.

1 thought on “ChatGPT Ads Conversion Tracking: The Complete 2026 Setup Guide”

  1. Pingback: Meta Ads Shows More Purchases Than Shopify? How to Fix It

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top