Google Ads - Set up enhanced conversions manually with the global site tag (beta)

NickHo
Tourist
3 0 0

Recently, Google ads published a new feature to improve the accuracy of the conversions for online stores. I have tried to contact customer service for what Google needs for the implementation. But they don't have an answer. This is the link to the new conversion set up which I think is important 

https://support.google.com/google-ads/answer/9888145

It requires at least a javascript about the customers' email address to fill in the Google ads account when checkout. Could anyone help me out here as it is something new and I don't find any article to talk about this on Shopify?

Thanks in advance.

0 Likes
DWTK
Tourist
10 0 1

I'm very curious about this as well. 

0 Likes
Kyle_Wescott
Tourist
5 0 2

I set mine up today. I wasn't sure how to test it right away though, so I have to wait 72 hours and look at a Google Ads report. If I set it up right, I'll share what I did here.  I believe you basically just have to put some code with the rest of your conversion codes in the Additional Scripts area in the Checkout section in Settings.  

0 Likes
Kyle_Wescott
Tourist
5 0 2

Actually, I'll just share it now.  I think you use liquid for the variables. I don't believe you can do the customer names or addresses because the liquid variables the order confirmation page uses don't seem to split these up into first name, last name, street address, zip etc.  I could be wrong though.

THIS CODE MIGHT BE WRONG

<!-- Google Ads Enhanced Conversions -->
<script>
var enhanced_conversion_data = {
"email": {{ order.email }},
"phone_number": {{ order.phone }},
};
</script>
<!-- END Google Ads Enhanced Conversions -->

0 Likes