Skip to content

Commit 7be1262

Browse files
committed
Website. Fixing gtag scripts
1 parent ecc628c commit 7be1262

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

website/docusaurus.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ const config = {
5252
],
5353
],
5454

55+
plugins: [
56+
[
57+
'@docusaurus/plugin-google-gtag',
58+
{
59+
trackingID: 'G-KEK2TQ67TP',
60+
anonymizeIP: true,
61+
},
62+
],
63+
],
64+
5565
themeConfig:
5666
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
5767
({

website/package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
},
1616
"dependencies": {
1717
"@docusaurus/core": "^3.1.0",
18+
"@docusaurus/plugin-google-gtag": "^3.1.0",
1819
"@docusaurus/preset-classic": "^3.1.0",
1920
"@mdx-js/react": "^3.0.0",
2021
"clsx": "^2.0.0",

website/src/js/googleTagManager.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

website/src/theme/Root.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ export default function Root({children}) {
1818
}, [location]);
1919

2020
return <>
21-
22-
<script src="/js/googleTagManager.js"></script>
23-
2421
{/* Cookie consent tracking */}
2522
<CookieConsent
2623
buttonText="I understand"

0 commit comments

Comments
 (0)