Skip to content

Commit 6b04fb0

Browse files
committed
fix: use another GA account due to vuejs/vuepress#2169
1 parent d02de8f commit 6b04fb0

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

blog/.vuepress/config.js

+3-20
Original file line numberDiff line numberDiff line change
@@ -75,29 +75,12 @@ module.exports = {
7575
// options for markdown-it-toc
7676
toc: { includeLevel: [1, 2] },
7777
},
78-
head: [
78+
plugins: [
7979
[
80-
'script',
80+
'@vuepress/google-analytics',
8181
{
82-
async: true,
83-
src: 'https://www.googletagmanager.com/gtag/js?id=UA-124207676-2',
82+
'ga': 'UA-124207676-3'
8483
}
85-
],
86-
[
87-
'script',
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'});`
9384
]
9485
]
95-
// plugins: [
96-
// [
97-
// '@vuepress/google-analytics',
98-
// {
99-
// 'ga': 'UA-124207676-3'
100-
// }
101-
// ]
102-
// ]
10386
}

0 commit comments

Comments
 (0)