|
|
@@ -9,26 +9,33 @@
|
|
|
<script>
|
|
|
var _hmt = _hmt || [];
|
|
|
(function () {
|
|
|
- var hm = document.createElement('script');
|
|
|
- hm.src = '//hm.baidu.com/hm.js?c92adf6182a39eb23c24cf43abc3f439';
|
|
|
- var s = document.getElementsByTagName('script')[ 0 ];
|
|
|
- s.parentNode.insertBefore(hm, s);
|
|
|
- console.log('百度统计应用到页面当中了');
|
|
|
+ var markIsApp = document.getElementById("markIsAppWebview")
|
|
|
+ var isApp = Boolean(markIsApp && markIsApp.dataset && markIsApp.dataset.app)
|
|
|
+ if (!isApp) {
|
|
|
+ var hm = document.createElement('script');
|
|
|
+ hm.src = '//hm.baidu.com/hm.js?c92adf6182a39eb23c24cf43abc3f439';
|
|
|
+ var s = document.getElementsByTagName('script')[ 0 ];
|
|
|
+ s.parentNode.insertBefore(hm, s);
|
|
|
+ console.log('百度统计应用到页面当中了');
|
|
|
+
|
|
|
+
|
|
|
+ var bp = document.createElement('script');
|
|
|
+ var curProtocol = window.location.protocol.split(':')[ 0 ];
|
|
|
+ if (curProtocol === 'https') {
|
|
|
+ bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
|
|
|
+ } else {
|
|
|
+ bp.src = 'http://push.zhanzhang.baidu.com/push.js';
|
|
|
+ }
|
|
|
+ var s = document.getElementsByTagName("script")[ 0 ];
|
|
|
+ s.parentNode.insertBefore(bp, s);
|
|
|
+ console.log('百度SEO push统计应用到页面当中了');
|
|
|
+ }
|
|
|
})();
|
|
|
</script>
|
|
|
|
|
|
<script>
|
|
|
(function () {
|
|
|
- var bp = document.createElement('script');
|
|
|
- var curProtocol = window.location.protocol.split(':')[ 0 ];
|
|
|
- if (curProtocol === 'https') {
|
|
|
- bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
|
|
|
- }
|
|
|
- else {
|
|
|
- bp.src = 'http://push.zhanzhang.baidu.com/push.js';
|
|
|
- }
|
|
|
- var s = document.getElementsByTagName("script")[ 0 ];
|
|
|
- s.parentNode.insertBefore(bp, s);
|
|
|
+
|
|
|
})();
|
|
|
</script>
|
|
|
|