I am currently developing a Web Pixel app extension.
I have implemented the subscription to the checkout_completed event, but I am experiencing inconsistent detection of this event, even when using the same environment and following the same steps to complete a purchase.
I agree with @fooc , this problem is very strange. On one store, everything is tracking fine, and on another, 10 checkouts are only going through 3. Tell me, have you had any success with the solution?
Hi @fooc and @1080 , we also noticed this problem. We do not see any pattern when it works and when it does not. Of course it ideally always has order.id as well. As asked for in e.g. those threads: 1, 2
Any updates on this, or empty order object?
We are still searching for a way to a) reliably get order data which is b) complete on client side.
Improvements would be appreciated a lot.
we’ll also reach out to support. I do not know to which technical team it will be forwarded to. Hope it will match the request topic this time.
@hossain I haven’t lost all hope that this promoted feature will eventually reach a stable state Communication and support indeed leave a lot to be desired.
Its not about the hope its about the money we are losing, spending on ads, facebook ads behaving in worst way because they are not counting conversion.
2 months later and there seems to be progress on it.
According to Shopify’s documentation about the event, checkout_completed is suppose to be available “on the order status and checkout pages”. My tests show the event runs on upsells, but on the following order status page (often known as the thank you page), the event does not run. Surely that can’t be intended.
When there is no upsell, the event runs on the order status page.
I can confirm that we are having this issue as well.
We were able to trace the data for individual users and see the event firing multiple times in a percentage of the cases.
As a workaround, our internal systems that are receiving the the checkout_completed event, deduplicate based on the order ID.
However I do agree that this is a bug in shopify, or at the very least, an undocumented behavior with when these checkout_completed events fire. We were not able to reproduce it ourselves no matter how hard we tried.
checkout_completed isn’t firing for me. I’m actually a shop admin trying to subscribe to the event using the “Customer Events” feature in the Shopify admin. I’m not having trouble with any other event not firing my handler. I tried stepping through the minified code that handles Customer Events to see what was happening. I see the event start to be fired, but it bails out before reaching the event subscription, and I can’t tell why.
I was testing by submitting real orders in incognito mode and using Chrome’s JS debugger. All events were firing their subscriptions except for checkout_completed.