diff options
| author | Yuval Adam <_@yuv.al> | 2024-09-21 15:05:06 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2024-09-21 15:13:25 +0200 |
| commit | 552c0dd15d8e780913b44ffb57e8e877783c7f31 (patch) | |
| tree | 8d0c25465685a0263782b3ee70ae711cb7daca45 /app/layout.tsx | |
| parent | 49466668c36715e56215bfdd6900584a75806832 (diff) | |
Add google analytics component
Diffstat (limited to 'app/layout.tsx')
| -rw-r--r-- | app/layout.tsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/layout.tsx b/app/layout.tsx index b41b50f..f693908 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,4 +1,6 @@ import type { Metadata } from "next"; +import { GoogleAnalytics } from '@next/third-parties/google' + import localFont from "next/font/local"; import "./globals.css"; @@ -25,11 +27,10 @@ export default function RootLayout({ }>) { return ( <html lang="en"> - <body - className={`${geistSans.variable} ${geistMono.variable} antialiased`} - > + <body className={`${geistSans.variable} ${geistMono.variable} antialiased`}> {children} </body> + <GoogleAnalytics gaId="G-31LHNP2G97" /> </html> ); } |
