After upgrading to Checkout Extensibility, additional scripts do not work

Topic summary

A merchant is experiencing issues with custom JavaScript scripts on the order status/thank you page after upgrading to Checkout Extensibility.

The Problem:

  • Previously used additional scripts in Settings > Checkout to redirect customers from the thank you page to another page after order completion
  • The script relied on window object operations and URL pattern matching
  • After upgrading to Checkout Extensibility, these additional scripts no longer function

Current Limitations:

  • Window object operations are not available with custom pixels
  • Alternative approaches using Pixels and customer events would be necessary
  • One respondent confirmed there is currently no way to achieve this redirect functionality

Status: The discussion remains unresolved, with the merchant seeking alternative solutions or workarounds for post-purchase page redirection under the new Checkout Extensibility system.

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

I’m adding additional scripts to the order status page of Shopify’s admin interface under Settings > Checkout.

I’m writing JavaScript code like this:

<script type="text/javascript">
  const url = window.location.href;
  const pattern = /^https:\/\/****.myshopify.com\/(?<appId>.+?)\/checkouts\/(?<checkoutToken>.+?)\/thank_you$/;
  const result = url.match(pattern);
  if (result != null) {
    window.location.replace('****');
  }
</script>

In summary, this process, executes after an order is completed, upon transitioning to the thank you page, and redirects to any page.

However, when upgrading the thank you page and order status page to Checkout Extensibility, additional scripts will no longer work, and it will be necessary to register pixels using Pixels and customer events. However, it seems that operations using the window object are not available with custom pixels.

Is it possible to redirect to another page from the thank you page after the order is completed? Or if there are any other ideas, I would like to hear them.

There’s no way to do it as of now.