There was an error while loading. Please reload this page.
1 parent e51bd3c commit d7eafeaCopy full SHA for d7eafea
docs/.vuepress/configs/head.js
@@ -86,5 +86,24 @@ module.exports = [
86
src: 'https://hm.baidu.com/hm.js?a809b6f7e6517af8c15c6076273e80fe',
87
defer: 'defer',
88
async: 'true'
89
- }]
+ }],
90
+ // 谷歌统计
91
+ ['script', {
92
+ src: 'https://www.googletagmanager.com/gtag/js?id=UA-163860037-1',
93
+ defer: 'defer',
94
+ async: 'true'
95
96
+ // 谷歌统计第二段代码
97
+ ['script', {}, `
98
+ (function() {
99
+ document.onreadystatechange = function() {
100
+ if (document.readyState == 'complete') {
101
+ window.dataLayer = window.dataLayer || [];
102
+ function gtag(){dataLayer.push(arguments);}
103
+ gtag('js', new Date());
104
+ gtag('config', 'UA-163860037-1');
105
+ }
106
107
+ })();
108
+`]
109
]
0 commit comments