Abstract: Measurement First, Spend Second
Before you put real budget behind OpenAI Ads, you need conversion tracking that actually works. Without it, OpenAI's algorithm can't optimize toward purchases, your reported ROAS is fiction, and you're flying blind on a brand-new channel. This guide walks Shopify merchants through the full conversion setup in OpenAI Ads Manager [1] — pixel, API key, conversion events, and campaign attachment — using Aimerce [2] to automate the server-side event delivery.
1. Understand the Pieces
OpenAI's conversion system has three parts:
- Pixel (Data Source): The container that receives your events, identified by a Pixel ID.
- API Key: A secret token (
sk-svcacct-...) that authenticates server-side events sent to the Conversions API. - Conversion Events: Registered actions (e.g. Purchase) built on top of standard base events, which you then attach to campaigns for optimization and reporting.
2. Step 1 — Copy Your Pixel ID
- In OpenAI Ads Manager [1], open Tools → Conversions and stay on the Data Source tab.
- Hover over the pixel row you want to use and click Copy Pixel ID. It's the string under the pixel name, e.g.
2Fpr6SG4h87eMXrACYkfK9.
3. Step 2 — Create an API Key
- Click Manage conversion keys at the top right, then + Create new key.
- Name it something identifiable (we recommend
aimerce). - Click Create and copy the key immediately — OpenAI shows it exactly once. It starts with
sk-svcacct-.
⚠️ If you later see 401 Missing scopes ads.third_party_events.write errors, your key lacks conversion-write permission — create a fresh key from this same panel rather than reusing a restricted service-account key.
4. Step 3 — Connect Aimerce
Rather than building and maintaining your own Conversions API integration, let Aimerce [2] handle it:
- In the Aimerce dashboard, open the OpenAI Setup page.
- Paste your Pixel ID and API Key, then click Submit.
- Aimerce sends a validation event to OpenAI and confirms the connection.
From that moment, Aimerce automatically sends all standard OpenAI events from your Shopify store, server-side:
| Base Event (OpenAI) | Shopper action | Sent when |
|---|---|---|
order_created | Purchase | An order is placed |
checkout_started | Begin Checkout | A shopper starts checkout |
items_added | Add to Cart | A product is added to the cart |
contents_viewed | View Item | A product page is viewed |
page_viewed | Page View | Any page is viewed |
lead_created | Lead | A shopper submits their email |
registration_completed | Sign Up | A shopper creates an account |
Because Aimerce sends these with its Durable ID — a persistent first-party identity that survives Safari's ITP, ad blockers, and ChatGPT's in-app browser — OpenAI receives complete conversion data with strong match quality, not the fraction a client-side pixel would capture.
5. Step 4 — Register Conversion Events
Events arriving at your pixel still need to be registered as Conversion Events:
- In Tools → Conversions, switch to the Conversion Events tab and click + Create.
- Pick a Base Event (start with
order_createdfor Purchase). - Give it a Name, select your pixel as the Data source, and set the Conversion window (default 30 days).
- Click Create. Repeat for
checkout_started,items_added, andcontents_viewedif you optimize on upper-funnel actions.
💡 The Data source dropdown only lists pixels that have already received at least one event. If yours is missing, confirm the Aimerce connection and trigger a test event (e.g. a test purchase) first.
6. Step 5 — Attach Events to Your Campaign
Registering a conversion event only defines it. To actually optimize:
- Open Campaigns → Edit Campaign.
- Scroll to the conversion events section, pick your event(s) from the Select an event dropdown, and click Add event.
- Save.
7. Verify Everything Works
- In Tools → Conversions, confirm your pixel shows recent events.
- Place a test order on your store and check that an
order_createdevent arrives. - Once the campaign runs, watch conversions populate in campaign reporting within your conversion window.
8. Conclusion
Conversion tracking in OpenAI Ads Manager takes four artifacts — Pixel ID, API key, registered events, and campaign attachment — and one integration decision. With Aimerce [2] handling the server-side event delivery and identity matching, a Shopify brand can go from zero to fully-measured OpenAI Ads campaigns in under fifteen minutes, with the same data quality foundation it already uses for Meta CAPI and Google.
References
[1] OpenAI Ads Manager: https://ads.openai.com/ [2] Aimerce.ai Official Website: https://www.aimerce.ai/
30-Day Aimerce Pixel Free Trial