Add google analytics

This commit is contained in:
mkhamrov 2022-06-29 17:31:28 +03:00
parent 25a1b991ef
commit 342b089adc
3 changed files with 10 additions and 0 deletions

View File

@ -108,12 +108,20 @@ module.exports = {
// it searches only in v1 docs if you are searching from v1 docs.
// We should enable it if we start doing versioning.
// contextualSearch: true
},
gtag: {
trackingID: 'G-3ZEDH3BVGE',
anonymizeIP: true,
}
},
presets: [
[
'@docusaurus/preset-classic',
{
gtag: {
trackingID: 'G-3ZEDH3BVGE',
anonymizeIP: true,
},
docs: {
sidebarPath: require.resolve('./sidebars.js'),
sidebarCollapsible: true,

1
web/package-lock.json generated
View File

@ -9,6 +9,7 @@
"version": "0.0.0",
"dependencies": {
"@docusaurus/core": "2.0.0-beta.6",
"@docusaurus/plugin-google-gtag": "^2.0.0-beta.6",
"@docusaurus/preset-classic": "2.0.0-beta.6",
"@mdx-js/react": "^1.6.21",
"@svgr/webpack": "^5.5.0",

View File

@ -15,6 +15,7 @@
},
"dependencies": {
"@docusaurus/core": "2.0.0-beta.6",
"@docusaurus/plugin-google-gtag": "^2.0.0-beta.6",
"@docusaurus/preset-classic": "2.0.0-beta.6",
"@mdx-js/react": "^1.6.21",
"@svgr/webpack": "^5.5.0",