Zero-code Theme App Embed
Loads oaiq.min.js in the document head and tracks page_viewed plus contents_viewed on product routes with no Liquid file edits.
Connect Shopify Theme App Embeds, sandboxed Web Pixels, first-party _oppref cart attributes, and AES-GCM-256 encrypted Conversions API webhooks with no theme code edits.
Official Comercio Services app on Shopify App Store
Sample readout from the live diagnostics screen inside Y OpenAI Ads Pixel ChatGPT Ads with PII redaction and dry-run token checks.
validate_only handshake
CAPI Token Check
orders/create webhook
Inngest Queue
items_added (ES5 hook)
Ajax Cart Tracker
Each module stays inside Shopify Online Store 2.0 boundaries so theme updates keep your OpenAI Ads measurement setup intact.
Loads oaiq.min.js in the document head and tracks page_viewed plus contents_viewed on product routes with no Liquid file edits.
Bundled cart-tracker.js catches custom cart:added events and /cart/add fetch calls across sticky bars, drawers, and older themes.
Runs inside @shopify/web-pixels-extension to track checkout_started and order_created while writing __oppref cookies to _oppref via /cart/update.js.
Encrypts merchant Bearer tokens at rest using @47ng/cloak so Conversions API keys stay unreadable in database rows and browser code.
Processes orders/create, orders/updated, and checkouts/create webhooks asynchronously with 3 automatic retries and a 30-second batch job.
Verifies credentials via ?validate_only=true without creating test orders, polls live event feeds every 5 seconds, and masks staff-visible PII.
Storefront theme.liquid DOM and Shopify's sandboxed checkout perimeter run as separate environments. Browser tags stop at checkout. Theme updates erase manual head snippets. Ajax slide-out drawers skip full page reloads, and legacy Additional Scripts fail on upgraded checkout templates.
That split breaks attribution on live campaigns. Y OpenAI Ads Pixel ChatGPT Ads handles both halves at Free ($0) pricing through an official Comercio Services (comercior.com) Shopify app built for Online Store 2.0. Our engineers wired oaiq.min.js into a toggleable Theme App Embed, registered a sandboxed Web Pixel extension, bridged __oppref cookies onto _oppref cart attributes, and connected AES-GCM-256 encrypted Conversions API webhooks with no theme code changes. Every design choice inside the app comes from production store builds documented in our OpenAI Ads Pixel and CAPI for Shopify setup guide and our ChatGPT Ads tracking guide.
Pasting one global snippet into theme.liquid worked years ago. Modern Shopify stores block that shortcut because checkout domains forbid custom theme globals, third-party script managers get wiped during Dawn or Horizon template updates, and browser privacy rules strip client cookies well before repeat buyers convert. Coordinating browser telemetry with server webhooks stops revenue blind spots before paid bidding models optimize on partial sales data.
Open Ads Manager ten days after turning on spend and the conversion column often stays empty while Shopify shows steady paid orders. Content blockers cut off requests to bzr.openai.com. iOS Safari drops client cookies early. Express payment redirects close mobile tabs before slow browser beacons complete their TLS handshake.
Browser tags alone drop real sales. Server webhooks close that leak because Shopify sends an orders/create event straight from your store backend to https://bzr.openai.com/v1/events after payment clears, immune to ad blockers and dropped cellular handoffs. Keep both paths in one Shopify install. Browser snippets capture rapid product views and cart intent on storefront templates, while backend webhooks report every settled purchase as detailed in our guide on recovering missing OpenAI Ads purchase events.
Ad blockers kill browser beacons for 20% to 35% of privacy-conscious buyers across desktop and mobile sessions. Your Fly.io worker queue still receives every paid order webhook from Shopify Admin and delivers conversion payloads to OpenAI in seconds. Thank-you pages on upgraded checkouts reject inline Liquid scripts completely, whereas @shopify/web-pixels-extension operates inside Shopify's approved Customer Events sandbox.
Keeping private credentials off the storefront matters just as much as recovery rates. Frontend scripts never hold your Conversions API Bearer token inside Y OpenAI Ads Pixel ChatGPT Ads. Chrome DevTools shows no private API keys, which stops anyone inspecting network payloads from scraping your ad account secret as analyzed in our secure OpenAI Ads CAPI implementation playbook. Engineering teams weighing bespoke internal scripts against turnkey Shopify tooling can compare total build time, maintenance risk, and retry behavior in OpenAI Ads Pixel vs CAPI vs done-for-you setups.
Deprecated ScriptTag APIs break during routine theme upgrades. Built on React Router v7, Prisma, and Inngest background queues, Y OpenAI Ads Pixel ChatGPT Ads assigns each tracking job to the exact runtime zone Shopify supports. Each layer stays inside its lane. Nothing relies on fragile DOM scraping inside protected payment screens.
Enable the embed toggle inside Online Store theme settings and openai_pixel.liquid mounts OpenAI's official SDK (bzrcdn.openai.com/sdk/oaiq.min.js) inside the document <head> with no edits to Liquid files. Your Pixel ID initializes on load. Storefront views record page_viewed across pages and pull Shopify Liquid product context to fire contents_viewed with SKU identifiers and store currency on product templates.
Duplicating a theme draft for a seasonal promotion often drops pasted head tags. Theme App Embeds avoid that trap because Shopify preserves app embed toggles when merchants activate them on a published theme, and upgrading a base theme leaves app blocks intact. You keep theme.liquid untouched while keeping header execution active across collection templates, search results, and promo landing pages.
Ajax carts break naive click listeners. Sticky add-to-cart bars, quick-buy modals, and slide-out drawers send background /cart/add calls with no page transition, so standard load listeners miss eager shoppers. Collection quick-add buttons complicate matters further when shoppers pick a variant inside a modal drawer without visiting the full product page. Our bundled cart-tracker.js handles that gap in plain ES5 JavaScript. Legacy theme bundles choke when external scripts inject modern ES6 module syntax into global scopes, so cart-tracker.js avoids module shims completely. Once active, it binds to custom cart:added events and patches /cart/add fetch dispatches inside the browser tab to emit items_added across old and new themes. Store engineers mapping theme hooks to payload keys can compare field layouts in our walkthrough on tracking Shopify product views, add-to-cart, checkout, and purchases.
Storefront DOM tags go dark at checkout. Shopify locks down window and document.cookie inside checkout to protect cardholder forms. Our registered @shopify/web-pixels-extension runs inside Shopify's official Customer Events sandbox. It subscribes to page_viewed, checkout_started, and checkout_completed triggers before normalizing purchases into order_created payloads.
Attribution breaks right at that wall unless the initial click parameter crosses into Shopify's cart object. When a visitor lands from a ChatGPT placement carrying OpenAI's ?oppref= query parameter in first-party cookies (__oppref), our Web Pixel worker copies that string onto _oppref inside the active cart via /cart/update.js. Rapid taps spam the cart API. A localStorage debounce guard throttles redundant cart updates so quantity clicks avoid Shopify rate limits. Because Shopify copies cart attributes onto completed orders automatically, server order webhooks inherit the exact click ID with no custom checkout UI scripts needed. Multi-hop redirect protection and query survival techniques live in our guide to preserving OpenAI Ads attribution and UTM parameters.
Shopify dispatches orders/create, orders/updated, and checkouts/create webhooks to our React Router v7 and Prisma service. Signature checks run first. Every incoming request passes Shopify HMAC validation before our queue accepts a single byte.
Plaintext tokens stay out of SQLite and Postgres. Our backend encrypts merchant secrets at rest using AES-GCM-256 through @47ng/cloak. Database snapshots remain unreadable without the server cipher key. Outbound HTTP requests to POST https://bzr.openai.com/v1/events?pid=<PIXEL-ID> run asynchronously inside Inngest background workers because Shopify cuts off slow webhook handlers within five seconds. Upstream 5xx hiccups trigger 3 automatic retries paired with a 30-second batch dispatcher cron so brief OpenAI API blips do not drop settled orders. Debug tables strip personal fields from persisted receipts, and GDPR customer request, redaction, and shop erasure webhooks ship pre-wired for Shopify App Store compliance. Developers writing standalone receivers can compare payload schemas against our OpenAI Ads Conversions API setup guide.
OpenAI rejects decimal prices like 49.99. Both our browser Web Pixel and our backend transformer pass decimal totals through Math.round(amount * 100). A $49.99 item becomes integer 4999. Floating-point math quirks in JavaScript make 19.99 * 100 evaluate to 1998.9999999999998, which Math.round() snaps back to a strict integer before JSON serialization. Multi-currency catalogs billing EUR or GBP drift quickly when custom snippets hardcode USD defaults. Our transformer scales line items and totals into minor-unit integers matched to each order's ISO currency code so reported revenue matches your store ledger. Those rounding checks line up with the accounting rules in our breakdown of Shopify purchase data discrepancies and fixes.
Double counting skews ROAS quickly. When both the checkout Web Pixel and an orders/create webhook fire for one paid basket, Ads Manager needs a shared match key to merge them into one conversion. Passing identical deterministic event_id values across client and server blocks thank-you page refreshes and slow mobile reloads from reporting phantom repeat orders. Stores retiring hardcoded Additional Scripts snippets can follow shared ID rules in how to deduplicate OpenAI Ads Pixel and CAPI event IDs, inspect edge cases inside Shopify event deduplication across browser and server tracking, and schedule their rollout with our OpenAI Ads Pixel-to-CAPI migration guide.
Fake test orders poison ad dashboards. Inside Pixels and Diagnostics in Shopify Admin, Comercio Services built two tools to verify tokens and live pipes before paid traffic arrives.
Validate pings ?validate_only=true in one click. Every saved CAPI key exposes that button inside pixel settings so you test credentials before live spend starts. Clicking Validate sends a dry-run handshake straight to OpenAI's API endpoint, confirms an HTTP 200 response, checks Pixel ID syntax, and tests @47ng/cloak decryption with no synthetic revenue recorded in Ads Manager. Live Diagnostics polls every 5 seconds. Inside your Shopify Admin frame, it masks shopper emails and phone digits for staff safety and stacks incoming page_viewed, contents_viewed, items_added, checkout_started, and order_created receipts next to yesterday's rolled-up DailyMetric totals to spot silent outages early. Need tab-level payload visibility before SDK serialization runs? Pin our free Chrome extension OpenAI Ads Pixel Helper to inspect live oaiq() arguments in Chrome paired with our Shopify tracking debugging guide.
Catalog feed sync is not live today. Inside the Shopify Admin app UI, the Catalog Feeds tab currently displays Coming Soon and performs no automated catalog uploads. Current releases handle storefront pixel tracking, the Web Pixel sandbox, and server Conversions API webhooks exclusively, so merchants preparing product catalogs now should build external feeds with our Shopify product feed guide for ChatGPT Ads.
Standard Online Store 2.0 storefronts take around sixty seconds to wire up. Spend two more minutes on live QA before turning on ad spend so browser tags and server queues match from day one.
@47ng/cloak encrypts the credential right away, then click Validate to confirm an HTTP 200 dry-run check.oaiq.min.js and cart-tracker.js load across templates.?oppref=qa_shopify_test&utm_source=chatgpt appended to a landing URL, view a product, click Add to Cart, and verify __oppref cookie persistence plus oaiq() payloads in OpenAI Ads Pixel Helper using our OpenAI Ads tracking QA checklist.orders/create webhook receipt lands next to your DailyMetric summary.Test that landing URL inside a fresh incognito window repeatedly if your store runs custom CDN edge rules or aggressive cookie consent banners. Redirect chains and trailing-slash rewrites can strip ?oppref= parameters before oaiq.min.js ever loads, and watching DailyMetric rollups overnight confirms your store time zone matches reported checkout timestamps. Keep that test order ID handy in your launch notes so you can verify event_id deduplication in Ads Manager before raising daily budgets.
Standard Online Store 2.0 shops pay $0. Most DTC brands running native templates and Shopify Checkout get encrypted secret storage, automatic _oppref cart stitching, async Inngest retries, and five-second diagnostics with no developer retainers.
Custom stacks outgrow standard apps quickly. Headless Hydrogen or Next.js storefronts separated from Online Store themes, external third-party subscription rebillers, offline CRM order syncs, and strict European consent proxies require custom engineering. When your store falls into that bucket, review our Shopify first-party data strategy guide, book our engineers through our Done-For-You Complete Pixel and CAPI Setup service, or start with our 40-point OpenAI Ads Readiness Audit.
Tracking alone cannot convert hesitant shoppers. Merchants addressing funnel drop-off rates often pair measurement apps with native metaobject accordions via FAQbucket: Product FAQ Page AI and scannable product specification boxes using xGeo: AI Product & LLM SEO AEO.
EU consent banners block stray scripts early. Under Y OpenAI Ads Pixel ChatGPT Ads, browser embeds check Shopify customer privacy consent flags before initializing marketing cookies, while backend diagnostics retain non-identifying event logs only.
Trailing spaces ruin match rates. Server webhooks can pass customer match signals next to purchase values if string formatting stays strict. Uppercase email characters and missing international phone prefixes drag match scores down across paid campaigns. Before hashing or dispatch runs, our transformation layer trims and normalizes email strings and billing phone numbers to match OpenAI's specification. Developers sending custom client match keys or building headless collectors can verify field formatting in how to send hashed user data with the OpenAI Ads Pixel and OpenAI Ads user data fields: hashing and normalization.
Mandatory GDPR webhooks ship pre-wired. Customer data request, customer data redaction, and shop erasure webhooks come pre-configured for Shopify App Store rules, and Live Diagnostics masks shopper email addresses and telephone digits so marketing teams inspect queue health without viewing raw PII. Policy impacts on cross-region ad measurement live inside OpenAI Ads privacy and measurement for advertisers.
Shopify Plus checkouts add express wallet detours. Single-currency Basic stores follow predictable paths, whereas accelerated buttons like Shop Pay and Apple Pay jump straight from a product page into payment confirmation. Buyers skip standard /cart/add hops, so cart-tracker.js logs fewer cart dispatches while @shopify/web-pixels-extension fires checkout_started and server webhooks catch orders/create.
Finance teams compare OpenAI Ads against GA4. Minor gaps usually reflect attribution window differences, tax and shipping inclusions, or currency conversion timing. Review our comparisons in OpenAI Ads vs GA4 conversion discrepancies and Shopify purchase data discrepancies and fixes whenever monthly totals diverge past normal reporting lag.
New theme drafts can drop your embed. Whenever an agency publishes a fresh Shopify theme or installs a slide-out upsell drawer, flip the App Embed active inside the newly published theme and run one quick verification lap with OpenAI Ads Pixel Helper before archiving the old draft. Teams managing busy promo calendars can set up recurring checks with our OpenAI Ads tracking maintenance plan.
Technical walkthroughs from Comercio Services covering Shopify tracking, server CAPI encryption, deduplication, and ad blocker recovery.
Everything else you may want to know before getting started.
The app lists for Free ($0) on the Shopify App Store with all pixel, Web Pixel, and CAPI queue features included.
Storefront tracking installs through an Online Store 2.0 Theme App Embed block and Shopify's official Web Pixels extension API. Flipping the embed toggle inside your Theme Editor inserts oaiq.min.js and cart-tracker.js into the document head automatically, so publishing a fresh theme update never strips your pixel snippet out of theme.liquid.
Theme scripts monitor page_viewed, contents_viewed, and Ajax items_added across browsing routes before stopping at the checkout wall. Past that boundary, Shopify's isolated @shopify/web-pixels-extension runtime picks up checkout_started and order_created inside the official Customer Events sandbox. At the same time, backend webhooks forward confirmed orders/create payloads to bzr.openai.com/v1/events so ad blockers never hide paid sales.
Credentials never reach storefront browsers, stay encrypted at rest via @47ng/cloak AES-GCM-256, and appear redacted inside staff admin logs.
Hit Validate in pixel settings to run a ?validate_only=true ping and confirm HTTP 200 credentials without placing fake orders.
Catalog feed sync is not live today. Inside the Shopify Admin interface, the Catalog Feeds tab currently displays a Coming Soon notice while engineering work remains focused on browser tracking, the Web Pixel sandbox, and server Conversions API delivery. Merchants preparing product catalogs right now should maintain external feeds using our Shopify product feed guide.
Turn on Theme App Embeds, sandboxed Web Pixels, and encrypted Conversions API webhooks in minutes, or bring in Comercio engineers for custom multi-store setups.