How to add script to order confirmation page?

Topic summary

Main issue: After Shopify’s change to pixel tracking and removal of the “Additional scripts” field, the poster needs to add an affiliate tracking script to the order confirmation (Thank You) page that includes the order amount.

Guidance provided:

  • Use a Checkout Extension targeting the Thank You/Order Status pages to inject logic: this is an app-based extension point for checkout surfaces.
  • Alternatively, implement a Shopify Web Pixel: a Shopify-managed analytics script framework for tracking events.
  • Developer docs linked for both approaches.

Clarifications:

  • Checkout Extension = app extension that can render or run code on checkout/thank-you pages.
  • Web Pixel = script registered via Shopify’s pixels API for marketing/analytics events.

Current status and outcomes:

  • The original poster lacks experience and requested implementation help.
  • The responder cannot assist with hands-on setup and suggested finding a Shopify developer.
  • No implemented solution or code shared; the thread remains open with the key task to build either a checkout extension or web pixel that passes the order total to the affiliate script.

Attachments/media: None.

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

Hello community,

Since the new Shopify pixel tracking I am completely lost.

I need to add a script to the order confirmation page.

Before this wast just added to the additional script section but this was removed by Shopify.

How can I built a pixel where I can add the script of my affiliate party?

The dynamic data is the amount that is spend.

Thank you very much in advance.

Wouter vd Meer

Check out the dev docs - sounds like you might need a Checkout extension: https://shopify.dev/docs/apps/build/checkout/thank-you-order-status

Or if you’re looking for web pixel docs: https://shopify.dev/docs/apps/build/marketing-analytics/build-web-pixels

Hello @JayAdra , thank you very much. Both of them sound interesting but I am not experienced with this type of coding. Can you maybe help me out with the pixel?

Sorry, I haven’t used these pixels before, and aren’t doing any consultation/contract work at the moment.

There should be plenty of Shopify devs around though! Good luck!