docs: integrate google analytics (#10526)
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user