With the release of ChatGPT Search comes OpenAI's fully-fledged performance advertising platform. Quick answer: The ChatGPT ad ecosystem operates on two sides: on the user side, the backend injects structured single_advertiser_ad_unit objects directly into the conversation stream (SSE stream) as the model responds. On the merchant side, a tracking SDK called the OAIQ pixel (oaiq.min.js) runs in the visitor's browser alongside a server-side Conversions API, linking conversions back to clicks using a unique, decryptable oppref token.
User Side: Ad Delivery via Server-Sent Events (SSE)
Unlike traditional search engines that return static search result pages with ads, ChatGPT streams responses in real-time, token by token, using Server-Sent Events (SSE). The OpenAI ad platform injects ads directly into this active stream. When the model determines a product recommendation is appropriate, the backend fetches a relevant ad and streams it as a structured JSON object of type single_advertiser_ad_unit. The ChatGPT client interface (web or mobile app) intercepts this object and renders it as a sponsored card link.
Merchant Side: Tracking via OAIQ and Conversions API
When a user clicks an ad in ChatGPT, they are redirected to the advertiser's website. To evaluate performance and train optimization models, OpenAI developed a hybrid tracking setup:
| Component | Technical Mechanism | Role in Attribution |
|---|---|---|
| oppref Token | A unique URL parameter (OpenAI Privacy Referral), serving a similar role to Google's gclid. | Ties the chat interaction to the landing page visit and transaction. |
| OAIQ Pixel | Browser-based JavaScript SDK (oaiq.min.js) running on the merchant site. | Tracks pageviews, cart additions, and checkout completions directly from the client. |
| Conversions API (CAPI) | Server-to-server POST payload sent to bzr.openai.com/v1/events. | Safeguards measurement accuracy when browser pixels are blocked by adblockers. |
Attribution Loop and Conversion Deduplication
To avoid duplicate conversions (counting both the OAIQ pixel trigger and the Conversions API call for the same purchase), you must pass a matching event_id (such as the order ID) with both events. OpenAI handles deduplication on its end in real-time. The server matches the event_id across streams and attributes the conversion to the respective chat ad click via the oppref token. In my practice with GA4 and Meta CAPI, I've seen that failing to deduplicate events properly leads to heavily skewed ROAS metrics inside the Ads Manager.
Privacy Protections and Aggregated Reporting
OpenAI places a strong emphasis on privacy. The oppref token is fully encrypted and contains no information about the user's identity, chat query text, or private account data. Advertisers only receive confirmation that a click occurred followed by a conversion. Reporting is entirely aggregated, meaning you will never see the specific prompts entered by users who viewed your ads.
Checklist: Prepare Your Tracking for ChatGPT Ads
- Deploy OAIQ: Add the client-side pixel
oaiq.min.jsto all store pages via Google Tag Manager. - Implement Conversions API: Set up server-to-server event reporting to
bzr.openai.com(ideally via Server-Side GTM). - Configure Deduplication: Verify that both client and server events pass identical
event_idparameters. - Preserve oppref Parameters: Ensure internal redirect rules do not strip the
opprefparameter from incoming URLs.
Frequently Asked Questions (FAQ)
Is the OpenAI Conversions API mandatory for running ads?
It is not strictly mandatory, but highly recommended. Relying solely on the browser-based OAIQ pixel leaves a 20% to 40% conversion data gap due to adblockers and privacy features (like Safari's ITP). CAPI ensures complete attribution stability.
Can I use Server-Side GTM to connect to the OpenAI API?
Yes, Server-Side GTM is ideal for this task. You can map existing purchase triggers and forward the payloads securely to OpenAI's server endpoint.
How does OpenAI use conversion data for campaign optimization?
Much like Smart Bidding in Google Ads. OpenAI's algorithms analyze which prompt contexts and user interactions yield conversions, dynamically adjusting ad serving to maximize your campaign volume for your budget.
Conclusion: Gain an Early Mover Advantage
ChatGPT Ads present a fresh, high-value source of traffic. E-commerce brands that master tracking and Conversions API integration first will capture early market efficiencies. If you need assistance setting up GTM, pixels, or server-side tracking pipelines for OpenAI, let's connect. Submit an inquiry today and let's get your store ready for the future of search.