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
@@ -16,4 +16,5 @@ ANALYZE_BUNDLE=
NEXT_PUBLIC_AI_ASSISTANT_URL=
NEXT_PUBLIC_AI_WEBSITE_ID=
NEXT_PUBLIC_AI_API_ASSISTANT_RECAPTCHA_SITE_KEY=
CLOUDINARY_CLOUD_NAME=
CLOUDINARY_CLOUD_NAME=
NEXT_PUBLIC_GA_ID=
+4 -1
View File
@@ -60,7 +60,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,
+2 -2
View File
@@ -16,10 +16,10 @@
"@mdx-js/loader": "^3.1.0",
"@mdx-js/react": "^3.1.0",
"@medusajs/icons": "^2.0.0",
"@next/mdx": "15.0.1",
"@next/mdx": "15.0.4",
"clsx": "^2.1.0",
"docs-ui": "*",
"next": "15.0.1",
"next": "15.0.4",
"react": "rc",
"react-dom": "rc",
"rehype-mdx-code-props": "^2.0.0",