← Blog

Guide8 min read

What Is the OpenAI Pixel? How the ChatGPT Ads Pixel Works (and When You Need More Than the Pixel)

The OpenAI pixel is the browser script that measures what ChatGPT ad visitors do on your site. Here is how it loads, what it captures (oppref, cookies, events, hashed customer data), how consent works, how it behaves on Shopify, and when the Conversions API should sit next to it.

The short version

  • The OpenAI pixel (OpenAI calls it the Measurement Pixel) is a small JavaScript SDK. You load it on your site, initialize it with your Pixel ID, and call oaiq("measure", ...) when something happens, such as a purchase.
  • It captures the oppref click reference from the ad's landing URL, keeps it in a first-party __oppref cookie, and adds the page origin and a timestamp to every event.
  • Consent is on by default unless you set it to false first. Automatic advanced matching is on by default for web pixels outside Japan.
  • A browser pixel only reports what gets out of the browser. OpenAI suggests pairing it with the server-side Conversions API, using shared event IDs.
  • On Shopify, keep one sender per Pixel ID, whichever route you choose.

"OpenAI pixel" is one of the phrases Shopify merchants search most when they start with ChatGPT Ads. Our step-by-step install guide covers installation. This post explains what the pixel is and does, from OpenAI's own docs and help center, so you can decide whether it is enough for your store.

What is the OpenAI pixel?

OpenAI describes the Measurement Pixel as a browser SDK for measuring website events that can be attributed to ads in ChatGPT. Its help center calls it the "OpenAI Pixel"; many merchants say ChatGPT Ads pixel. Same thing. It is one of three ways to send conversion events, all reporting into a data source identified by one Pixel ID:

Measurement PixelImage tagConversions API
Runs inThe visitor's browser (JavaScript)The visitor's browser (hidden 1x1 image)Your server
EventsStandard and custom web eventsOne event per page loadStandard and custom events, plus app installs and opens
Hashed customer dataYes, plus automatic advanced matchingNoYes, plus the pixel's browser reference
Captures oppref for youYesNoNo, you pass it

A server-only setup still needs a Pixel ID, but OpenAI says it does not require installing the browser pixel.

How does the OpenAI pixel work?

OpenAI's install snippet creates a small queue called oaiq, so calls made before the script loads are not lost, and loads the SDK asynchronously from bzrcdn.openai.com. OpenAI asks you to put it near the top of the <head> on every page where you want to capture conversions. Then you initialize it and send events:

oaiq("init", { pixelId: "<YOUR-PIXEL-ID>", debug: true });

oaiq("measure", "order_created", {
  type: "contents",
  amount: 2599,
  currency: "USD"
});

A measure call takes the event name, a data object whose type matches that event's data shape, and optional options such as an event_id. Amounts are integers in the currency's minor unit, so 2599 is $25.99. The optional debug: true logs SDK activity to the browser console while you test; OpenAI notes it does not keep test events out of your reporting.

What is oppref, and what else does the pixel handle automatically?

When someone clicks a ChatGPT ad, OpenAI adds a click reference called oppref to the landing page URL. OpenAI calls it a privacy-preserving identifier; it is how a visit is linked back to an ad click. Per OpenAI's docs, the pixel:

  • Captures oppref from the landing URL and stores it in a first-party __oppref cookie for 30 days, restarting the clock each time it sees the parameter again.
  • Keeps a __obref cookie, a random browser reference for your site that lasts 365 days. Server events can pass it to the Conversions API as user.obref.
  • Adds the page origin as source_url, timestamps each event, and batches closely grouped calls.
  • Runs automatic advanced matching when enabled.

Browser restrictions or cleared cookies can shorten those lifetimes. OpenAI's help center also asks you to preserve oppref through redirects: if a redirect strips it before the pixel reads it, there is nothing to store.

What events does the OpenAI pixel track?

Exactly the ones you send. OpenAI's troubleshooting guide is blunt: the pixel can load without sending the purchase event you need, and a page view is not a purchase. The standard events are:

  • Commerce: page_viewed, contents_viewed, items_added, checkout_started, order_created.
  • Leads: lead_created, registration_completed, appointment_scheduled.
  • Subscriptions: subscription_created, trial_started.
  • Custom, only when no standard event fits.

App installs and opens are Conversions API only. And sending an event is not counting it: a conversion event setting must select it and be attached to your campaign.

