diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index e6efef8fc77..293f7edd823 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -75,6 +75,10 @@ const config = { theme: { customCss: require.resolve("./src/css/custom.css"), }, + gtag: { + trackingID: "G-HP8ZXWVLJG", + anonymizeIP: true, + }, }), ], ], diff --git a/docs/package-lock.json b/docs/package-lock.json index 2b206fe5f7f..39e9999cb05 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -11,6 +11,7 @@ "@docusaurus/core": "^2.4.3", "@docusaurus/plugin-client-redirects": "^2.4.3", "@docusaurus/plugin-content-docs": "^2.4.3", + "@docusaurus/plugin-google-gtag": "^2.4.3", "@docusaurus/preset-classic": "^2.4.3", "@easyops-cn/docusaurus-search-local": "^0.36.0", "@mdx-js/react": "^1.6.22", diff --git a/docs/package.json b/docs/package.json index fda83c3b057..b16d6548405 100644 --- a/docs/package.json +++ b/docs/package.json @@ -18,6 +18,7 @@ "@docusaurus/core": "^2.4.3", "@docusaurus/plugin-client-redirects": "^2.4.3", "@docusaurus/plugin-content-docs": "^2.4.3", + "@docusaurus/plugin-google-gtag": "^2.4.3", "@docusaurus/preset-classic": "^2.4.3", "@easyops-cn/docusaurus-search-local": "^0.36.0", "@mdx-js/react": "^1.6.22",