Help Needed: Action required: Use “checkout.order_id” on the Thank You page

Hi all,

I have received the below email from Shopify. I am seeking support in actioning this. I know it may sound simple for a dev, but I am not confident with code to do it on my own and do not want to risk ruining my online store.

I have already spoken to a Shopify Support Advisor but was recommended that I seek assistance from a Shopify Developer/expert:

This was the instructions in the email:
"Replace “order.{anything}” with “checkout.order_id” in Additional Scripts and similarly update any downstream systems that rely on this data.
Alternatively, you can upgrade your Thank you page and customize it using app blocks and Web Pixels. This will eliminate your dependence on Liquid variables, but downstream systems will still need to be updated.

Why you need to do this

The field(s) “order.{anything}” are populated during order creation. With Checkout Extensibility, this happens independently of the Thank You page loading to improve scale and performance. This provides a faster experience for your customers.

The side effect is that “order.{anything}” are usually not available when the Thank You page loads. Continuing to use these fields can result in conversion seeming lower than it is, impacting analytics, or interrupting integrations with downstream apps.

“checkout.order_id”, on the other hand, is a common and unique identifier across checkout and order creation. It is available as soon as checkout is completed and can reliably be used to tie together analytics, downstream systems, and the buyer experience "

Any assistance on how to do this correctly would be greatly appreciated.

1 Like

Well what ever support is saying is true. The Thank You Page will load independently once user completes the checkout so the order properties on your events might not work cause the analytics to not “work” as expected. As mentioned by support, instead of using order object, use the checkout object and it’s properties so you still get the data once the Checkout Extensibility happens. I can help check your code and change those objects for you if needed. Just DM me your url and collab code to get started.