Google Ads shows no Conversion Value

Solved
MikeSpecter
Visitor
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.
 
Accepted Solution (1)
EmmanuelFlossie
Shopify Partner
2709 196 651

This is an accepted solution.

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 😄

 

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.

I'm a Google Shopping Specialist and a Google Product Expert Education Award winner, a Google Ads Diamond Product Expert, and also a Google Premier Partner.
Need Data Feed or Google Shopping support? Get in touch.

View solution in original post

Replies 9 (9)
DuaneBrown
Shopify Expert
1568 152 933

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 & DTC brands create, manage and scale profitable PPC campaigns: TakeSomeRisk.com

P.S. Take my Google Shopping Course and help grow your revenue this month.
EmmanuelFlossie
Shopify Partner
2709 196 651

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: ',', '.' }} 

 

I'm a Google Shopping Specialist and a Google Product Expert Education Award winner, a Google Ads Diamond Product Expert, and also a Google Premier Partner.
Need Data Feed or Google Shopping support? Get in touch.
MikeSpecter
Visitor
3 0 0

€1.040,00 is what my prices look like.

I am using the correct code then right?

EmmanuelFlossie
Shopify Partner
2709 196 651

This is an accepted solution.

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 😄

 

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.

I'm a Google Shopping Specialist and a Google Product Expert Education Award winner, a Google Ads Diamond Product Expert, and also a Google Premier Partner.
Need Data Feed or Google Shopping support? Get in touch.
MikeSpecter
Visitor
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.

EmmanuelFlossie
Shopify Partner
2709 196 651

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.

I'm a Google Shopping Specialist and a Google Product Expert Education Award winner, a Google Ads Diamond Product Expert, and also a Google Premier Partner.
Need Data Feed or Google Shopping support? Get in touch.
Josh_Uebergang
Shopify Expert
1003 42 264

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
Emma0072252
Tourist
11 0 1

Hi 

 

 

EmmanuelFlossie
Shopify Partner
2709 196 651

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

I'm a Google Shopping Specialist and a Google Product Expert Education Award winner, a Google Ads Diamond Product Expert, and also a Google Premier Partner.
Need Data Feed or Google Shopping support? Get in touch.