Add Google Adwords Remarketing Code

Hi,
I need to add a script to the body code of every page. Where do I add this? I only saw sections in the head and footer for this code, but Google instructs users to add the code to the body. Thanks!

<script type="text/javascript">
var google_tag_params = {
ecomm_prodid: 'REPLACE_WITH_VALUE',
ecomm_pagetype: 'REPLACE_WITH_VALUE',
ecomm_totalvalue: 'REPLACE_WITH_VALUE',
};
</script>
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 000000000;
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/000000000/?guid=ON&script=0"/>
</div>
</noscript>
 

Igor

Administrator
Staff member
Hi,
I need to add a script to the body code of every page. Where do I add this? I only saw sections in the head and footer for this code, but Google instructs users to add the code to the body. Thanks!

<script type="text/javascript">
var google_tag_params = {
ecomm_prodid: 'REPLACE_WITH_VALUE',
ecomm_pagetype: 'REPLACE_WITH_VALUE',
ecomm_totalvalue: 'REPLACE_WITH_VALUE',
};
</script>
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 000000000;
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/000000000/?guid=ON&script=0"/>
</div>
</noscript>
Hello,

Thanks for contacting us!

You should add this code in Customization --> Head --> < head > tag container for head elements.

Best regards,
Igor
 
Hi Igor,
If I add this to the Head container, it will not work properly. I need to add it to the body tag of every page, mainly the product pages. Is this possible?

Thanks!
 

Igor

Administrator
Staff member
Hi Igor,
If I add this to the Head container, it will not work properly. I need to add it to the body tag of every page, mainly the product pages. Is this possible?

Thanks!
Hello,

It will be added to the body tag of every page, if you add the code to the Head container.

Best regards,
Igor
 
Hi Igor,
Its definitely not being identified as within the body tag. When I use the Google Tag Assistant, it says the code is not found within the body, so it is failing.

Are there other options? I noticed that there was a Google Remarketing section within the cart page. What should I put here?
 

Igor

Administrator
Staff member
Hi Igor,
Its definitely not being identified as within the body tag. When I use the Google Tag Assistant, it says the code is not found within the body, so it is failing.

Are there other options? I noticed that there was a Google Remarketing section within the cart page. What should I put here?
Hello,

I'm sorry I might have provided misleading information. This script should be added in the Footer tag container (Customization --> Footer), have you tried this?
 
Hi Brooklyn. Did you this figure this out? I need to put it on my site as well. It is a conversion tracker so I need to put it on the Thank You page, however, as you pointed out, we couldn't find the relevant coding.
 
Top