vuepress-2-google-analytics | vuepress-memo
vueress memo
VuePress2 google-analytics
bash
yarn add -D @vuepress/plugin-google-analytics@next
config.js
js
import { googleAnalyticsPlugin } from '@vuepress/plugin-google-analytics'
export default defineUserConfig({
plugins: [
googleAnalyticsPlugin({
id: 'G-XXXXXXXXXX',
}),
],
})