Skip to content

Commit 99cf40e

Browse files
committed
docs: add google analytics
1 parent dc4903e commit 99cf40e

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

docs/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@
1616
},
1717
"license": "MIT",
1818
"devDependencies": {
19+
"@vuepress/plugin-google-analytics": "^2.0.0-beta.49",
1920
"@vuepress/plugin-register-components": "^2.0.0-beta.49",
2021
"vuepress": "^2.0.0-beta.49"
2122
},
2223
"dependencies": {
2324
"@vue-js-cron/core": "^3.0.0",
25+
"@vue-js-cron/element-plus": "^1.0.0",
2426
"@vue-js-cron/light": "^2.0.0",
2527
"@vue-js-cron/vuetify": "^3.0.0",
26-
"@vue-js-cron/element-plus": "^1.0.0",
2728
"vuetify": "^3.0.0-beta.7"
2829
}
2930
}

docs/src/.vuepress/config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const { defaultTheme } = require('@vuepress/theme-default')
33
const { registerComponentsPlugin } = require('@vuepress/plugin-register-components')
44
const { path } = require('@vuepress/utils')
55
const { viteBundler } = require('@vuepress/bundler-vite')
6+
const { googleAnalyticsPlugin } = require('@vuepress/plugin-google-analytics')
67

78
module.exports = {
89

@@ -116,8 +117,9 @@ module.exports = {
116117
plugins: [
117118
registerComponentsPlugin({
118119
componentsDir: path.resolve(__dirname, './components')
120+
}),
121+
googleAnalyticsPlugin({
122+
id: 'G-8E2WXHH0QS'
119123
})
120-
// '@vuepress/plugin-back-to-top',
121-
// '@vuepress/plugin-medium-zoom'
122124
]
123125
}

yarn.lock

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2796,6 +2796,15 @@
27962796
"@vuepress/utils" "2.0.0-beta.49"
27972797
execa "^5.1.1"
27982798

2799+
"@vuepress/plugin-google-analytics@^2.0.0-beta.49":
2800+
version "2.0.0-beta.49"
2801+
resolved "https://registry.yarnpkg.com/@vuepress/plugin-google-analytics/-/plugin-google-analytics-2.0.0-beta.49.tgz#dc2df23b8a0aa79df18345fc9fe4bf72f34efe1d"
2802+
integrity sha512-c9CcGl0wXw9AxhXPoG3x92OqaPcAvlD1HePEoZlJCzTh/CIkC4dyQT7DtgeJi9EPt09Oy4Btjm/rXVi/Y6TVwA==
2803+
dependencies:
2804+
"@vuepress/client" "2.0.0-beta.49"
2805+
"@vuepress/core" "2.0.0-beta.49"
2806+
"@vuepress/utils" "2.0.0-beta.49"
2807+
27992808
"@vuepress/plugin-medium-zoom@2.0.0-beta.49":
28002809
version "2.0.0-beta.49"
28012810
resolved "https://registry.yarnpkg.com/@vuepress/plugin-medium-zoom/-/plugin-medium-zoom-2.0.0-beta.49.tgz#d4615e894ad5a8f1be367cd364a25a6885abb205"

0 commit comments

Comments
 (0)