summaryrefslogtreecommitdiff
path: root/app/layout.tsx
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2024-09-21 15:05:06 +0200
committerYuval Adam <_@yuv.al>2024-09-21 15:13:25 +0200
commit552c0dd15d8e780913b44ffb57e8e877783c7f31 (patch)
tree8d0c25465685a0263782b3ee70ae711cb7daca45 /app/layout.tsx
parent49466668c36715e56215bfdd6900584a75806832 (diff)
Add google analytics component
Diffstat (limited to 'app/layout.tsx')
-rw-r--r--app/layout.tsx7
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>
);
}