We are currently using draft orders on our B2B shopify plus store as a means of testing checkout without the order being automatically pushed to our ERP system and fulfilled. It’s not the most clever solution, I know, but since our “real” customers don’t use draft orders, this was an easy low-code solution to that problem.
The issue now is tracking.
We are using a custom web pixel which is what Shopify recommends, when pushing events to GTM, since we have checkout extensibility enabled. In the custom pixel we are using the web-pixel-api default event checkout_completed (https://shopify.dev/docs/api/web-pixels-api/standard-events/checkout_completed).
The checkout_completed event however is triggered for both “real” orders and draft orders, causing tracking on our test checkouts. Maybe not a huge problem, but still quite annoying.
Is there any way from the data provided by the checkout_completed event to identify the order as a draft order?