Skip to content

Commit 7046f9b

Browse files
committed
docs
1 parent 578fdf7 commit 7046f9b

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

docs/index.html

+14-6
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
<html lang="en">
33

44
<head>
5-
<meta charset="UTF-8">
6-
<title>Document</title>
7-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
8-
<meta name="description" content="Description">
9-
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
10-
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
115
<!-- Global site tag (gtag.js) - Google Analytics -->
126
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XF2VFJPE6C"></script>
137
<script>
@@ -17,6 +11,13 @@
1711

1812
gtag('config', 'G-XF2VFJPE6C');
1913
</script>
14+
<meta charset="UTF-8">
15+
<title>Document</title>
16+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
17+
<meta name="description" content="Description">
18+
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
19+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
20+
2021
</head>
2122

2223
<body>
@@ -38,6 +39,13 @@
3839
maxLevel: 4,
3940
subMaxLevel: 4
4041
}
42+
43+
window.$docsify.plugins = [].concat(function (hook) {
44+
hook.beforeEach(function collect() {
45+
gtag('set', 'page_path', location.hash);
46+
gtag('event', 'page_view');
47+
})
48+
}, $docsify.plugins)
4149
</script>
4250

4351
</body>

0 commit comments

Comments
 (0)