Zend certified PHP/Magento developer

Adding tracking code to purchases on backend admin area online only

I’m not familiar with Magento 2 at all. I was tasked with adding a tracking code on the purchase thank you page. Logging into the backend, I have no idea where to place this code. How do I add this to my purchases? Your help is greatly appreciated.

This has to go on every page on the site in the head area (which i have no idea how to access)

<script async src="https://www.googletagmanager.com/gtag/js?id=AW-6236797340465"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', '6236797340465'); </script>

And this has to go on the actual thank you page in the head tags:

<script> gtag('event', 'conversion', { 'send_to': 'AW-6236797340465/g2g2CI3n3ej-MCELHzwb4C', 'transaction_id': '' }); </script>