Google Ads shows no Conversion Value

Solved
New Member
3 0 0
Hi there,
Little problem.
I want to import conversions/transactions in Google Ads from Google Analytics.
GAnalytics is showing revenue data and no zero values.
Gads is not showing order values, but it shows the count of conversions.
Situation:
Analytics using default shopify integration. Enabled advanced eCom tracking.
Google Ads - Google ads Tag in the template.liquid - Conversion tag on checkout settings in additional code
I added the analytics method (only counts conversions, doesnt show values), and the other method with the code in checkout page (24 hours, shows zero values everywere, I had 9 conversions)
 
Code for theme.liquid.
<!-- Global site tag (gtag.js) - Google Ads: XXX -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-XXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
 
gtag('config', 'AW-XXX');
</script>
Code in checkout page
{% if first_time_accessed %}
<script>
gtag('event', 'conversion', {
'send_to': 'AW-XXX/XXX',
'value': {{ checkout.total_price | money_without_currency | replace: ',', '.' }},
'currency': '{{ shop.currency }}',
'transaction_id': '{{ order.order_number }}'
});
</script>
{% endif %}
I'm using EUR, I read somewhere that I need the replace part.
 
0 Likes

Follow the Shopify instructions and make sure you add the code at the checkout which their instructions miss. If you do this and setup dynamic conversion values. You should see your revenue and sales in Google ads. If you have enhaned ecom turned on in Google Analytics...they you will see your revenue and sales in GA.

We help ecommerce brands create, manage and scale profitable PPC campaigns across North America, Europe and Australia. We also help with CRO & analytics: TakeSomeRisk.com
0 Likes
Shopify Partner
155 2 22

The checkout needs both the global site tag and the conversion tag. Otherwise it will not work.

 

The conversion value should be if prices are 1,000.00

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

Or if your prices are 1000,00 

{{ total.price | money_without_currency | replace: ',', '.' }} 

 

Google Shopping Specialist - Data Feed Managment Tool
0 Likes
New Member
3 0 0

€1.040,00 is what my prices look like.

I am using the correct code then right?

0 Likes

Success.

Shopify Partner
155 2 22

In that case you first need to remove the dot, then replace the comma separator with a dot.

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

Otherwise, your prices will be 1.04000, which would be a cheap product :D

 

Test out the results, I have not tested it, but it should be correct now.

 

So the reason you have issues is that anything integer ie a number, needs to be with a dot, and can not consist of commas.

 

Let me know if you get the correct results now

 

Hope this helps.

Google Shopping Specialist - Data Feed Managment Tool
0 Likes
New Member
3 0 0
'value': {{ total.price | money_without_currency | remove:'.' | replace: ',', '.' }},
'currency': '{{ shop.currency }}',
'transaction_id': '{{ order.order_number }}'

^ My current code (just the part that matters)
I also included the global tag (so this is in checkout now, and in the template.liquid

1. Do I need to put {{ total.price | money_without_currency | remove:'.' | replace: ',', '.' }}, between ' too? Like '{{ shop.currency }}'

2. Is the code total.price or checkout.total_price? I see different options on different resources.

0 Likes
Shopify Partner
155 2 22

the placement of the value does not matter, how you have done it is ok.

With regards to the differences, sorry I made a typo, it should be total_price and not total.price

Hope this helps.

Google Shopping Specialist - Data Feed Managment Tool
0 Likes

Emmanuel has helped a lot and that should work. If it doesn't, look at the source code of a page for an order. You will see what is being outputted which provides a good clue as to what's happening.

Run Google Shopping ads? Get the free definitive guide to Google Shopping for Shopify (no optin required): https://www.digitaldarts.com.au/google-shopping
0 Likes
New Member
10 0 0

Hi 

 

 

0 Likes
Highlighted
Shopify Partner
155 2 22

Yes, that is correct Emma. More info: https://support.google.com/google-ads/answer/3419241

Google Shopping Specialist - Data Feed Managment Tool
1 Like