diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 937406ea3f..30a62bdbad 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -22,6 +22,10 @@ const config = { '@docusaurus/preset-classic', /** @type {import('@docusaurus/preset-classic').Options} */ ({ + gtag: { + trackingID: 'G-2Z5WTH61Y3', + anonymizeIP: true, + }, blog: { path: 'blog', // Simple use-case: string editUrl diff --git a/website/package.json b/website/package.json index 1745a1c8b5..f11933216e 100644 --- a/website/package.json +++ b/website/package.json @@ -16,6 +16,7 @@ }, "dependencies": { "@docusaurus/core": "^2.3.1", + "@docusaurus/plugin-google-gtag": "^3.6.0", "@docusaurus/preset-classic": "^2.3.1", "@docusaurus/remark-plugin-npm2yarn": "^2.3.1", "@docusaurus/theme-search-algolia": "^2.3.1",