docs: Set up Google gtag

This commit is contained in:
Marc Rousavy 2023-03-16 13:30:59 -04:00
parent 1bd21a8d2b
commit 3978406755
3 changed files with 6 additions and 1 deletions

View File

@ -144,6 +144,10 @@ module.exports = {
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
gtag: {
trackingID: 'G-FX9Q0YKV7S',
anonymizeIP: false,
},
},
],
],

View File

@ -14,6 +14,7 @@
},
"dependencies": {
"@docusaurus/core": "^2.3.1",
"@docusaurus/plugin-google-gtag": "^2.3.1",
"@docusaurus/plugin-sitemap": "^2.3.1",
"@docusaurus/preset-classic": "^2.3.1",
"@mdx-js/react": "^1.6.22",

View File

@ -1718,7 +1718,7 @@
"@docusaurus/utils-validation" "2.3.1"
tslib "^2.4.0"
"@docusaurus/plugin-google-gtag@2.3.1":
"@docusaurus/plugin-google-gtag@2.3.1", "@docusaurus/plugin-google-gtag@^2.3.1":
version "2.3.1"
resolved "https://registry.yarnpkg.com/@docusaurus/plugin-google-gtag/-/plugin-google-gtag-2.3.1.tgz#b8da54a60c0a50aca609c3643faef78cb4f247a0"
integrity sha512-uXtDhfu4+Hm+oqWUySr3DNI5cWC/rmP6XJyAk83Heor3dFjZqDwCbkX8yWPywkRiWev3Dk/rVF8lEn0vIGVocA==