Add Google Analytics and Yandex Metrika (#8)

* Add Google Analytics

* Add Yandex Metrika
This commit is contained in:
Sergey Shorokhov 2024-11-09 10:05:53 +03:00 committed by GitHub
parent 6743e2519f
commit 8383d8aca1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1362 additions and 0 deletions

View File

@ -58,6 +58,10 @@ const config: Config = {
theme: {
customCss: "./src/css/custom.css",
},
gtag: {
trackingID: "G-REKDWWGWC3",
anonymizeIP: false,
},
} satisfies Preset.Options,
],
],
@ -140,6 +144,15 @@ const config: Config = {
apiKey: "41b3073341af875e11a1de96cd00f535",
indexName: "rehldsio",
},
plugins: [
[
"docusaurus-plugin-yandex-metrica",
{
counterID: "98867928",
webvisor: true,
},
],
],
} satisfies Preset.ThemeConfig,
};

1348
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -19,6 +19,7 @@
"@docusaurus/preset-classic": "3.5.2",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"docusaurus-plugin-yandex-metrica": "^1.2.1",
"prism-react-renderer": "^2.3.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"