I inherited a site from a web developer who is no longer in contact with the owner of the company. Poking around the site, I found the following script (with ID removed) inserted into a field that would place it in the footer of every page.
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = ##########;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
</script>
<script async 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/#######/?value=0&guid=ON&script=0"/>
</div>
</noscript>
<script>(function(w,d,t,r,u){var f,n,i;w[u]=w[u]||[],f=function(){var o={ti:"5035706"};o.q=w[u],w[u]=new UET(o),w[u].push("pageLoad")},n=d.createElement(t),n.src=r,n.async=1,n.onload=n.onreadystatechange=function(){var s=this.readyState;s&&s!=="loaded"&&s!=="complete"||(f(),n.onload=n.onreadystatechange=null)},i=d.getElementsByTagName(t)[0],i.parentNode.insertBefore(n,i)})(window,document,"script","//bat.bing.com/bat.js","uetq");</script><noscript><img src="//bat.bing.com/action/0?ti=5035706&Ver=2" height="0" width="0" style="display:none; visibility: hidden;" /></noscript>
To me it looks like a conversion tracking code, but I didn't know if that should only be on the conversion page. Or should it, like the Google Analytics tracking code, be on every page? And is the footer the correct location? It's not on the new live site, so I need to know if I should add it.
I found this code in the conversion page (which is still there)
var google_conversion_id = ########; var google_conversion_language = "en"; var google_conversion_format = "3"; var google_conversion_color = "ffffff"; var google_conversion_label = "BUd1CL3RsQQQrZzA_wM"; var google_conversion_value = 0;
// ]]></script>
<script src="http://www.googleadservices.com/pagead/conversion.js" type="text/javascript">// <![CDATA[
// ]]></script>
<noscript>
<div style="display:inline;"> <img height="1" width="1" style="border-style:none;" alt="" src="http://www.google.com/ads/conversion/###########/?value=0&label=BUd1CL3RsQQQrZzA_wM&guid=ON&script=0&ctc_id=CAIVAgAAAB0CAAAA&ct_cookie_present=false&random=1303126438&cdct=2&convclickts=0&random=1069423596"/></div>
</noscript>
Any help figuring this out would be greatly appreciated (plus the conversions have been about 50% since the rollout of the site last week, so if this could be the result and ads aren't being sent to where they are supposed to on the site???).