PaulLam Posted February 24 Share Posted February 24 (edited) 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> Edited February 24 by PaulLam typing mistake Link to comment
Solution paul2009 Posted February 24 Solution Share Posted February 24 (edited) On 2/24/2023 at 12:12 PM, PaulLam said: I followed Google Advisor's instruction to add the below code in ORDER CONFIRMATION PAGE. Some changes to the Order Confirmation page recently and it is now necessary to add your code to the the Order Status page too if you want to track purchases of physical, digital, and/or service products. See Customising the Squarespace order confirmation page. Did this help? Please give feedback by clicking an icon below ⬇️ Edited February 26 by paul2009 About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
PaulLam Posted February 27 Author Share Posted February 27 On 2/24/2023 at 12:26 PM, paul2009 said: Some changes to the Order Confirmation page recently and it is now necessary to add your code to the the Order Status page too if you want to track purchases of physical, digital, and/or service products. See Customising the Squarespace order confirmation page. Did this help? Please give feedback by clicking an icon below ⬇️ Hi Paul, Thank you so much for your help. I will try it out! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment