Hello.
I want to add "Purchase" Conversion action for Google Ads. I followed Google Advisor's instruction to add the below code in ORDER CONFIRMATION PAGE. However, after testing, it show purchase "conversion action wasn't detected". The Google advisor cannot solve the problem and asked me to check with Squarespace. Anyone can help? Thanks a lot!
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-XXXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-XXXXXXXX');
</script>
<!-- Event snippet for Purchase conversion page -->
<script>
gtag('event', 'conversion', {
'send_to': 'AW-XXXXXXXX/bOYUCMfU340YENnU-8YC',
'value': {orderGrandTotal},
'currency': 'GBP',
'transaction_id': '{orderID}'
});
</script>