diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index ca7f2578..324a89cb 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -31,6 +31,10 @@ const config: Config = { googleTagManager: { containerId: 'GTM-K554VSWG', }, + gtag: { + trackingID: 'G-GKVD8FM0B0', + anonymizeIP: true, + }, } satisfies Preset.Options, ], ], diff --git a/website/package-lock.json b/website/package-lock.json index 3076ba9d..03801aff 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -9,6 +9,7 @@ "version": "0.0.0", "dependencies": { "@docusaurus/core": "^3.1.1", + "@docusaurus/plugin-google-gtag": "^3.1.1", "@docusaurus/plugin-google-tag-manager": "^3.1.1", "@docusaurus/preset-classic": "^3.1.1", "@easyops-cn/docusaurus-search-local": "^0.40.1", diff --git a/website/package.json b/website/package.json index b9dd642b..e5604d12 100644 --- a/website/package.json +++ b/website/package.json @@ -20,6 +20,7 @@ }, "dependencies": { "@docusaurus/core": "^3.1.1", + "@docusaurus/plugin-google-gtag": "^3.1.1", "@docusaurus/plugin-google-tag-manager": "^3.1.1", "@docusaurus/preset-classic": "^3.1.1", "@easyops-cn/docusaurus-search-local": "^0.40.1",