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>
We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023