We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e42dbc commit d02de8fCopy full SHA for d02de8f
blog/.vuepress/config.js
@@ -75,12 +75,29 @@ module.exports = {
75
// options for markdown-it-toc
76
toc: { includeLevel: [1, 2] },
77
},
78
- plugins: [
+ head: [
79
[
80
- '@vuepress/google-analytics',
+ 'script',
81
{
82
- 'ga': 'UA-124207676-2'
+ async: true,
83
+ src: 'https://www.googletagmanager.com/gtag/js?id=UA-124207676-2',
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