eCommerce Conversion Not working

jeremyashburn
New Member
5 0 0

For the past week, I''ve been trying to get the Google Ads Conversions tracking working, and I can't get to work on my client's ecommerce site.

I've read everything I can about setting up Shopify Conversions, been on chat support with Google Ads, and even clicked an Ad and bought a product on my client's site.

It's still not working.

Can you make any suggestions? Could this be a theme issue?

Replies 2 (2)
jeremyashburn
New Member
5 0 0

This is the code that I on the "order processing" section of the Shopify Checkout.

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

gtag('config', 'AW-573709336');
</script>

<!-- Event snippet for Website sale conversion page -->
<script>
gtag('event', 'conversion', {
'send_to': 'AW-573709336/j_22CK6Y7-EBEJi4yJEC',
'value': {{ checkout.subtotal_price | divided_by: 100.0 }},
'currency': '{{ shop.currency }}',
'transaction_id': '{{ order_number }}',
});
</script>

jeremyashburn
New Member
5 0 0

Ok, while waiting on you guys to respond, I've halfway fixed the problem.

Now, I'm getting conversions, but the value is only "1" for each conversion.

I've done some more research, tweaked my code, and here's what I now have in the Order Processing.

Does this look right?

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

gtag('config', 'AW-573709336');
</script>

<!-- Event snippet for Website sale conversion page -->
<script>
gtag('event', 'conversion', {
'send_to': 'AW-573709336/j_22CK6Y7-EBEJi4yJEC',
'value': {{ checkout.total_price | money_without_currency | remove: ',' }},
'currency': '{{ shop.currency }}',
'transaction_id': '{{ order_number }}',
});
</script>