Order name not part of payload in Checkout Completed event

Can Shopify add the order name (‘name’),many people have been complaining about data discrepancies between shopify and GA4. I think adding that parameter would solve lots of problems. Since the order `name` is what’s very visible on the dashboard. This should be an addition to the id not a replacement.

Hi there,

When the checkout_completed event fires on the Thank You page, the order number might not exist yet since order creation can happen after the page loads.

That’s why we include the order ID instead. It’s a reliable identifier that’s available immediately and stays consistent throughout the order’s lifecycle. If you need the order name, you can use the order ID to retrieve the order name once it becomes available.

Thank you for your response.

The challenge i have with this approach is that one would have to make api calls to a backend server within web pixel (which i dont think is ideal) in order to get the order name. Because these things are event driven its possible one would miss that event since the api calls would be async.

The question i have is this, is it okay to assume that whenever an order id is present, then there would always be an order name ?

If yes, what are the challenges with having an order name to the payload as opposed to making another big api call to a backend server for this.

Order ID exists the moment checkout completes.
Order name typically gets created after the Thank You page loads.
So it’s not safe to assume that whenever an order ID is present, there would always be an order name.

One approach you can take to address this is use orders/create webhook: