docs: integrate google analytics (#10526)

This commit is contained in:
Shahed Nasser
2024-12-10 13:16:12 +02:00
committed by GitHub
parent de81187929
commit 0c1bbbac2a
19 changed files with 156 additions and 93 deletions
+2 -1
View File
@@ -8,4 +8,5 @@ NEXT_PUBLIC_ALGOLIA_APP_ID=
NEXT_PUBLIC_SEGMENT_API_KEY=
NEXT_PUBLIC_AI_ASSISTANT_URL=
NEXT_PUBLIC_AI_WEBSITE_ID=
NEXT_PUBLIC_AI_API_ASSISTANT_RECAPTCHA_SITE_KEY=
NEXT_PUBLIC_AI_API_ASSISTANT_RECAPTCHA_SITE_KEY=
NEXT_PUBLIC_GA_ID=
+1 -1
View File
@@ -25,7 +25,7 @@
"date-fns": "^3.3.1",
"docs-ui": "*",
"mdast-util-toc": "^7.0.0",
"next": "15.0.1",
"next": "15.0.4",
"next-contentlayer": "^0.3.4",
"next-themes": "^0.2.1",
"postcss": "8.4.27",
+4 -1
View File
@@ -56,7 +56,10 @@ export default function RootLayout({
children: React.ReactNode
}) {
return (
<BareboneLayout htmlClassName={clsx(inter.variable, robotoMono.variable)}>
<BareboneLayout
htmlClassName={clsx(inter.variable, robotoMono.variable)}
gaId={process.env.NEXT_PUBLIC_GA_ID}
>
<TightLayout
sidebarProps={{
expandItems: true,