Automatic advanced matching: what customer data can the pixel hash?

Matching helps OpenAI connect a conversion to an ad when the click reference is missing. The pixel's optional user object takes email, phone, external (customer) ID, first name and last name, each normalized and hashed with SHA-256, plus country, city, region and postal code. OpenAI added phone, first and last name, region and postal code on August 19, 2026. Never send raw emails, phones, IDs or names.

Automatic advanced matching does this without code: the pixel detects supported customer information from recognizable forms and other sources on your site and hashes it in the browser, and OpenAI says raw customer information is not sent. It is on by default for web pixels outside Japan; accounts in Japan can switch it under Edit pixel. OpenAI does not publish which fields it detects on its own, and matching does not guarantee credit. More in our post on automatic advanced matching.

Does the OpenAI pixel respect consent?

Only if you set it up to. The pixel initializes consent to true by default, unless you set it to false or it finds a stored denial. Where consent is required, call oaiq("consent", false) before init, then oaiq("consent", true) once the visitor agrees. While consent is false the pixel sends no measurement events; blocked events are not replayed; and setting it to false removes both cookies. Wiring this to your cookie banner is your job. The separate opt_out option is about personalization, and OpenAI says it does not currently use pixel data for user-level personalization.

Where do I find my OpenAI Pixel ID?

In Ads Manager, in the Conversions tab, where you create a Pixel ID and a Conversions API key. Each web pixel appears as a data source, and the same Pixel ID serves the pixel, the image tag and the Conversions API.

To test, go to Conversions, then Data Sources, open your web pixel's three-dot menu and choose Test. Enter a URL where the pixel is installed, act on the site, then look for Test-labeled events in Event Stream. Labeling lasts up to 30 minutes on the same origin only. Test events still count in analytics, and receiving an event does not prove it will be attributed.

Can I use the OpenAI pixel without JavaScript?

Yes, with OpenAI's image tag: a hidden 1x1 image pointing at bzr.openai.com with your Pixel ID, the event name and its data, usable inside <noscript> as a fallback. Its limits: it loads with the page, so it cannot measure clicks or later interactions; it sends one event per request; it takes no customer data; and it does not capture oppref for you. Render it only after any required consent, and never put personal data or order IDs in its URL.

Can I run more than one OpenAI pixel on the same site?

Yes, for sites measuring for more than one advertiser, brand or partner. Load the SDK once and call init for each Pixel ID. measure goes to every pixel initialized at that moment; measureSingle sends to one.

That differs from two tools sending the same Pixel ID the same purchase. OpenAI deduplicates only when Pixel ID, event name and event ID all match, keeping the first event. Two senders with different event IDs count every sale twice.

What can the browser pixel miss?

OpenAI's troubleshooting guide lists where browser tracking goes quiet:

  • The purchase event is never sent, or is sent before init, a common tag manager problem.
  • Consent choices, browser blocking or your site's security policy stop the request.
  • Checkout, signed-in pages, booking sites, redirects and embedded forms: a pixel working on the landing page proves nothing there.
  • The oppref is lost in a redirect, or cookies are cleared.

So OpenAI pairs the pixel with the Conversions API, which it says helps you "measure conversions without depending solely on browser event delivery", with retries you control. Its help center calls using both together more resilient, with the same event ID on both copies so a purchase counts once. The Conversions API does not capture oppref itself; your server must keep the original value and send it.

How does the OpenAI pixel work on Shopify?

Shopify runs tracking scripts through its pixels manager (Customer events in your admin), in a sandbox, and says these pixels load on the storefront, checkout, Thank you page and Order status page. You have three routes.

1. OpenAI's own app. In OpenAI's ChatGPT Ads app for Shopify you select or create "OpenAI Pixel for Shopify" and connect it, so eligible commerce events flow to Ads Manager. OpenAI says the app is "currently available to all Shopify customers in the US", with other ad markets to follow.

2. A custom pixel. You can paste OpenAI's snippet as a custom pixel, which runs in Shopify's lax sandbox, an iframe. Shopify warns that features that scrape forms for emails or phone numbers might not work there, and that page URLs detected in the lax sandbox reflect the sandbox, not the main window. Those touch automatic advanced matching and reading oppref from the URL, so confirm with debug mode and a test session that both arrive. Moving old checkout scripts? See migrating off Additional Scripts.

