diff --git a/docusaurus.config.js b/docusaurus.config.js index 8b39434a..e054168c 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -177,7 +177,7 @@ module.exports = { // Please do not remove the credits, help to publicize Docusaurus :) copyright: `Copyright © ${new Date().getFullYear()} allegro.ai. Built with Docusaurus.`, }, - googleAnalytics: { + gtag: { trackingID: 'none', // Optional fields. anonymizeIP: true, // Should IPs be anonymized? diff --git a/package.json b/package.json index 42a05f76..71feddd4 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "@docusaurus/core": "^2.0.0-beta.0", "@docusaurus/plugin-content-blog": "^2.0.0-beta.0", "@docusaurus/plugin-google-analytics": "^2.0.0-beta.0", + "@docusaurus/plugin-google-gtag": "^2.0.0-beta.0", "@docusaurus/preset-classic": "2.0.0-beta.0", "@easyops-cn/docusaurus-search-local": "^0.16.3", "@mdx-js/react": "^1.6.21",