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
@@ -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>
)
}