3. A tracking app. Reach, the app I build, goes server-side. Its own Shopify web pixel captures the five commerce events and sends them to Reach's server, which forwards them to OpenAI's Conversions API. Reach does not load OpenAI's browser pixel. It captures oppref from the ad click URL, reads OpenAI's __obref cookie when OpenAI's pixel has set one, sends hashed customer data where present, and keeps a stable event ID so a retry never double counts. One honest limit: purchases through third-party checkouts, COD forms or one-click checkout apps skip Shopify's checkout event, so Reach's pixel does not see them and Reach does not send them to OpenAI today; support for them is being built.

Whichever you choose, keep one sender per Pixel ID. If OpenAI's app and another app both send purchases to the same Pixel ID, every sale is counted twice; OpenAI itself tells Shopify merchants to check their existing connection before adding another integration. We compare both in Reach vs. OpenAI's ChatGPT Ads app.

When do you need more than the pixel?

The pixel alone can be enough when you control your site's code, checkout runs on your own pages, and you can wire consent and every event yourself. Add the Conversions API when purchases happen where the browser pixel cannot reliably see them, when you want orders confirmed by your backend, or when you need matching data from your order records rather than from forms.

Better measurement will not make an ad profitable. ChatGPT Ads is still early, and only a small share of stores are profitable on it so far. Good tracking gives you an honest answer for yours. Next step: how to track OpenAI Ads conversions on Shopify.

Reach is independent and not affiliated with OpenAI. Sources, checked December 4, 2026: OpenAI's developer docs on the Measurement Pixel, the image tag, multiple Pixel IDs, conversion tracking, the Conversions API and supported events; OpenAI's help articles on conversion measurement, troubleshooting conversion tracking and ChatGPT Ads for Shopify; Shopify's How pixels work, custom pixels and About web pixels.

Send your ChatGPT Ads conversions server-side. Install Reach on the Shopify App Store: server-side ChatGPT Ads tracking in about 30 seconds, no theme code, hashed customer data for matching, and a live events dashboard. The Free plan covers up to 50,000 events a month.

Frequently asked questions

What is the OpenAI pixel?
It is OpenAI's Measurement Pixel, a browser JavaScript SDK for measuring website events that can be attributed to ads in ChatGPT. You load it on your site, initialize it with your Pixel ID from the Conversions tab of Ads Manager, and send events such as order_created when they happen.
What is oppref in OpenAI Ads?
oppref is the click reference OpenAI adds to the landing page URL when someone clicks a ChatGPT ad. OpenAI calls it a privacy-preserving identifier. The pixel captures it and stores it in a first-party __oppref cookie for 30 days. The Conversions API and the image tag do not capture it for you, so a server setup has to keep the original value and send it.
Is there an OpenAI pixel for Shopify?
Yes. OpenAI's ChatGPT Ads app for Shopify connects an "OpenAI Pixel for Shopify" that sends eligible commerce events to Ads Manager; OpenAI says the app is currently available to Shopify customers in the US. You can also paste OpenAI's snippet as a Shopify custom pixel, or use a tracking app that sends events server-side. Use one sender per Pixel ID.
Does the OpenAI pixel respect cookie consent?
Only if you set it up. The pixel initializes consent to true by default unless you set it to false first or it finds a stored denial. Call oaiq("consent", false) before init where consent is required, and set it to true once the visitor agrees. Events blocked before consent are not replayed.
Do I need the Conversions API if I already have the OpenAI pixel?
Not strictly, but OpenAI suggests using both for more resilient measurement. The Conversions API sends events from your server, so it does not depend solely on the browser. If you send the same purchase both ways, use the same Pixel ID, event name and event ID so it is counted once.
Can I use two OpenAI pixels on one website?
Yes. Load the SDK once and call init for each Pixel ID. A measure call goes to every initialized pixel, and measureSingle sends an event to one Pixel ID only. Do not have two different tools send the same purchase to the same Pixel ID with different event IDs, or it will be counted twice.
Does OpenAI use pixel data to personalize ads?
OpenAI's docs say it does not currently use data collected through the Measurement Pixel for user-level personalization, and that if it does in the future it will respect the per-event opt_out setting.

See what your ChatGPT Ads really sell.

Start on the free plan. Set up in 30 seconds.