0
客戶要求我在點擊退出時向html5橫幅廣告添加Floodlight代碼。它很容易通過Javascript完成,但我擔心它可能在發佈時被阻止。我已經詢問過DoubleClick,他們建議應通過跟蹤工具添加Floodlight。我的發佈者並沒有提供線索,並要求我將其添加到JavaScript中。我可以從DoubleClick工作室的html5橫幅中激發Floodlight代碼嗎?
如果我添加下面的東西,它會在HTML5橫幅嗎?
<head>
<script type="text/javascript" id="DoubleClickFloodlightTag">
//<![CDATA[
function FLOOD1(type, cat, u1) {
var axel = Math.random()+"";
var a = axel * 10000000000000000;
var flDiv=document.body.appendChild(document.createElement("div"));
flDiv.setAttribute("id","DCLK_FLDiv1");
flDiv.style.position="absolute";
flDiv.style.top="0";
flDiv.style.left="0";
flDiv.style.width="1px";
flDiv.style.height="1px";
flDiv.style.display="none";
flDiv.innerHTML='<iframe id="DCLK_FLIframe1" src="http://12345678.fls.doubleclick.net/activityi;src=12345678;type=' + type + ';cat=' + cat + ';u1=' + u1 + ';ord=' + a + '?" width="1" height="1" frameborder="0"><\/iframe>';
}
//]]>
</script>
</head>
<body>
<!-- This is an example of a "onclick" call on a anchor tag -->
<a href="http://address_of_page_to_load_or_file_to_download" onclick="FLOOD1('testtype', 'testcat', 'testu1');" target="_blank">Click here to test the tag</a>
</body>