I'm experiencing an issue with the 'checkout_completed' event in my Custom pixel code:

gprusiyski
Shopify Expert
3 0 0

 

I subscribed for the "checkout_completed" event in Custom Pixel. This is my code:

 

 

 

//subscribe to events
analytics.subscribe("checkout_completed", (event) => {
window.dataLayer.push({
event: "checkout_completed",
orderId: xxx,
currency: xxx,
value: xxx,
});

 

 

 

 

 

While I'm testing, I can observe the 'page_view' event being pushed to the dataLayer in the console, but I cannot see it in the Chrome extension 'Tag Assistant Legacy'.

As a test, I changed the event from 'checkout_completed' to 'checkout_started', and everything worked as expected. I could see this event in the Chrome extension 'Tag Assistant Legacy'.

 

Can anyone help me with this issue?

Replies 0 (0)