The Customer Events sandbox
Shopify fires the purchase from Customer Events (the Web Pixels API), which run in a sandbox isolated from your theme and any global dataLayer. A pixel written the old way sees nothing — it has to subscribe to Shopify’s checkout_completed event instead.