AdWords
2.5K members online now
2.5K 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

Adwords conversion & Remarketing errors

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi All,

 

I came across 2 errors in my client's website. It is regarding the Adwords conversion code. Since I am new to the Adwords I would like to get your help to solve these errors. I looked up for various sources online but I couldn't find a good solution so I ended up here:

 

The client has added a Remarketing tag for their adwords. This is what we get when we looked up their thank you page in Tag Assistant:

 

1. Adwords conversion tracking

Errors:

Code found outside of <body> tag.
Conversion Value should be prefixed with standard currency.

 

2. Remarketing Tag

Error: An error occured while the tag was fired: net::ERR_ABORTED

But I see that the client has added the code inside the </body> tag.

 

Can someone help me find a solution for these errors?

Thanks in advance

2 Expert replyverified_user

Re: Adwords conversion & Remarketing errors

Participant ✭ ✭ ✭
# 2
Participant ✭ ✭ ✭
Hi Ramya,

Firstly the client has switched the placement of the 2 tags. The conversion tag should be between the <body> and </body> tags and the remarketing codeshould be outside the body tags.

With the conversion code, those errors are not too serious, just move the code to between the body tags and you should be fine. If you wish to get rid of the other error then just make sure that the following line has a currency code:

var google_conversion_currency = "XXX";

With regards to the remarketing code that looks like more than simply a misplacement of the code. Would you be able to provide a URL of where the code is so that it can be looked at?

Re: Adwords conversion & Remarketing errors

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Hi Clynton,

Thank you for the answer. I ll try making the correction you just said above. I could not share the URL since it belongs to my client but I can share the conversion code they have added on their thank you cart page. Please do have a look:

<!-- Google Code for Lead-Generation Conversion Page starts -->
&lt;script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 1007119235;
var google_conversion_language = "en";
var google_conversion_format = "2";
var google_conversion_color = "ffffff";
var google_conversion_label = "OFljCJ2YgwYQg9ed4AM";
var google_conversion_value = 1.00;
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/1007119235/?value=1.00&amp;label=OFljCJ2YgwYQg9ed4AM&amp;...
</div>
</noscript&gt;


&lt;script type="text/javascript"> if (!window.mstag) mstag = {loadTag : function(){},time : (new Date()).getTime()};&lt;/script&gt; &lt;script id="mstag_tops" type="text/javascript" src="//flex.msn.com/mstag/site/436a3395-d02a-44d6-86f1-c814c05fef6e/mstag.js">&lt;/script&gt; &lt;script type="text/javascript"> mstag.loadTag("analytics", {dedup:"1",domainId:"2855525",type:"1",actionid:"225150"})&lt;/script&gt; <noscript&gt; <iframe src="//flex.msn.com/mstag/tag/436a3395-d02a-44d6-86f1-c814c05fef6e/analytics.html?dedup=1&domainId=2855525&type=1&actionid=225150" frameborder="0" scrolling="no" width="1" height="1" style="visibility:hidden;display:none"> </iframe> </noscript&gt;
<!-- Google Code for Lead-Generation Conversion Page ends -->

Also, you said me to add the conversion currency here:

var google_conversion_value = 1.00

Since it becomes a string should I add a quote before and after that ("") ? Please do let me know.

Thanks

Re: Adwords conversion & Remarketing errors

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭
Hi Clynton,

I moved the remarketing code below the body tag but still the following errors shows up:

1. Adwords conversion tracking
Errors:
Code found outside of <body> tag.
Conversion Value should be prefixed with standard currency.

2. Remarketing Tag
No HTTP response detected

Can you please let me know what am I doing wrong?

Thanks

Re: Adwords conversion & Remarketing errors

Participant ✭ ✭ ✭
# 5
Participant ✭ ✭ ✭
Hi Ramya,

With regards to the conversion tracking code, it just needs to be put inside the body tags to get rid of error one.
Error 2 is just talking about a conversion currency. your code is missing the following line:
var google_conversion_currency = "XXX";

