Skip to content

Commit

Permalink
feat: replace google analytics with umami
Browse files Browse the repository at this point in the history
  • Loading branch information
RealHeart committed Feb 26, 2024
1 parent 9f24cdc commit f0ac450
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
9 changes: 2 additions & 7 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { defineUserConfig } from 'vuepress'
import { googleAnalyticsPlugin } from '@vuepress/plugin-google-analytics'
import theme from './config/theme'
import viteBundler from '@vuepress/bundler-vite'

Expand All @@ -14,6 +13,7 @@ export default defineUserConfig({
content: 'width=device-width,initial-scale=1,user-scalable=no'
}
],
['script', { async: true, src: 'https://umami.zhenxin.me/script.js', 'data-website-id': 'a799e189-cf7e-4f5a-ac98-71de364f3637' }],
['script', { src: 'https://cdn.zhenxin.xyz/static/js/autoGray.js' }]
],
locales: {
Expand All @@ -26,10 +26,5 @@ export default defineUserConfig({
lang: 'en-US'
}
},
theme,
plugins: [
googleAnalyticsPlugin({
id: 'G-MWKT4QD2W0'
})
]
theme
})
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"preview": "serve docs/.vuepress/dist"
},
"devDependencies": {
"@vuepress/plugin-google-analytics": "2.0.0-rc.12",
"prettier": "^3.2.5",
"serve": "^14.2.1",
"vue": "^3.4.18",
Expand Down
11 changes: 0 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f0ac450

Please sign in to comment.