dever 3 years ago
parent
commit
1a8f1f9b21
1 changed files with 11 additions and 1 deletions
  1. 11 1
      main/template/pc/inc/head.php

+ 11 - 1
main/template/pc/inc/head.php

@@ -45,4 +45,14 @@ $view
     'nav a@href|4' => '$v.contact_link',
 ))
 
-->append('head',    '<script><{Dever::script()}></script>');
+->append('head',    '<script><{Dever::script()}></script>');
+->append('html',    '<script>
+var _hmt = _hmt || [];
+(function() {
+  var hm = document.createElement("script");
+  hm.src = "https://hm.baidu.com/hm.js?4f5a8be51cf141219d4f6eb2c1efef73";
+  var s = document.getElementsByTagName("script")[0]; 
+  s.parentNode.insertBefore(hm, s);
+})();
+</script>
+');