Adding code to checkout for marketing tracking

I need to add a custom code to my checkout to be able to see what is creating marketing success vs. not. Any help on were to add this code or who/how to contact someone to do this?

Code can be added to the order status/post purchase pages in Settings → Checkout and accounts

checkout.liquid is available on Shopify Plus to make customizations: https://shopify.dev/themes/architecture/layouts/checkout-liquid