On this page
ChatGPT ads began in the US in February 2026, and self-serve Ads Manager opened to US businesses in May, with a pixel and a Conversions API for measuring results. In October OpenAI added more countries. This guide is for store owners who run ChatGPT ads, or plan to, and want to know which sales the ads bring in.
Why conversion tracking matters for ChatGPT ads
Without tracking, Ads Manager sees clicks but not what happens next. You can’t tell which ads pay for themselves, and the ads can’t learn which people and products lead to sales. Conversion tracking closes the gap: your store tells OpenAI when a visitor from an ad views a product, adds it to the cart and buys.
OpenAI offers two senders, and most stores should use both (opens in a new tab). The table shows how they differ.
| Measurement Pixel | Conversions API | |
|---|---|---|
| Runs in | The shopper’s browser | Your server |
| Set up with | Pixel ID and a script on every page | Pixel ID and a Conversions API key |
| Click ID (oppref) | Read from the landing URL and kept in a cookie | Not picked up: your server must send it |
| Lost to | Ad blockers, browser privacy settings, closed tabs, consent refused | Server errors, unless events are queued and retried |
| Best for | Browsing events and quick setup | Orders and leads you can’t afford to miss |
The Measurement Pixel
OpenAI’s browser tag is called the Measurement Pixel (opens in a new tab). It’s a script loaded from bzrcdn.openai.com that adds a global function, oaiq. Your pages call it with three commands:
initstarts the pixel with your Pixel ID.consentturns tracking on or off for the visitor.measuresends an event, such as an order, with its details.
The pixel is quick to add and catches browsing events well. Its weak spot is that it runs in the browser: ad blockers, strict privacy settings and shoppers who close the tab before the confirmation page loads all stop it.
The Conversions API
The Conversions API (opens in a new tab) sends events from your server straight to OpenAI. It uses the same Pixel ID plus a separate Conversions API key, a secret that stays on your server. Because no browser is involved, ad blockers and closed tabs don’t affect it, which makes it the reliable way to send orders and leads.
Server events need more care than the pixel. Each one should carry the information that lets OpenAI match it to a person who saw the ad: the click ID, a hashed email address or customer ID, and the visitor’s IP address and browser. If the server can’t reach OpenAI for a moment, the event should wait and be sent again, rather than be lost.
oppref: how a sale is tied to an ad click
When someone clicks a ChatGPT ad, the link to your store carries a click ID in a parameter called oppref. The Measurement Pixel reads it from the landing page address and keeps it in a first-party cookie, __oppref, for 30 days. When the visitor buys later in that time, the order can be tied back to the click.
Keep any UTM tags you already use for your own analytics. They don’t replace oppref: Ads Manager attributes conversions with its own click ID and matching data.
Counting each sale once
If the pixel and the server both send an order, OpenAI has to know it’s the same order. According to OpenAI’s conversion tracking guide (opens in a new tab), two events are treated as one when they have:
- The same Pixel ID.
- The same event name, such as
order_created. - The same ID: the pixel’s
event_idequals the API event’sid.
Build the ID from something both sides know, such as the order number, so the browser and the server arrive at the same value without talking to each other.
What to track
Orders matter most, but a new campaign has few of them. Earlier steps give the ads more to learn from while sales build up. OpenAI’s standard events include order_created and lead_created, and custom events cover anything else.
| Event | When it’s sent | Why it helps |
|---|---|---|
| Product viewed | A product page opens | Shows which products the ad brought people to. |
| Added to cart | A product goes in the cart, including AJAX carts | An early sign of buying interest, useful while orders are few. |
| Checkout started | Checkout opens | Shows where shoppers drop out. |
| Order (order_created) | An order is placed, or once it’s paid | The conversion most campaigns should optimise for. Send the value and currency. |
| Lead (lead_created) | A quote request, contact form or phone click | For B2B stores and products sold by quote. |
Decide whether an order counts when it’s placed or only once it’s paid. Stores with bank transfer or cash on delivery often prefer “paid”, so unpaid orders don’t teach the ads the wrong thing.
Consent and privacy
The pixel assumes consent unless told otherwise. Calling oaiq("consent", false) stops events and deletes its cookies, including __oppref. If your store asks visitors for cookie consent, connect your cookie banner to that command so the pixel waits for a yes.
- Hash personal data such as email addresses one way (SHA-256) before it leaves your server.
- Send only what you need, and say in your privacy policy that you share conversion data with OpenAI.
- Apply the same choice on the server. If a visitor refused tracking, don’t send their events through the Conversions API either.
Check it works before you spend
- The script is on every page, including after a theme change.
- Place a test order from a landing URL with a test
opprefand watch it arrive in Ads Manager. - Try it with an ad blocker on. The server copy should still arrive.
- Check the order appears once, not twice.
- Test AJAX add to cart and one-page checkout, which don’t load a new page.
Common problems
| Problem | What to do |
|---|---|
| Ads Manager shows fewer orders than your store | Ad blockers and closed tabs stop the pixel. Send orders from the server through the Conversions API as well. |
| Orders are counted twice | The pixel and the server send the same order with different IDs or event names. Use one ID for both, as the pixel’s event_id and the API event’s id. |
| Server orders aren’t tied to the ad | The Conversions API doesn’t read oppref. Keep it from the landing URL and send it with the order, and add a hashed email. |
| Orders are missing after AJAX add to cart or one-page checkout | The theme sends these without a page load. Track the actions themselves, not only the pages. |
| No events at all after a theme change | The new layout doesn’t render the place where the script goes. Check the script is on the home page. |
| Events stop for some visitors | They refused consent. That’s expected: the pixel stops and deletes its cookies when consent is withdrawn. |
ChatGPT ads tracking in nopCommerce
nopCommerce 5.00 ships a ChatGPT Shopping plugin for the product feed (opens in a new tab), but nothing for the pixel or the Conversions API. Our ChatGPT Ads plugin, for nopCommerce 4.70, 4.80, 4.90 and 5.00, covers everything in this guide:
- The Measurement Pixel and server events through the Conversions API, with one shared ID per event.
opprefkept for the visit and sent with every server event, plus hashed email and customer ID.- Product views, carts, checkout, orders (placed or paid), registrations and leads, including AJAX carts and one-page checkout.
- Theme check, which finds add-to-cart and checkout actions your theme adds, and custom conversions for phone clicks and forms.
- Three consent modes, events queued and retried, and an events list that explains errors in plain English.
- A daily product feed uploaded to OpenAI by SFTP, with price and stock updates every 15 minutes.
For what goes in that feed and how OpenAI reads it, see our ChatGPT product feed guide.
Frequently asked questions
Do I need both the pixel and the Conversions API?
You can start with the pixel alone. Adding the Conversions API means orders still count when a browser blocks the pixel, a shopper closes the tab early or payment finishes on another site. OpenAI deduplicates the two when they share the event ID and name.
What is oppref?
A click ID that ChatGPT adds to the link when someone clicks your ad. The Measurement Pixel reads it from the landing page address and keeps it in a first-party cookie, __oppref, for 30 days. It’s what ties a later sale to the ad click.
Can I use UTM parameters instead?
Keep UTM parameters for your own analytics, but they don’t replace oppref. Ads Manager attributes conversions using its own click ID and the matching data you send, not your UTM tags.
Does the Conversions API need customer data?
It works best with it. A hashed email address, a customer ID, the IP address and user agent help OpenAI match a server event to someone who saw the ad. Hash personal data one way before it leaves your server, and only send it where your privacy policy and consent allow.
Where do I find the Pixel ID and Conversions API key?
In OpenAI Ads Manager, on the Conversions tab. The Pixel ID goes in the script and in every server event; the Conversions API key is a secret and belongs only on your server.
Is there a ChatGPT ads plugin for nopCommerce?
Yes. Cartenvo’s ChatGPT Ads plugin for nopCommerce 4.70, 4.80, 4.90 and 5.00 installs the Measurement Pixel, sends server events through the Conversions API with oppref and a shared event ID, and uploads the product feed.
Next steps
Get the Pixel ID and a Conversions API key from Ads Manager. Add the pixel, then send orders from your server with oppref and the same event ID. Place a test order with an ad blocker on, and check it arrives once. Only then start spending.
Running nopCommerce? The plugin does this in five steps. On another platform, or need something custom? Email contact@cartenvo.com.
ChatGPT and OpenAI are trademarks of OpenAI. Cartenvo is not affiliated with or endorsed by OpenAI.