zl程序教程

您现在的位置是:首页 >  其他

当前栏目

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

2023-04-18 12:54:24 时间

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

<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 = http://cn.voidcc.com/question/“https://d31qbv1cthcecs.cloudfront.net/atrk.js“; 
    var s = document.getElementsByTagName(‘script’)[0]; 
    s.parentNode.insertBefore(as, s); 
} 
)(); 
 

Alireza Amrollahi

请注明。 –

回答

您可以编辑布局文件:

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

结束前加入您的Certify代码标签

<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 = http://cn.voidcc.com/question/“https://d31qbv1cthcecs.cloudfront.net/atrk.js“; 
    var s = document.getElementsByTagName(‘script’)[0]; 
    s.parentNode.insertBefore(as, s); 
} 
)(); 
 

honarkhah

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