Shopify checkout additional script query

Topic summary

A developer is seeking guidance on implementing a Shopify checkout redirect script that sends users to an external domain with the order ID after purchase.

Current Setup:

  • Using Shopify’s additional scripts area with a redirect that captures Shopify.checkout.order_id
  • Script uses setTimeout and window.location to perform the redirect

Key Concern:
Shopify’s additional scripts area will be deprecated next year, prompting the need for an alternative implementation method.

Specific Questions:

  • How to implement this redirect functionality using pixels instead of additional scripts
  • How to integrate with GTM (Google Tag Manager) for the tagging process
  • Whether anyone has successfully implemented this feature and can share insights

Status: The question remains unanswered, with the developer looking for practical solutions before the deprecation deadline.

Summarized with AI on November 6. AI used: claude-sonnet-4-5-20250929.

Hello all,

We are using this redirect script in additional script area of Shopify where we have redirected the user after purchase to another domain by getting the order id as provided by Shopify PFB the example code:

As by next year this additional script area are going to expire so I wanted to know how I can implement this with pixels as I am not able to find the redirect process there it is giving the GTM tag addition process.
any idea if anyone already done this feature just wanted to add simple redirect code, I hope we will get the order id from the Shopify variable.