Skip to content

Commit f9e13f2

Browse files
authored
add google analytics (#31)
1 parent b43dce1 commit f9e13f2

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

docs/.vuepress/config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,12 @@ module.exports = config({
8181
editLinks: false,
8282
},
8383

84-
plugins: ['vuepress-plugin-child-toc'],
84+
plugins: [
85+
['vuepress-plugin-child-toc'],
86+
[
87+
'@vuepress/google-analytics',
88+
{
89+
'ga': 'G-WNRXJLK7SZ'
90+
}
91+
]]
8592
});

package-lock.json

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"eject-theme": "vuepress eject-hope docs"
1212
},
1313
"devDependencies": {
14+
"@vuepress/plugin-google-analytics": "^1.9.7",
1415
"vuepress": "^1.8.2",
1516
"vuepress-theme-hope": "^1.20.2"
1617
},

0 commit comments

Comments
 (0)