File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 11import { RootProvider } from 'fumadocs-ui/provider/next' ;
22import './global.css' ;
33import { Inter } from 'next/font/google' ;
4+ import Script from 'next/script' ;
45
56const inter = Inter ( {
67 subsets : [ 'latin' ] ,
@@ -10,6 +11,18 @@ export default function Layout({ children }: LayoutProps<'/'>) {
1011 return (
1112 < html lang = "en" className = { inter . className } suppressHydrationWarning >
1213 < body className = "flex flex-col min-h-screen" >
14+ < Script
15+ src = "https://www.googletagmanager.com/gtag/js?id=G-JV0T1EB3R7"
16+ strategy = "afterInteractive"
17+ />
18+ < Script id = "google-analytics" strategy = "afterInteractive" >
19+ { `
20+ window.dataLayer = window.dataLayer || [];
21+ function gtag(){dataLayer.push(arguments);}
22+ gtag('js', new Date());
23+ gtag('config', 'G-JV0T1EB3R7');
24+ ` }
25+ </ Script >
1326 < RootProvider > { children } </ RootProvider >
1427 </ body >
1528 </ html >
You can’t perform that action at this time.
0 commit comments