> AI agents: this is one page of nextanalytica's docs. The full index for agents: https://nextanalytica.app/llms.txt

# ChatGPT Ads conversion tracking

> 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: 2026-11-29

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](https://developers.openai.com/ads/conversion-tracking) on November 29, 2026.

## How does ChatGPT Ads measure conversions?

| Method | How it works | Best for |
| --- | --- | --- |
| Measurement Pixel | A script, `oaiq`, on your pages: `oaiq("measure", "order_created", …)` | Sites where conversions happen in the browser |
| Conversions API | Your server posts events to OpenAI with your pixel ID | Conversions your server confirms: a paid order, an approved sign-up |
| Both | Pixel and API send the same event with the same id | The 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](/docs/skills/pocket-guide/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](/docs/sources/chatgpt-ads).
2. Add the tag to your site, so ad clicks count by `oppref`. See [Add the tag](/docs/tracking/installation).
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](/docs/tracking/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

- [ChatGPT Ads](/docs/sources/chatgpt-ads)
- [AI crawlers](/docs/tracking/ai-crawlers)
- [Custom events](/docs/tracking/custom-events)
- [Revenue tracking](/docs/learn/revenue-tracking)
- [UTM tags](/docs/learn/utm-tags)
- [Traffic from ChatGPT](/docs/tracking/chatgpt-traffic)

Canonical address: https://nextanalytica.app/docs/tracking/chatgpt-ads-conversion-tracking
