Hi all,
I've been asked to place some Google remarketing scripts on my company's website through our container script, and something's been bugging me about it. The script below (which I'm sure a lot of you have seen before) has a <noscript> component to it which I tend to strip out when implementing through our container script. I'd assumed that there was no scenario where the visitor would render the <noscript> since it was being placed on the page through javascript, and I'd assumed that the tracking image referenced in it wouldn't even be loaded.
Our Google contacts have requested the <noscript> is put back in, and while that's not a problem it *has* been niggling on me and my limited javascript knowledge as to why it would be needed.
I'm sure this is just a lack of knowledge in this area on my part, but I'd love if someone could explain to a layman!
I've been asked to place some Google remarketing scripts on my company's website through our container script, and something's been bugging me about it. The script below (which I'm sure a lot of you have seen before) has a <noscript> component to it which I tend to strip out when implementing through our container script. I'd assumed that there was no scenario where the visitor would render the <noscript> since it was being placed on the page through javascript, and I'd assumed that the tracking image referenced in it wouldn't even be loaded.
Our Google contacts have requested the <noscript> is put back in, and while that's not a problem it *has* been niggling on me and my limited javascript knowledge as to why it would be needed.
I'm sure this is just a lack of knowledge in this area on my part, but I'd love if someone could explain to a layman!
Code:
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = [NUMBERS];
var google_conversion_label = "[STUFF]";
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/[NUMBERS]/?value=0&label=[STUFF]&guid=ON&script=0"/>
</div>
</noscript>