我的任务是向我们网站上的许多页面添加一些“ Doubleclick Spotlight ”标签,以帮助为即将到来的广告系列收集数据。
我们的网站每月有大约 100 万独立访问者,所以我总是对将其他人的代码添加到我们的存储库中保持谨慎。
这是代码的样子(并且打算放在我们的 body 标签内)。
<script type="text/javascript">
var axel = Math.random() + "";
var a = axel * 10000000000000;
document.write('<img src="http://ad.doubleclick.net/activity;src=99999;type=foo315;cat=bar561;ord=' + a + '?" width="1" height="1" alt=""/>');
</script>
<noscript>
<img src="http://ad.doubleclick.net/activity;src=99999;type=foo315;cat=bar561;ord=1?" width="1" height="1" alt="">
</noscript>
我的问题是:这会带来风险吗?它会阻止页面加载或产生其他不利影响吗?我想不出任何明显的东西,但会喜欢你的见解、经验或想法。
谢谢