Difference Between 'Order Confirmation' and 'Thank You' Pages in Shopify - When Are They Triggered?

How can I ensure that my tracking codes and analytics work on the confirmation page? Currently, neither my custom pixel nor the code in the ‘Additional Scripts’ field seems to be working. Any advice on how to resolve this?