We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d02de8f commit 6b04fb0Copy full SHA for 6b04fb0
blog/.vuepress/config.js
@@ -75,29 +75,12 @@ module.exports = {
75
// options for markdown-it-toc
76
toc: { includeLevel: [1, 2] },
77
},
78
- head: [
+ plugins: [
79
[
80
- 'script',
+ '@vuepress/google-analytics',
81
{
82
- async: true,
83
- src: 'https://www.googletagmanager.com/gtag/js?id=UA-124207676-2',
+ 'ga': 'UA-124207676-3'
84
}
85
- ],
86
- [
87
88
- {},
89
- `window.dataLayer = window.dataLayer || [];
90
- function gtag(){dataLayer.push(arguments);}
91
- gtag('js', new Date());
92
- gtag('config', 'UA-124207676-2', {'page_path': '/blog'});`
93
]
94
95
- // plugins: [
96
- // [
97
- // '@vuepress/google-analytics',
98
- // {
99
- // 'ga': 'UA-124207676-3'
100
- // }
101
- // ]
102
103
0 commit comments