Customer Pixel for checkout_completed not triggered

Customer Pixel for checkout_completed not triggered

Shiwali
Shopify Partner
1 0 0

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!

Reply 1 (1)

orikis
Tourist
6 1 0

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/c/technical-q-a/custom-pixel-checkout-completed-event-not-triggered-af...