百度统计修改
This commit is contained in:
parent
9b5e8295ef
commit
2b404bf550
|
@ -43,8 +43,8 @@ meting:
|
|||
# 百度统计
|
||||
# 使用博客模板请去掉或者更换 id
|
||||
baidu:
|
||||
id: 78dabddbcdea439ca4959d5e2057b184
|
||||
|
||||
id: 47d66309bf31e5e22c53872829a68d1e
|
||||
|
||||
# Google Analytics
|
||||
# 使用博客模板请去掉或者更换 id
|
||||
#ga:
|
||||
|
|
|
@ -43,18 +43,14 @@
|
|||
<!-- 百度统计 -->
|
||||
{% if site.baidu.id %}
|
||||
<script>
|
||||
var _hmt = _hmt || [];
|
||||
(function() {
|
||||
var hm = document.createElement("script");
|
||||
hm.src = "//hm.baidu.com/hm.js?{{site.baidu.id}}";
|
||||
hm.onload = function() {
|
||||
// 清除百度统计的加载标识
|
||||
delete window["_bdhm_loaded_{{site.baidu.id}}"];
|
||||
};
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
</script>
|
||||
var _hmt = _hmt || [];
|
||||
(function() {
|
||||
var hm = document.createElement("script");
|
||||
hm.src = "https://hm.baidu.com/hm.js?{{site.baidu.id}}";
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
<!-- google 统计 -->
|
||||
|
|
Loading…
Reference in New Issue