From 4d02650f99e4e3d1ba94e423175418322d29e636 Mon Sep 17 00:00:00 2001 From: Niraj Tolia Date: Fri, 23 Sep 2022 08:37:12 -0700 Subject: [PATCH] Add Google Analytics to webpages (#934) ## Description Add Google Analytics to docs and website This can only be tested in production for docs but it looks like the HTML does the right thing. ## Type of change - [x] :sunflower: Feature ## Test Plan - [x] :muscle: Manual --- docs/docusaurus.config.js | 3 +++ website/src/index.html | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 4e8b5557a..8a827d340 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -46,6 +46,9 @@ const config = { 'https://github.com/alcionai/corso/tree/main/docs', }, blog: false, + googleAnalytics: { + trackingID: 'G-4EXT1PY6KC', + }, theme: { customCss: require.resolve('./src/css/custom.scss'), }, diff --git a/website/src/index.html b/website/src/index.html index af7b07720..2d8155bad 100644 --- a/website/src/index.html +++ b/website/src/index.html @@ -8,7 +8,17 @@ @@include("partials/head-css.html") - + + + + + @@include("partials/body.html")