Skip to content

Commit 076658d

Browse files
authored
docs: setup Google Analytics (#252)
1 parent 6a36561 commit 076658d

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

pnpm-lock.yaml

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/dictionary.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ brotli
88
browserslistrc
99
bundleless
1010
caniuse
11+
CEHQ
1112
chunkhash
1213
Chunktmp
1314
cjsx

website/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"@types/react-dom": "^18.3.0",
1818
"react": "^18.3.1",
1919
"react-dom": "^18.3.1",
20+
"rsbuild-plugin-google-analytics": "1.0.3",
2021
"rspress": "1.31.1",
2122
"rspress-plugin-font-open-sans": "1.0.0"
2223
}

website/rspress.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import path from 'node:path';
2+
import { pluginGoogleAnalytics } from 'rsbuild-plugin-google-analytics';
23
import { pluginFontOpenSans } from 'rspress-plugin-font-open-sans';
34
import { defineConfig } from 'rspress/config';
45

@@ -84,5 +85,6 @@ export default defineConfig({
8485
'@zh': path.join(__dirname, 'docs/zh'),
8586
},
8687
},
88+
plugins: [pluginGoogleAnalytics({ id: 'G-Q66CEHQ6JR' })],
8789
},
8890
});

0 commit comments

Comments
 (0)