Tracking pixel for checkout

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.