Development discussions around Shopify APIs
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.
Solved! Go to the solution
This is an accepted solution.
Hello,
This tutorial is very interesting and perfectly functional:
https://feedarmy.com/kb/adding-adwords-conversion-tracking-to-shopify/
I'm very curious about this as well.
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.
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 -->
Thanks for the help! Any update on whether it got verified for you?
Not verified yet so it's probably broken. I'm going to try the solution below.
Thanks for your sharing. Should I add the script in the theme.liquid? Or, which liquid should I add it? Thank you!
I forgot to ask - where did modify the global site tag since Shopify automatically handles that? I didn't have to manually install the global site tag.
- Add “{'allow_enhanced_conversions': true}” to the config line to your global site tag that triggers across all pages.
This is an accepted solution.
Hello,
This tutorial is very interesting and perfectly functional:
https://feedarmy.com/kb/adding-adwords-conversion-tracking-to-shopify/
Just what I needed, thanks so much!
Thank you so much. Just try to follow his guidance.
Dear all,
We have created an in-depth tutorial and an updated code block for Google Ads Enhanced Conversion Setup on Shopify. Click here to see the tutorial, you can also leave your questions in the comments section of the tutorial or here.
Here is a simpler solution to this, that doesn't require any code changes and uses existing Shopify javascript variables on the checkout page.
NOTE: This assumes you have the Google Shopping App already installed for you Google Ads conversion tracking, but I *think* it should still work even if you don't.
A full writeup of this and other tweaks to make to Shopify's conversion tracking available here:
https://business.czarto.com/2020/09/29/shopify-google-ads-conversions/
Fantastic! I was having a difficult time figuring out how to pull this off with the Google channel already activated.
I'm curious about the attributes used for the JavaScript setup and why they differ from the other guide which suggested using these:
EDIT: Google support was able to verify that I have it correctly set up using the settings I just pasted. So maybe there are multiple ways of doing it?
I think there are definitely multiple ways of doing this as there are multiple ways to get the customer information.
Ahh, I see.. I'm going to try your setup instead since the other one created this error:
Customer data validity: Make sure your customer data is formatted correctly.
Have you figured this out yet? I'm not sure what code to enter for the javascript variables.
This one ended up working for me: https://business.czarto.com/2020/09/29/shopify-google-ads-conversions/
I thought there was an issue, but it seems to have resolved itself.
Hello @DWTK 👋
I've just used the instructions from the link you provided, however I still see an error: "Issues detected with your enhanced conversion setup" - please see the screenshot below 👇
Thank you!
You can also use this app to get it done if you are like me and don't like coding or are not very technical
User | RANK |
---|---|
10 | |
4 | |
3 | |
3 | |
3 |
As a business owner, have you ever wondered when your customer's first impression of yo...
By Skye Jun 6, 2023We'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, 2023