File tree Expand file tree Collapse file tree 3 files changed +788
-20
lines changed Expand file tree Collapse file tree 3 files changed +788
-20
lines changed Original file line number Diff line number Diff line change 1
1
import fs from 'fs'
2
2
import path from 'path'
3
3
import { defineConfigWithTheme } from 'vitepress'
4
+ import { googleAnalyticsPlugin } from '@vuepress/plugin-google-analytics'
4
5
import type { Config as ThemeConfig } from '@vue/theme'
5
6
import baseConfig from '@vue/theme/config'
6
7
import { headerPlugin } from './headerMdPlugin'
@@ -199,10 +200,10 @@ export default defineConfigWithTheme<ThemeConfig>({
199
200
}
200
201
} ,
201
202
202
- carbonAds : {
203
- code : 'CEBDT27Y' ,
204
- placement : 'vuejsorg'
205
- } ,
203
+ // carbonAds: {
204
+ // code: 'CEBDT27Y',
205
+ // placement: 'vuejsorg'
206
+ // },
206
207
207
208
socialLinks : [
208
209
// { icon: 'languages', link: '/translations/' },
@@ -259,5 +260,11 @@ export default defineConfigWithTheme<ThemeConfig>({
259
260
260
261
vue : {
261
262
reactivityTransform : true
262
- }
263
+ } ,
264
+
265
+ plugins : [
266
+ googleAnalyticsPlugin ( {
267
+ id : 'G-GPRCVYSQSG' ,
268
+ } ) ,
269
+ ] ,
263
270
} )
Original file line number Diff line number Diff line change 19
19
},
20
20
"devDependencies" : {
21
21
"@types/markdown-it" : " ^12.2.3" ,
22
- "@types/node" : " ^16.9.1"
22
+ "@types/node" : " ^16.9.1" ,
23
+ "@vuepress/plugin-google-analytics" : " 2.0.0-beta.49"
23
24
},
24
25
"pnpm" : {
25
26
"peerDependencyRules" : {
You can’t perform that action at this time.
0 commit comments