How to track ChatGPT Ads conversions on Shopify
Install OpenAI's Measurement Pixel and Conversions API on a Shopify store, map Shopify events to ChatGPT Ads events, and send them alongside Meta, Google and TikTok from one pixel.
Updated November 13, 2026 · 6 min read
To track ChatGPT Ads conversions on Shopify, connect two things from OpenAI: the Measurement Pixel, which runs in the shopper's browser, and the Conversions API, which your server or an app calls with confirmed orders. Give each conversion the same event ID in both and OpenAI counts it once. On Shopify, the pixel goes in through a customer events pixel or an app, because the checkout doesn't run theme code. Zalify sends them through the Conversions API from the same setup you use for Meta, Google and TikTok: paste the Pixel ID and API key once, and orders reach ChatGPT Ads with the 10 other platforms.
What ChatGPT Ads needs from your store
ChatGPT Ads counts a conversion when an event arrives from your data source, matches a conversion set up for the campaign, and falls inside the attribution window. You create the data source, and get its Pixel ID and Conversions API key, under Conversions in OpenAI's Ads Manager.
These are the standard events a Shopify store sends, and what they map to on the OpenAI side:
| Shopify event | ChatGPT Ads event | Pixel | Conversions API |
|---|---|---|---|
| Page viewed | page_viewed | Yes | Supported, rarely needed |
| Product viewed | contents_viewed | Yes | Yes |
| Added to cart | items_added | Yes | Yes |
| Checkout started | checkout_started | Yes | Yes |
| Order placed | order_created | Yes | Yes |
| Form submitted | lead_created | Yes | Yes |
Amounts go in the currency's minor unit (cents for USD), with an ISO currency code. Product events carry a contents list of the items involved.
Pixel, Conversions API, or both?
| Measurement Pixel | Conversions API | |
|---|---|---|
| Where it runs | The shopper's browser | Your server or an app's |
| Set up with | A script that loads oaiq and calls init with your Pixel ID | POST https://bzr.openai.com/v1/events with a Bearer API key |
| Lost when | Ad blockers, browser tracking protection, a declined consent banner | It isn't sent |
| Matches the shopper by | First-party cookies: __oppref (from the ad click, 30 days) and __obref (365 days) | SHA-256 hashed email, phone, name and external ID, plus IP address, user agent, location, oppref and obref |
| Time limit | Sent as it happens | Events from the last 7 days |
OpenAI's documentation recommends both: the pixel for browser activity, the API for confirmed backend conversions. When both send the same order, use the same value for the pixel's event_id and the API's id. OpenAI keeps the first event for each Pixel ID, event name and ID, and ignores later copies.
Three ways to set it up on Shopify
1. A Shopify custom pixel (code)
Shopify runs checkout tracking in sandboxed customer events pixels rather than in theme code. You can add a custom pixel under Settings → Customer events, load OpenAI's SDK, initialize it with your Pixel ID, and subscribe to Shopify's standard events (product_viewed, product_added_to_cart, checkout_started, checkout_completed) to call oaiq("measure", …).
This covers the browser side only. Server-side events need your own backend to receive Shopify's order webhooks and call the Conversions API, with the same event IDs as the pixel.
2. A ChatGPT Ads app from the Shopify App Store
Several apps now install the pixel and send server events for ChatGPT Ads alone. Most are new and have few reviews, so check two things before you install one: whether it sends server events through the Conversions API, and whether it uses the same event IDs as the pixel. If you already run separate apps for Meta, Google and TikTok, this adds one more.
3. Zalify Pixel: ChatGPT Ads alongside your other ad platforms
Zalify Pixel records each visit, product view, cart, checkout and order on your store once, and sends them to every ad platform you connect: ChatGPT Ads, Meta, Google Ads, GA4, TikTok, Pinterest, Snapchat, Microsoft Ads, X, Reddit and LinkedIn.
- In OpenAI's Ads Manager, open Conversions and copy your Pixel ID and Conversions API key.
- In Zalify, go to Pixel → Ad Pixels → ChatGPT Ads Pixel and click Add Pixel.
- Paste the Pixel ID, and the key into Conversion API: Access Token for server-side events.
- Turn Enabled on and save.
From then on, Zalify sends product views, carts, checkouts and orders to ChatGPT Ads from its servers through the Conversions API. Orders come from Shopify's own order record, so a purchase is reported even when the shopper's browser blocks tracking, and it is sent once. Server events carry the matching data OpenAI accepts: hashed email, phone and name where the shopper gave them, IP address, user agent, location, and the oppref reference from the ad click. If you also want OpenAI's browser pixel, install it yourself and give its purchase events the Shopify checkout token as the event ID, which is the ID Zalify sends, so OpenAI counts each order once. Step-by-step screenshots are in the ChatGPT Ads Pixel setup guide.
Check that it works
- Before any ad spend: browse your store, add a product to the cart and start checkout, then look for the events under Conversions in Ads Manager. Events can take a while to show up.
- One pixel per platform: if a theme snippet or another app also loads the ChatGPT Ads pixel, remove it. Two installs without shared event IDs count the same order twice.
- Consent: OpenAI's pixel accepts a consent setting and removes its
__opprefand__obrefcookies when consent is declined, so connect it to your store's consent banner rather than loading it unconditionally. - Attribution needs real clicks: conversions are attributed only after shoppers arrive from your ChatGPT ads, inside your click window.
See ChatGPT Ads orders next to your other channels
Ads Manager tells you what ChatGPT Ads claims. To compare it with Meta, Google, TikTok and email, add UTM parameters to your ChatGPT Ads landing URLs (for example utm_source=chatgpt&utm_medium=cpc). Zalify Attribution then counts those orders by channel and campaign next to the others, so you can judge ChatGPT Ads on the orders it brings rather than on its own report, and see what it does to your store's MER: total revenue over total marketing spend.
Sources
- OpenAI Ads Measurement Pixel, OpenAI developer docs
- OpenAI Ads Conversions API, OpenAI developer docs
- Web Pixels API, Shopify developer docs
- ChatGPT Ads pixel apps, Shopify App Store
Frequently asked questions
Do I need code to track ChatGPT Ads on Shopify?
Only if you build it yourself as a Shopify custom pixel. An app that supports ChatGPT Ads, such as Zalify, asks for your Pixel ID and Conversions API key and sends the events for you.
Do I need the Conversions API if I already have the pixel?
OpenAI recommends using both. The pixel records what happens in the browser; the Conversions API sends confirmed conversions from a server, which ad blockers and closed tabs can't stop. Give the same conversion the same event ID in both, and OpenAI counts it once.
Which Shopify events can ChatGPT Ads use?
Product views (contents_viewed), add to cart (items_added), checkout started (checkout_started), purchases (order_created) and lead forms (lead_created), plus page views from the browser pixel.
What attribution window does ChatGPT Ads use?
Click-through conversions use the click window you set in Ads Manager. View-through conversions use a fixed one-day window and are reported as a separate campaign-level metric, not inside Conversions.
How old can a server-side event be?
The Conversions API accepts events with a timestamp from the last 7 days, and no more than 10 minutes in the future.
Can I send ChatGPT Ads conversions with Meta, Google and TikTok from one app?
Yes. Zalify Pixel sends the same Shopify events to ChatGPT Ads and 10 other ad platforms, including Meta, Google Ads and TikTok, from one install.
Track ChatGPT Ads with the rest of your ads
Start a 3-day free trial, or book a demo with our team.