AdWords
2.4K members online now
2.4K members online now
Use AdWords conversion tracking and reporting to measure your results. Have a question about Google Analytics? Post it here, on the Google Analytics Community!
Guide Me
star_border
Reply

Trouble with Conversion Codes in Shopify. I need help!

Follower ✭ ✭ ☆
# 1
Follower ✭ ✭ ☆

Since I setup about 10 days ago I cannot get the conversion tracking code to work. I kindly need help and I think the big problem is that I am working within shopify, which breaks the URL for their own check out. I have tried conversion codes given to me and approved by adwords support with no luck. Same with what I could find in shopify.

This is my error reported to me in adwords
http://screencast.com/t/BXyZnXvvc7

and here is what has been going on
http://screencast.com/t/9FPgS3OwrEp

I tried the stock code from google. I tried a modified versions ( current one in my /head tag )

 

What am I missing?

Thank you
Jason

1 Expert replyverified_user

Re: Trouble with Conversion Codes in Shopify. I need help!

Participant ✭ ☆ ☆
# 2
Participant ✭ ☆ ☆
Hi Jason,

You need to cross check your conversion code on the thnakyou page. If it is possible then please share the screenshot of Conversion Code.

Thanks,
Anand

Re: Trouble with Conversion Codes in Shopify. I need help!

Follower ✭ ✭ ☆
# 3
Follower ✭ ✭ ☆
Sounds like a plan.
This is in the Shopify Additional content and scripts section. It is the code that triggers on the thank you page.
This is the current version. I tried other versions I found online including the original code from google adwords.

<!-- Google Code for Island Jay Conversion Page -->
&lt;script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 1021404585;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "8zXJCJucqFsQqcuF5wM";
var google_conversion_value = 1.00;
var google_conversion_currency = "USD";
var google_remarketing_only = false;
/* ]]> */
&lt;/script&gt;
&lt;script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
&lt;/script&gt;
<noscript&gt;
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/1021404585/?value=1.00&amp;currency_code=USD&amp;label=8z...
</div>
</noscript&gt;

Re: Trouble with Conversion Codes in Shopify. I need help!

Participant ✭ ☆ ☆
# 4
Participant ✭ ☆ ☆
Hi Jason,

If this is the correct conversion code which you have used on your thankyou page then at the end of code you have missed ">" (</noscript&gtSmiley Wink. Please close your script tag.

Thanks,
Anand

Re: Trouble with Conversion Codes in Shopify. I need help!

Follower ✭ ✭ ☆
# 5
Follower ✭ ✭ ☆
Thank you,
It was. It just pasted that way for some reason.

Re: Trouble with Conversion Codes in Shopify. I need help!

Follower ✭ ✭ ☆
# 6
Follower ✭ ✭ ☆
Woo hoo, starting to see some conversion data come in today

Re: Trouble with Conversion Codes in Shopify. I need help!

[ Edited ]
Top Contributor
# 7
Top Contributor

Hi @Jason G

 

Conversion code should not go in the <head> tag, rather it should be close to closing </body> tag. In the context of Shopify, you need to add your conversion code to Settings > Checkout > Additional Content & Scripts. 

 

Doing this will fire your conversion code on the final order confirmation page and thus AdWords will track the right data for you. 

 

If you have done this right, you are good to go. 

 

Additionally, if you want to track the conversion value as well, you will need to replace 

var google_conversion_value = 1.00;

With 

if ({{ subtotal_price }}) { var google_conversion_value = {{ subtotal_price | money_without_currency }}; }

 

And 

<img style="border-style: none;" alt="" src="//www.googleadservices.com/pagead/conversion/992160312/?value=1.00&currency_code=AUD&label=s8NFCPLRsVsQwtSM2QM&guid=ON&script=0" height="1" width="1" />

With

<img style="border-style: none;" alt="" src="//www.googleadservices.com/pagead/conversion/992160312/?value={{ subtotal_price | money_without_currency }}&currency_code=AUD&label=s8NFCPLRsVsQwtSM2QM&guid=ON&script=0" height="1" width="1" />

 

Make sure to replace Label with yours own from code and AUD with your account currency code.

 

All the best!

 

Thanks
Ratan Jha
Join me on Google+   |   Twitter

Re: Trouble with Conversion Codes in Shopify. I need help!

[ Edited ]
Follower ✭ ✭ ☆
# 8
Follower ✭ ✭ ☆

Thank you, but the second one
<img style="border-style: none;" alt="" src="//www.googleadservices.com/pagead/conversion/992160312/?value=1.00&currency_code=AUD&label=s8NFCPLRsVs... height="1" width="1" />

Is not in my tag mentioned above.

src="//www.googleadservices.com/pagead/conversion/1021404585/?value=1.00&amp;currency_code=USD&amp;label=8zXJCJucqFsQqcuF5wM&amp;guid=ON&amp;script=0"/>

 

Also, this is what I have before my /body

<!-- Google Code for Remarketing Tag -->
<!--------------------------------------------------
Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. See more information and instructions on how to setup the tag on: http://google.com/ads/remarketingsetup
--------------------------------------------------->
<script type="text/javascript">
var google_tag_params = {
ecomm_prodid: '{{ product.id }}',
ecomm_pagetype: '{{ template }}',
ecomm_totalvalue: '{{ product.price_min | money_without_currency }}',
};
</script>
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 1021404585;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/1021404585/?value=0&amp;guid=ON&amp;script=0"/>
</div>
</noscript>



Thank you

Re: Trouble with Conversion Codes in Shopify. I need help!

Top Contributor
# 9
Top Contributor

Hi @Jason G,

 

Yes, that can't be your code. That's why I suggested to change the label and currency. Smiley Happy

 

Your IMG code is -

<img style="border-style: none;" alt="" src="//www.googleadservices.com/pagead/conversion/1021404585/?value=1.00&amp;currency_code=USD&amp;label=8zXJCJucqFsQqcuF5wM&amp;guid=ON&amp;script=0" />

 

In that case, replace it with the following -

<img style="border-style: none;" alt="" src="//www.googleadservices.com/pagead/conversion/1021404585/?value={{ subtotal_price | money_without_currency }}&amp;currency_code=USD&amp;label=8zXJCJucqFsQqcuF5wM&amp;guid=ON&amp;script=0"/>

 

Thanks
Ratan Jha
Join me on Google+   |   Twitter

 

Re: Trouble with Conversion Codes in Shopify. I need help!

Top Contributor
# 10
Top Contributor

The second which you have shown near the body tag is Dynamic Remarketing tag. It's already setup nicely. Nothing to do. Simply update your conversion code as suggested to start tracking conversion values. 

 

Thanks
Ratan Jha
Join me on Google+   |   Twitter