Sign inGet started
Tracking

ChatGPT Ads conversion tracking

View as MarkdownOpen in ChatGPTOpen in Claude
Connect your agent
Add to CursorAdd to VS Code

How ChatGPT Ads counts conversions with its pixel and Conversions API, what oppref is, and how to read ad spend next to the conversions your site counts.

Updated

ChatGPT Ads counts conversions three ways: the Measurement Pixel in the browser, the Conversions API from your server, or both, with a shared event id so nothing counts twice. OpenAI adds a click id, oppref, to every ad click, and its reports credit a conversion up to 30 days after a click (7, 14 or 30) or 1 day after an impression. That's the platform's own view. nextanalytica adds yours: it reads each campaign's spend, clicks and conversions from ChatGPT Ads, counts the ad clicks on your site by oppref, and puts them next to your own sign-ups and orders, so your agent can say which campaigns return more than they cost.

We checked OpenAI's conversion tracking docs on November 29, 2026.

How does ChatGPT Ads measure conversions?

MethodHow it worksBest for
Measurement PixelA script, oaiq, on your pages: oaiq("measure", "order_created", …)Sites where conversions happen in the browser
Conversions APIYour server posts events to OpenAI with your pixel IDConversions your server confirms: a paid order, an approved sign-up
BothPixel and API send the same event with the same idThe most complete count; the first event received wins

To send both without double counting, reuse the same event_id in the pixel's options and the API event's id.

The events ChatGPT Ads knows include page_viewed, contents_viewed, items_added, checkout_started, order_created, lead_created, registration_completed, appointment_scheduled, subscription_created and trial_started, plus custom.

What is oppref?

oppref is the click id OpenAI appends to the landing page's address on every ad click. The pixel reads it and keeps it in a first-party cookie, __oppref, for 30 days, so a conversion days later still ties to the click. The Conversions API doesn't capture it for you: your server has to pass the oppref value it saved, unchanged.

nextanalytica's tag reads oppref too. A visit that lands with it counts as Paid search from ChatGPT, even when your links carry no UTM tags, and stays apart from ChatGPT's answers, which are their own AI assistants channel.

How does ChatGPT Ads attribute a conversion?

  • After a click: within 30 days by default; you can choose 7, 14 or 30.
  • After an impression: within 1 day by default, or not at all.
  • When a conversion fits both, the click wins.

Your site's analytics counts differently: by the visit the conversion happened in, and its channel. Expect the two numbers to differ, especially with view-through credit on; reading them side by side tells you more than either alone.

Why read ad spend next to your own conversions?

The platform reports what it can attribute to itself. Your analytics sees every channel the same way. With both in one place, your agent can answer:

  • "Which ChatGPT campaigns brought orders this month, and what did each cost?"
  • "Do ChatGPT ad visitors convert better or worse than Google Ads visitors?"
  • "Do people who click a ChatGPT ad also come back from ChatGPT's answers?"
  • "Which campaigns spent money with no conversions on our site?"

The skill Wasted ad spend runs that last check on a schedule: spend with no conversions, reported to your team.

How do you set it up in nextanalytica?

  1. Make an Ads API key in Ads Manager and connect ChatGPT Ads as a source. nextanalytica reads spend, impressions, clicks and conversions by campaign and day, every hour, read-only. See ChatGPT Ads.
  2. Add the tag to your site, so ad clicks count by oppref. See Add the tag.
  3. Set the tracking template from the source page, so visits also count by campaign.
  4. Send your conversions: sign-ups as events, purchases as orders. See Custom events.
  5. Ask your agent which campaigns return.

The Measurement Pixel and the Conversions API stay as they are: they feed ChatGPT Ads' own reports and bidding, and nextanalytica doesn't replace them.

Next steps

Related
  • What the tag collects: Page views, clicks, forms, scroll, errors and page speed, counted without code. What never leaves the page.
  • Add the tag: Put one script line in the head of every page. Where it goes in plain HTML, site builders and each framework.
  • Next.js analytics: Add analytics to Next.js with @nextanalytica/tag: install, events, consent and AI crawlers, counted without cookies until a yes and read by your agent.
  • Next.js custom events: Send custom events from a Next.js app with @nextanalytica/tag: sign-ups, demo requests and conversions your agent reads by channel.
  • Next.js cookie consent: Wire a cookie banner in Next.js to analytics: count without cookies until the answer, and pass the saved answer on every page.
  • Next.js revenue tracking: Record orders in a Next.js app, from the browser or from your server, so revenue ties to the visit, channel and campaign it came from.
Still have questions?
Was this page useful?