如何在piwik中实现alexa certify脚本?

时间:2017-09-30 08:12:39

标签: php alexa

如何在piwik子域中实现alexa脚本? 这是代码:

<ListView BackgroundColor="Transparent">

1 个答案:

答案 0 :(得分:1)

您可以编辑布局文件:

  

插件/睡眠/模板/ layout.twig

head 标记

结束之前添加您的认证代码
<script type=“text/javascript”>
_atrk_opts = { 
   atrk_acct:“KeWOp1P8cT20VRss”, domain:“example.com”,dynamic: true};
 (
 function() { 
  var as = document.createElement(‘script’); as.type = ‘text/javascript’; 
  as.async = true; 
  as.src = “https://d31qbv1cthcecs.cloudfront.net/atrk.js“; 
  var s = document.getElementsByTagName(‘script’)[0];
  s.parentNode.insertBefore(as, s); 
}
  )();
</script>
<noscript>
  <img src=“https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=KeWOp1P8cT20VR” style=“display:none” height=“1” width=“1" alt=“” /> 
</noscript>
</head>