Google Ads Conversion tracking not working

Solved
Highlighted
Tourist
7 0 3

Hello everyone,

Yet another conversion tracking thread starting some of you might say. Unfortunately, I went over almost all the similar threads from the past but still could not figure out why mine is not working, i.e. Google Ads conversion action status is still stuck in 'Unverified' state and conversions are not being tracked by Google Ads although I think I configured everything as suggested and tested it via a test order on my store.

I use Google Tag assistant to see what tags and events being fired on each page and in fact recorded the session for the live test order. I also captured the source code on the 'thank you' page for the same.

Here is what I currently have configured on Shopify and my observations for each of them:

  • Google Analytics tag populated on Online Store -> Preferences section. This works great and the tag shows up on all of our web pages including the individual steps of the checkout process. And with enhanced ecommerce being turned on, all the sales and the purchase values etc. are being recorded properly inside Google Analytics Conversions -> Ecommerce
  • Google Ads global tag placed in theme.liquid file as well as in additional scripts box of Checkout settings along with event snippet after reviewing the instructions carefully on these three pages:

1. Shopify instructions

2. DigitalDarts by @Josh_Uebergang 

3. FeedArmy by @EmmanuelFlossie 


Here is the code I have in Additional scripts box:

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

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

<!-- Event snippet for Luxy Sale conversion page -->
<script>
  gtag('event', 'conversion', {
      'send_to': 'AW-745162621/OBsgCNrBy94BEP2OqeMC',
      'value': {{ checkout.total_price | money | remove: ',' }},
      'currency': 'USD',
      'transaction_id': '{{ order_number  }}',
  });
</script>
{% endif %}

 

Here is the log portion from Google Ad Assistant recording showing that Google Ads gtag was indeed seen on thank you page along with Google Analytics tag but only events fired were for Google Analytics not for Google Ads:

GTA_page1.png

GTA_page2.png


And here is screenshot of the thank you page source code for the test order:

thank you_source_code.png

It is clearly showing both Google Ads gtag and event snippet populated with right values. It's been days since I placed this test order. Hence, I am puzzled why this worked for many others before but not for me.

Any help is appreciated.

Thanks!

0 Likes
Highlighted
Shopify Partner
504 12 99

This is an accepted solution.

The value can only be numeric, ie no currency symbols or currency codes.

Instead of $63.28 it should be 63.28

When you add non numeric data without wrapping it with quotes you get syntax errors.

Regardless it should be only numeric. I'm perplexed you managed to add a dollar symbol, my code does not allow this. So you must have made edits.

 

Instead of 

{{ checkout.total_price | money | remove: ',' }}

it should be

{{ total_price | money_without_currency | remove:',' }}

 

 

 

I'm a Google Shopping Specialist & a Google Ads Platinum Product Expert (Only a hand full of Platinum experts in the world!)
Need a Premium Data Feed Management Tool? Get in touch. (DIY/Managed)
1 Like
Highlighted
Tourist
7 0 3

Hey @EmmanuelFlossie,

Thanks a lot for taking time to find out the issue. I did not realize that would be the issue. I can't quite remember where I first saw the example using 'money' but then I went to Shopify Developers site to verify that:

https://shopify.dev/docs/themes/liquid/reference/filters/money-filters#money

But looks like I should have either quoted that or use 'money_without_currency' as you indicated to avoid syntax errors which is what I just did and it worked perfectly. I could see the conversion event being fired and also Conversion status is changed from 'Unverified' to 'No recent conversions' (which is fine) on Google Ads side.

Thanks again!

0 Likes
Highlighted
Shopify Partner
504 12 99

Pleasure

I'm a Google Shopping Specialist & a Google Ads Platinum Product Expert (Only a hand full of Platinum experts in the world!)
Need a Premium Data Feed Management Tool? Get in touch. (DIY/Managed)
0 Likes