From f4828705c976624e6667e1047d6f6690d936aac8 Mon Sep 17 00:00:00 2001 From: Niraj Tolia Date: Tue, 1 Nov 2022 11:40:28 -0700 Subject: [PATCH] Actually enable Google Analytics for Corso docs (#1409) ## Description We were missing the actual plugin and did not have configuration for the right plugin type. ## Type of change - [x] :bug: Bugfix - [x] :world_map: Documentation --- docs/docusaurus.config.js | 2 +- docs/package-lock.json | 1 + docs/package.json | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 8a4d973b0..54bb48421 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -50,7 +50,7 @@ const config = { 'https://github.com/alcionai/corso/tree/main/docs', }, blog: false, - googleAnalytics: { + gtag: { trackingID: 'G-4EXT1PY6KC', }, theme: { diff --git a/docs/package-lock.json b/docs/package-lock.json index c3462c862..914bcb177 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -9,6 +9,7 @@ "version": "0.1.0", "dependencies": { "@docusaurus/core": "2.2.0", + "@docusaurus/plugin-google-gtag": "^2.2.0", "@docusaurus/preset-classic": "2.2.0", "@mdx-js/react": "^2.1.5", "clsx": "^1.2.1", diff --git a/docs/package.json b/docs/package.json index db04d3326..06c24fe3f 100644 --- a/docs/package.json +++ b/docs/package.json @@ -15,6 +15,7 @@ }, "dependencies": { "@docusaurus/core": "2.2.0", + "@docusaurus/plugin-google-gtag": "^2.2.0", "@docusaurus/preset-classic": "2.2.0", "@mdx-js/react": "^2.1.5", "clsx": "^1.2.1",