ChatGPT Ads conversion tracking on Shopify: the app, the custom pixel, and the double-count check
Shopify's checkout runs on pages your theme can't touch, so ChatGPT Ads purchases have to be tracked through OpenAI's Shopify app or Shopify's customer-events pixels. This guide covers both, with copy-paste code and the event mapping, plus server-side orders, the double-counting check most stores fail, and how to test with a real order.
The short answer
The easiest way to track ChatGPT Ads conversions on Shopify is OpenAI's ChatGPT Ads for Shopify app: connect your Ads Manager account, then select or create the “OpenAI Pixel for Shopify”, and eligible commerce events flow to Ads Manager automatically while your catalog syncs into a product feed. OpenAI's help article lists it for US merchants, but OpenAI's October 30 advertiser email said the integration is now available outside the US, so check the app in your Shopify admin. If you need more control, add a custom pixel under Settings → Customer events and map checkout_completed to order_created. Whichever you choose, make sure only one thing sends each purchase.
Three ways to track ChatGPT Ads on Shopify
| Option | Best for | Watch out for |
|---|---|---|
| ChatGPT Ads for Shopify app | Most stores; also syncs your catalog for product ads | Launched for US merchants and has been expanding beyond the US; check which events it sends before adding anything else |
| Custom pixel (Settings → Customer events) | Stores where the app isn't available yet, or that need custom event logic | Runs in Shopify's sandbox, so it can't call the Conversions API |
| Third-party tracking app or server-side setup | Stores that already route Meta and Google through one tracking app or server container | Must share the same order ID as any browser sender |
Don't use theme.liquid. Shopify's checkout and order status pages don't run theme code, so a purchase tag there never fires.
Option 1: the ChatGPT Ads for Shopify app
From OpenAI's setup article, you need an active store, an Ads Manager account (or the details to create one), and permission to install apps and manage the ad account. Then:
- In Shopify, install or open the ChatGPT Ads app and select Connect Account.
- Choose your Ads Manager account, or create one: organization, account name, website, industry, country, currency and time zone. Some of these can't be changed later, so check them.
- Select or create OpenAI Pixel for Shopify, and connect it so eligible commerce events flow to Ads Manager.
- Wait for your product inventory to sync into the ChatGPT Ads product feed. Time depends on catalog size.
The app syncs three things: your catalog for product ads, store updates that keep product information current, and commerce events through the connected pixel. You can create a campaign inside Shopify (name, budget, optimization event, targeting, and an all-products, single-product or website ad), though Ads Manager offers more control; OpenAI notes, for example, that Shopify sets budgets in fixed $25 steps. Summary results appear in Shopify's Analytics tab; detail stays in Ads Manager. On availability, OpenAI's help article says US merchants now and other markets “shortly”; OpenAI's October 30 advertiser email, reported by Search Engine Roundtable, said the integration had become available outside the US (see our ChatGPT Ads news timeline).
If products don't appear: check the app is connected to the right Ads Manager account, the feed has finished syncing, products are active, the OpenAI Pixel for Shopify is connected, and you're using Chrome or Safari. Then email ads-support@openai.com. Disconnecting the app stops product updates but doesn't delete your account or campaigns; campaigns that depend on the feed may pause. Catalog requirements are in our ChatGPT product feed guide.
Option 2: a Shopify custom pixel
Go to Settings → Customer events → Add custom pixel, name it, and set its customer privacy permission to match how your store collects marketing consent. Three Shopify rules apply: paste JavaScript only, with no <script> tags; subscribe to events with top-level analytics.subscribe(...) calls; and map Shopify's event names to OpenAI's.
(function (w, d, s, u) {
if (w.oaiq) return;
var q = function () { q.q.push(arguments); };
q.q = []; w.oaiq = q;
var js = d.createElement(s); js.async = true; js.src = u;
var f = d.getElementsByTagName(s)[0]; f.parentNode.insertBefore(js, f);
})(window, document, "script", "https://bzrcdn.openai.com/sdk/oaiq.min.js");
oaiq("init", { pixelId: "<YOUR-PIXEL-ID>" });
analytics.subscribe("product_added_to_cart", (event) => {
const line = event.data.cartLine;
oaiq("measure", "items_added", {
type: "contents",
amount: Math.round(Number(line.cost.totalAmount.amount) * 100),
currency: line.cost.totalAmount.currencyCode
});
});
analytics.subscribe("checkout_completed", (event) => {
const c = event.data.checkout;
oaiq("measure", "order_created", {
type: "contents",
amount: Math.round(Number(c.totalPrice.amount) * 100),
currency: c.currencyCode
}, { event_id: String(c.order?.id || c.token) });
});
| Shopper action | Shopify event | OpenAI event |
|---|---|---|
| Page viewed | page_viewed | page_viewed |
| Product viewed | product_viewed | contents_viewed |
| Added to cart | product_added_to_cart | items_added |
| Checkout started | checkout_started | checkout_started |
| Purchase | checkout_completed | order_created |
- Money: Shopify gives decimals; OpenAI wants integer minor units ($129.99 =
12999). Round explicitly, because floating-point maths produces values like12998.999999. Multiply by 100 only for two-decimal currencies. - Markets and multi-currency: send the checkout's own
currencyCode, never a hard-coded store currency. - No server calls: the sandbox can't call the Conversions API, and the API key must never sit in browser code.
Adding server-side purchases
For the Conversions API copy of each order, use the app (if it covers server events for your store), a tracking app, or your own orders/create webhook posting to bzr.openai.com. The order ID you send as the API's id must be the same string as the pixel's event_id. Shopify can present order IDs in different formats in different places (a plain number in one, a gid:// ID in another), so normalize to one format on both sides. Events older than seven days are rejected, so send from the webhook, not a weekly export. The Conversions API and deduplication sections of our main guide cover the payload.
The double-counting check every Shopify store needs
Shopify stores collect tracking: the ChatGPT Ads app, an old custom pixel, a GTM container, a multi-channel tracking app. Each one that sends order_created with its own ID counts the same order again. OpenAI's troubleshooting guidance is direct: check your Shopify connection before adding another integration, confirm which events the app sends, then check whether custom tags, checkout code or a server sender send the same ones.
- List every place that could send OpenAI events: Customer events (app pixels and custom pixels), GTM, and tracking apps.
- Keep one browser sender per event. If you keep a server sender as well, give both the same order ID.
- Compare Ads Manager's order count for a day with Shopify's orders from ChatGPT-tagged sessions. Ads Manager showing more orders than Shopify had in total is the giveaway.
Test with a real order
- In Ads Manager, go to Conversions → Data Sources, open your Web Pixel's three-dot menu, choose Test, enter your store URL and select Start testing.
- Place an order in the tab that opens, using a test payment method or a 100% discount code.
- Check Event Stream for
order_createdwith the right amount in minor units, the right currency, and your order ID. Test labels last up to 30 minutes and only cover the same origin, so a checkout on another domain may not be labeled. - Allow 24–48 hours before judging attributed conversions.
Then attach the conversion event setting to your campaign, with order_created as the goal for conversion campaigns. Conversions count only from that moment. The full sequence is in the 7-step ChatGPT Ads conversion tracking setup, and the store-side strategy in ChatGPT Ads for ecommerce.
ChatGPT Ads on Shopify: frequently asked questions
Is there an official ChatGPT Ads app for Shopify?
Yes. The ChatGPT Ads for Shopify app connects your store's catalog and commerce events to Ads Manager through the OpenAI Pixel for Shopify, and lets you create campaigns inside Shopify. It launched for US merchants in September 2026, and OpenAI's October 30 advertiser email said it had become available outside the US.
Where do I put the ChatGPT Ads pixel in Shopify?
Use the app's OpenAI Pixel for Shopify, or add a custom pixel under Settings → Customer events. Don't put it in theme.liquid: Shopify's checkout and order status pages don't run theme code, so purchases never fire.
Which Shopify event maps to the ChatGPT Ads purchase event?
checkout_completed maps to order_created. product_added_to_cart maps to items_added, product_viewed to contents_viewed and checkout_started to checkout_started.
Why is ChatGPT Ads double-counting my Shopify orders?
Almost always because two things send order_created with different IDs, for example the app plus an old custom pixel or a GTM tag. Keep one browser sender, and give any server sender the same order ID.
Can a Shopify custom pixel send the ChatGPT Ads Conversions API?
No. Custom pixels run in Shopify's browser sandbox, and the Conversions API key must stay on a server. Use the app, a tracking app, or an order webhook for server-side events.
Does the ChatGPT Ads Shopify app work outside the US?
Increasingly, yes. OpenAI's help article still describes it as available to US merchants with other markets coming shortly, but OpenAI's October 30, 2026 advertiser email said the Shopify integration was available outside the US. Check the app in your Shopify admin; where it isn't available, use a custom pixel.
Sources and further reading
- OpenAI Help Center — Set up ChatGPT Ads for Shopify
- OpenAI Help Center — Troubleshooting conversion tracking for ChatGPT Ads (the Shopify question)
- OpenAI Developers — Measurement Pixel
- Shopify Help Center — Custom pixels
See which ChatGPT answers mention your store, free
Your pixel counts paid orders. A free AI-visibility scan shows the shopping prompts where ChatGPT already recommends you, the ones where it names competitors instead, and the sources it cites. The first scan is free and needs no card. Want the feed and tracking run for you? See ChatGPT Ads for ecommerce.
Run my free scan