Code From order Status page that i have removed becous eits duplicated on Order confirmation page

<!--Add this to SQSP -> code injection -> ORDER STATUS PAGE -->

<script>

window.dataLayer = window.dataLayer || [];

window.dataLayer.push({

'event': 'orderConfirmed',

'orderId': '{orderId}',

'conversionValue': "{orderGrandTotal}",

'orderSubtotal': {orderSubtotal},

'orderSubtotalCents': '{orderSubtotalCents}',

'orderGrandTotalCents': '{orderGrandTotalCents}',

'customerEmailAddress': '{customerEmailAddress}'

});

console.log("✅ Squarespace order confirmation page: data layer JS working");

</script>

Order Confirmation Page.

<!--affiliate goaffpro-->

<script type="text/javascript">window.goaffpro_order = { id: "{orderId}", subtotal:"{orderSubtotal}", total:"{orderGrandTotal}", customer:{ email: "{customerEmailAddress}"}}</script><script type="text/javascript" src="https://api.goaffpro.com/loader.js?shop=Mg4jQKe4GRBFG"></script>

<!-- Google Tag Manager -->

<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://gtm.kseniiakrasilich.com/pndvvccm.js?st='+i+dl+'';f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','KNQCZQH');</script>

<!-- End Google Tag Manager -->

<!--Add this to SQSP -> code injection -> ORDER STATUS PAGE -->

<script>

window.dataLayer = window.dataLayer || [];

window.dataLayer.push({

'event': 'orderConfirmed',

'orderId': '{orderId}',

'conversionValue': "{orderGrandTotal}",

'orderSubtotal': {orderSubtotal},

'orderSubtotalCents': '{orderSubtotalCents}',

'orderGrandTotalCents': '{orderGrandTotalCents}',

'customerEmailAddress': '{customerEmailAddress}'

});

console.log("✅ Squarespace order confirmation page: data layer JS working");

</script>