Skip to content

Commit 6c12991

Browse files
chore(app): add gtag
1 parent 3372ba8 commit 6c12991

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

docusaurus.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ const config = {
3434
docs: {
3535
sidebarPath: './sidebars.js',
3636
routeBasePath: '/',
37-
// Please change this to your repo.
38-
// Remove this to remove the "edit this page" links.
3937
editUrl:
4038
'https://github.com/AyLabsCode/docs/tree/main/',
4139
remarkPlugins: [
@@ -49,6 +47,11 @@ const config = {
4947
theme: {
5048
customCss: './src/css/custom.css',
5149
},
50+
51+
gtag: {
52+
trackingID: 'G-5JCFT4383B',
53+
anonymizeIP: true,
54+
},
5255
}),
5356
],
5457
],

package-lock.json

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

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.9.2",
18+
"@docusaurus/plugin-google-gtag": "^3.9.2",
1819
"@docusaurus/preset-classic": "3.9.2",
1920
"@mdx-js/react": "^3.0.0",
2021
"clsx": "^2.0.0",

0 commit comments

Comments
 (0)