From c83daa93fade53bbcc1a857ba9bc5b12c36158be Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 7 Jun 2022 16:32:37 -0700 Subject: [PATCH] Fix Gtag --- docusaurus.config.js | 12 +++++++----- package.json | 1 + yarn.lock | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 5a11cb09578..0929d2e9ad9 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -57,6 +57,13 @@ const config = { routeBasePath: 'subspacejs', sidebarPath: require.resolve('./sidebars.js'), } + ], + [ + '@docusaurus/plugin-google-gtag', + { + trackingID: 'G-25NWNJB9MR', + anonymizeIP: false, + } ] ], @@ -81,11 +88,6 @@ const config = { changefreq: 'weekly', priority: 0.5, }, - googleAnalytics: { - trackingID: 'G-25NWNJB9MR', - anonymizeIP: false, - - } }), ], ], diff --git a/package.json b/package.json index 5fff6b2d45b..b380cc72cf0 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ }, "dependencies": { "@docusaurus/core": "^2.0.0-beta.21", + "@docusaurus/plugin-google-gtag": "^2.0.0-beta.21", "@docusaurus/plugin-sitemap": "^2.0.0-beta.21", "@docusaurus/preset-classic": "^2.0.0-beta.21", "@mdx-js/react": "^1.6.21", diff --git a/yarn.lock b/yarn.lock index 3ac61287c9a..db2dac29083 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1388,7 +1388,7 @@ "@docusaurus/utils-validation" "2.0.0-beta.21" tslib "^2.4.0" -"@docusaurus/plugin-google-gtag@2.0.0-beta.21": +"@docusaurus/plugin-google-gtag@2.0.0-beta.21", "@docusaurus/plugin-google-gtag@^2.0.0-beta.21": version "2.0.0-beta.21" resolved "https://registry.yarnpkg.com/@docusaurus/plugin-google-gtag/-/plugin-google-gtag-2.0.0-beta.21.tgz#a4a101089994a7103c1cc7cddb15170427b185d6" integrity sha512-4zxKZOnf0rfh6myXLG7a6YZfQcxYDMBsWqANEjCX77H5gPdK+GHZuDrxK6sjFvRBv4liYCrNjo7HJ4DpPoT0zA==