Skip to content

Commit a93e921

Browse files
committed
docs: setup Google Analytics
1 parent 6a36561 commit a93e921

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-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.

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

@@ -73,6 +74,7 @@ export default defineConfig({
7374
},
7475
],
7576
},
77+
builderPlugins: [pluginGoogleAnalytics({ id: 'G-Q66CEHQ6JR' })],
7678
builderConfig: {
7779
dev: {
7880
lazyCompilation: true,

0 commit comments

Comments
 (0)