Tracking pixel for checkout

Topic summary

Goal: Add a tracking pixel on Shopify’s checkout after checkout.liquid was deprecated.

  • Context: OP added a landing-page pixel via Custom Events and tested it successfully. For checkout, they previously were told to use checkout.liquid and provided example code using analytics.subscribe(‘checkout_completed’, …).

  • Guidance: Instead of checkout.liquid, place the checkout tracking via Customer Events as a custom pixel. For purchase tracking, install a data layer so the purchase event (with enhanced user/purchase data) can be captured from Customer Events.

  • Assets: Two screenshots were shared showing how to set up the purchase data layer and where it appears within Customer Events (images are central to the suggested implementation steps).

  • Status: No confirmation from the OP; solution suggested but resolution not confirmed.

Summarized with AI on December 19. AI used: gpt-5.

Hello, I’m trying to implement a tracking pixel for my web app. I’m currently using vision template. I’m working with a third party company that will help me with tracking and analytics. They’ve recently requested I enter two tracking pixels (one for the landing page and one for the checkout page). The landing page pixel I was able to enter through custom events and was able to test to see that it’s working. For the checkout pixel, they’ve asked to insert it in the checkout.liquid file but I’ve read how recently it was depreciated. With this latest depreciation of the checkout.liquid, would anyone know where I can now insert this tracking pixel for the checkout page? Any help would be greatly appreciated. Sample of the pixel, ‘analytics.subscribe(‘checkout_completed’, (event) => {’

Thanks.

Hello Jperez,

Thanks for your query.

You can setup tracking pixel for checkout page from customer event custom pixel. If you would like to track the purchase event you can install the datalayer from where you can track the purchase event with ehanced users data.