File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import type { Metadata } from "next";
22import localFont from "next/font/local";
33import { RootProvider } from "fumadocs-ui/provider";
4+ import Script from "next/script";
45import "./globals.css";
56
67const geistSans = localFont({
@@ -30,6 +31,19 @@ export default function RootLayout({
3031 className={`${geistSans.variable} ${geistMono.variable} antialiased`}
3132 >
3233 <RootProvider>{children}</RootProvider>
34+ <Script
35+ src="https://www.googletagmanager.com/gtag/js?id=G-ED4GVN8YVW"
36+ strategy="afterInteractive"
37+ />
38+ <Script id="gtag-init" strategy="afterInteractive">
39+ {`
40+ window.dataLayer = window.dataLayer || [];
41+ function gtag(){dataLayer.push(arguments);}
42+ gtag('js', new Date());
43+
44+ gtag('config', 'G-ED4GVN8YVW');
45+ `}
46+ </Script>
3347 </body>
3448 </html>
3549 );
You can’t perform that action at this time.
0 commit comments