删除统计代码

This commit is contained in:
そら 2022-05-01 08:36:53 +08:00 committed by GitHub
parent 553d734635
commit 650e9a2301
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 22 deletions

View File

@ -6,7 +6,7 @@ require_once __DIR__ . '/Access_Bootstrap.php';
* @package Access
* @author Kokororin
* @version 2.0.2
* @link https://kotori.love
* @link https://github.com/kokororin/typecho-plugin-Access
*/
class Access_Plugin implements Typecho_Plugin_Interface
{
@ -75,15 +75,9 @@ class Access_Plugin implements Typecho_Plugin_Interface
'0' => '后端',
'1' => '前端',
), '0', '日志写入类型:', '请选择日志写入类型,如果写入速度较慢可选择前端写入日志。<br/>如果您使用了pjax请在pjax相关事件中调用 window.Access.track() 方法。');
$canAnalytize = new Typecho_Widget_Helper_Form_Element_Radio(
'canAnalytize', array(
'0' => '不允许',
'1' => '允许',
), '1', '允许统计使用情况:', '请选择是否允许插件作者统计使用情况');
$form->addInput($pageSize);
$form->addInput($isDrop);
$form->addInput($writeType);
$form->addInput($canAnalytize);
}
/**

View File

@ -417,21 +417,6 @@ $(document).ready(function() {
</script>
<?php endif;?>
<?php if ($access->config->canAnalytize == 1):?>
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//analytics.kotori.love/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '3lMvrB']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="//analytics.kotori.love/piwik.php?idsite=3lMvrB" style="border:0;" alt="" /></p></noscript>
<?php endif;?>
<?php
include 'footer.php';
?>