Personalized checkout and custom promotions with Shopify Scripts
I have added the below code in shopify in checkout. After putting the code I am getting the double conversion. Kindly check the code and let me know it is correct or not.
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-10883835983"></script>
<script>
window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'AW-108838xxxxx');
</script>
<!-- Event snippet for Shopify Purchase conversion page -->
<script>
{
gtag('event', 'conversion', {
'send_to': 'AW-10883835983/NuPbCIL55d8ZEM_Q6MUo',
'value': {{ checkout.total_price | money_without_currency }},
'currency': 'INR',
'transaction_id': '{{ order.order_number }}'
});
}
</script>
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025