Customer Pixel for checkout_completed not triggered

Topic summary

A developer has implemented a Custom Pixel subscription for the checkout_completed event that pushes order data to window.dataLayer. While other events like page_view fire successfully after checkout, the checkout_completed event fails to trigger at all.

Current Status:

  • The event listener code appears correctly structured
  • Other pixel events are working as expected
  • The issue may stem from the event not being emitted or a blocking condition

Proposed Solution:
Another user experienced a similar issue and suggests implementing a workaround, referencing a Shopify community post about checkout_completed events not triggering after the first occurrence. The discussion remains open with no definitive resolution yet provided.

Summarized with AI on October 27. AI used: claude-sonnet-4-5-20250929.

Hi,

I’ve subscribed to the “checkout_completed” event in our Custom Pixel setup using the following code:

analytics.subscribe(“checkout_completed”, (event) => {
window.dataLayer.push({
event: “checkout_completed”,
orderId: event.orderId,
currency: event.currency,
value: event.value,
});
});

During testing, I can see other events like “page_view” being pushed successfully to the dataLayer after checkout. And when logging all events, most are captured — except for “checkout_completed”, which does not appear at all.

It seems like either this event is not being emitted correctly by the pixel, or there’s a condition preventing it from firing. Could someone please help with the event so that triggered properly?

Thanks!

Hi.

I faced a similar problem and I’ve avoided it by implementing a workaround.

I’m not sure that your problem is the same, but please refer this post for your reference.

https://community.shopify.com/post/3024563