Skip to content

Commit d8991bb

Browse files
committed
add google analytics
1 parent ec0cac4 commit d8991bb

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

Diff for: .vuepress/config.js

+8
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ module.exports = {
1212
['meta', { name: 'msapplication-TileColor', content: '#000000' }],
1313
['meta', { name: 'google-site-verification', content: 'MhRI5GLxQJ9Oirgo_krVXPsVNaJ-2qqGTRuMkLjherw' }]
1414
],
15+
plugins: [
16+
[
17+
'@vuepress/google-analytics',
18+
{
19+
'ga': 'UA-143051534-1'
20+
}
21+
]
22+
],
1523
themeConfig: {
1624
repo: 'vuefront/vuefront',
1725
editLinks: true,

Diff for: package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
"webpack-dev-middleware": "3.6.0"
1313
},
1414
"dependencies": {
15+
"@vuepress/plugin-google-analytics": "^1.0.2",
1516
"vuepress": "^0.14.11",
1617
"webpack-dev-middleware": "3.6.0",
1718
"webpack-dev-server": "^3.3.1"
1819
},
1920
"devDependencies": {
2021
"vuepress": "^0.14.11"
2122
}
22-
}
23+
}

Diff for: yarn.lock

+5
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,11 @@
783783
source-map "~0.6.1"
784784
vue-template-es2015-compiler "^1.9.0"
785785

786+
"@vuepress/plugin-google-analytics@^1.0.2":
787+
version "1.0.2"
788+
resolved "https://registry.yarnpkg.com/@vuepress/plugin-google-analytics/-/plugin-google-analytics-1.0.2.tgz#c5754d55d01bf7e1a9a5b1ff5fde07a08e4a797d"
789+
integrity sha512-NdU18hTBW4TkNK80dgpPu4yq/smNkIUZi9gL5hCiuW43BnXFA7WFfhGcvZJ61+keNDr6gw9UIv4HQuFFPoRXQA==
790+
786791
"@webassemblyjs/[email protected]":
787792
version "1.8.5"
788793
resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.8.5.tgz#51b1c5fe6576a34953bf4b253df9f0d490d9e359"

0 commit comments

Comments
 (0)