docs: integrate google analytics (#10526)

This commit is contained in:
Shahed Nasser authored and GitHub committed 2024-12-10 13:16:12 +02:00
1 parent de81187929
commit 0c1bbbac2a
19 files changed
+156 -93

No files matched your search

@@ -1,19 +1,23 @@
import clsx from "clsx"
import React from "react"
import { GoogleAnalytics } from "@next/third-parties/google"
export type BareboneLayoutProps = {
htmlClassName?: string
children: React.ReactNode
gaId?: string
}
export const BareboneLayout = ({
htmlClassName,
children,
gaId,
}: BareboneLayoutProps) => {
return (
<html lang="en" className={clsx("h-full w-full", htmlClassName)}>
<head />
{children}
<GoogleAnalytics gaId={gaId || "temp"} />
</html>
)
}