Additional Script on Checkout Customization is Deprecated.

Topic summary

Main issue: “Order status page additional scripts” for Thank You page customizations are being deprecated, prompting how to migrate code and maintain functionality.

Key guidance:

  • You cannot copy Additional Scripts directly into Custom Pixels; pixels are for tracking and must use Shopify’s Custom Pixel API.
  • Separate tracking from UI changes. Tracking (e.g., purchase events) should be implemented in Custom Pixels; UI/HTML modifications are not supported there.
  • For advanced checkout/Thank You page UI changes, consider Shopify Plus with checkout.liquid or a dedicated app.

User goal: Show a discount voucher (WELCOME10) on the Thank You page for first-time customers via Liquid logic. Best replacement approach for UI display remains unclear without Additional Scripts.

Tracking-focused update:

  • Another response recommends tracking purchase via Custom Pixels and Google Tag Manager (GTM) using a custom data layer, with variables like value and currency. An image demonstrates the purchase data layer setup.

Actions/next steps:

  • Move analytics to Custom Pixels; test via Customer Events preview.
  • Evaluate Shopify Plus or an app for Thank You page UI content.

Status: Partially addressed (tracking). The method to display the voucher code via UI is unresolved/ongoing.

Summarized with AI on December 13. AI used: gpt-5.

Hi,

I have made some modifcations on Thank You page using Additional Scripts on “Order status page additional scripts”. It looks like it is going to be deprecated.

There is a section called Custom Pixels, how do I move the entire Additional Scripts Code to Pixels?

Is it enough to copy the entire Thank You Page to customization code from Order status page additional scripts to Pixels?

Thanks

Hi @paulson1 ,

No, you cannot directly copy the entire “Order Status Page Additional Scripts” code into Shopify’s Custom Pixels section, as they function differently. Custom Pixels are specifically designed for tracking purposes (e.g., analytics, conversions) and must follow Shopify’s Custom Pixel API. Here’s how you can transition properly:


Steps to Move Additional Scripts to Custom Pixels#### 1. Understand Your Current Scripts- Go to Settings > Checkout > Order Status Page > Additional Scripts.

  • Identify what the script does:
    • Analytics tracking (e.g., Google, Facebook Pixel, custom tracking).
    • Custom UI or HTML modifications.
  • If it’s a mix of these, you’ll need to separate the functionalities.

2. Move Tracking Scripts to Custom Pixels- Shopify Custom Pixels are used for event tracking, such as purchases, page views, etc.

  • To create a custom pixel:
    1. Go to Settings > Customer Events > Pixels.
    2. Click Create Custom Pixel.
    3. Write your JavaScript logic following the Pixel API documentation.
    4. Example: To track a purchase:
function pixelLogic(event) {
  if (event.name === "purchase") {
    console.log("Purchase event detected:", event.data);
    // Add your tracking logic here (e.g., send data to your analytics platform).
  }
}

Shopify.register('customerPixel', pixelLogic);
​

3. Handle Non-Tracking Scripts- HTML/Styling Changes: If your script includes custom HTML or styling changes, these are not supported in Custom Pixels. You may need a Shopify app or custom checkout to implement these modifications.

  • Custom Shopify Plus Checkout: For advanced checkout and Thank You page customizations, upgrade to Shopify Plus and use the checkout.liquid file.

4. Testing and Validation- Once you’ve implemented your Custom Pixel, test it in Preview Mode under Customer Events.

  • Ensure all tracking or functionalities behave as expected on the Thank You page.

Got it! If you found my suggestions helpful, please consider liking or marking it as a solution.
Your feedback is appreciated! If you have any more questions or need further assistance, just let me know.

Thanks & Regards
Akshay Bhatt

Thanks @akshay_bhatt

I want to show a Discount Voucher code on Thank You page.

My code looks like this.

{% if customer and customer.orders_count == 1 %}

Thank You for Your First Purchase!

As a special gift, here’s a 10% discount on your next order:

Use Code: WELCOME10

{% endif %}

I was wondering what is the best option to show the code on Thank You Page if additional scripts are not going to be available.

Thanks

Hi Paulson1,

Thanks for your query.

purchase event now can be tracked using custom pixel in customer events.steps to follow:

  1. create a custom data layer for purchase events and connecting GTM with That

  2. Create datalayer variables like value, currency,

Feel free to ask if you have any question