From 31b3b52cac4707e7ab0a2f114a8b2b879a5486cc Mon Sep 17 00:00:00 2001 From: allegroai Date: Sun, 6 Jun 2021 23:56:49 +0300 Subject: [PATCH] Add gtag --- docusaurus.config.js | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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",