SEO, AdWords, affiliates, advertising, and promotions
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?
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>
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>
User | RANK |
---|---|
9 | |
8 | |
3 | |
3 | |
3 |
Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023