Inherited site - script in footer?

131 views
Skip to first unread message

WP Monkey

unread,
Mar 17, 2016, 9:19:27 AM3/17/16
to AdWords Scripts Forum
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&amp;guid=ON&amp;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&amp;label=BUd1CL3RsQQQrZzA_wM&amp;guid=ON&amp;script=0&amp;ctc_id=CAIVAgAAAB0CAAAA&amp;ct_cookie_present=false&amp;random=1303126438&amp;cdct=2&amp;convclickts=0&amp;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???).

Tyler Sidell (AdWords Scripts Team)

unread,
Mar 17, 2016, 10:27:48 AM3/17/16
to AdWords Scripts Forum
Hi,

Thanks for reaching out but this would be more of an AdWords product question than AdWords Scripts.  I would suggest reaching out to AdWords Product support for more information.

Regards,
Tyler Sidell
AdWords Scripts Team
Reply all
Reply to author
Forward
0 new messages