this line is found here:
var google_conversion_label = "OFljCJ2YgwYQg9ed4AM";
var google_conversion_value = 1.00;
<-------------------
var google_remarketing_only = false;


It is not necessary, so you do not have to worry about it too much.

With regards to the remarketing code, as I stated in my first reply this is more than just a misplacement of the code. I believe there is an error in your code that is prevent the tag from firing. I see you have pasted the conversion code, would you be able to do the same with the remarketing code that you are currently using? it should look like this:

<!-- 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
----------------------------------------------------------->
&lt;script type="text/javascript">
var google_tag_params = {
ecomm_prodid: 'REPLACE_WITH_VALUE',
ecomm_pagetype: 'REPLACE_WITH_VALUE',
ecomm_totalvalue: 'REPLACE_WITH_VALUE'
};
&lt;/script&gt;
&lt;script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 0000000000;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
&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="//googleads.g.doubleclick.net/pagead/viewthroughconversion/000000000/?value=0&amp;guid=ON&amp;script=0"/>
</div>
</noscript&gt;


I would suggest comparing the 2, if yours differs at all then you need to go to your AdWords account and recopy the remarketing tag and add the correct version to the webpages.

Regards

Re: Adwords conversion & Remarketing errors

Visitor ✭ ✭ ✭
# 6
Visitor ✭ ✭ ✭
Hi Clynton,

Thank you for the response. I will look into the solution you have suggested here.

This is the Remarketing code that they have on the website:

<!-- Google Code for Remarketing tag -->
<!-- Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. For instructions on adding this tag and more information on the above requirements, read the setup guide: google.com/ads/remarketingsetup -->
&lt;script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 1007119235;
var google_conversion_label = "hww7CPXFtwgQg9ed4AM";
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
&lt;/script&gt;

Thanks

Re: Adwords conversion & Remarketing errors

Participant ✭ ✭ ✭
# 7
Participant ✭ ✭ ✭
Hi Ramya,

The remarketing code has not been copied correctly. I suggest going to your adwords account, going to shared libraries> audiences > view tag details. Recopy the remarketing code given to you there and then applying that to your web pages.

It looks like you are missing the following:
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/000000000/?value=0&amp;guid=ON&amp;script=0"/>
</div>
</noscript&gt;

furthermore not sure why this line is included (although it may be fine, not sure myself):
var google_conversion_label = "hww7CPXFtwgQg9ed4AM";

Let me know if that sorts out the problems.

Re: Adwords conversion & Remarketing errors

Visitor ✭ ✭ ✭
# 8
Visitor ✭ ✭ ✭
Hi Clynton,

Thanks a ton! I cleared up the #1 errors. They had added the Adwords conversion code inside the head tag. Also, I added the line you suggested above:

var google_conversion_currency = "XXX";

and it cleared up that error/warning.

The only item pending now is the "No HTTP response detected" in the Remarketing code. I dont have the client's Adwords account. I will request the code to make sure they have set this up correctly.

I have made a note of these errors and I am sure these solutions will hele me going forward. Thanks again for your timely help Smiley Happy

Re: Adwords conversion & Remarketing errors

Participant ✭ ✭ ✭
# 9
Participant ✭ ✭ ✭
Glad I could be of assistance!

Good Luck

Re: Adwords conversion & Remarketing errors

Visitor ✭ ✭ ✭
# 10
Visitor ✭ ✭ ✭
Hi Clynton,

Sorry to bother you again!

I am getting this new error again when I check in the Google Tag Assistant. Before posting this here I made sure the Remarketing code is set up properly. Previously you suggested that I missed some lines of code in the website.. Yeah! it was true we wrote back to client got the correct code and updated it on the website.

But I get a new error like this on the Tag Assistant. This is the error:

An error occured while the tag was fired: net::ERR_ABORTED

Please do let me know if you have any idea what might the error be. I am also looking up on other forums to get a solution for this.

Thanks.