1- import type React from "react"
2- import type { Metadata } from "next"
3- import Script from "next/script"
4- import { Inter } from "next/font/google"
5- import { Analytics } from "@vercel/analytics/next"
6- import "./globals.css"
1+ import type React from "react" ;
2+ import type { Metadata } from "next" ;
3+ import Script from "next/script" ;
4+ import { Inter } from "next/font/google" ;
5+ import { Analytics } from "@vercel/analytics/next" ;
6+ import "./globals.css" ;
77
8- const inter = Inter ( { subsets : [ "latin" ] } )
8+ const inter = Inter ( { subsets : [ "latin" ] } ) ;
99
1010export const metadata : Metadata = {
1111 title : "Python Norte — A maior conferência..." ,
12- }
12+ } ;
1313
14- export default function RootLayout ( { children } : { children : React . ReactNode } ) {
14+ export default function RootLayout ( {
15+ children,
16+ } : {
17+ children : React . ReactNode ;
18+ } ) {
1519 return (
1620 < html lang = "pt-BR" >
1721 < head >
@@ -25,6 +29,19 @@ export default function RootLayout({ children }: { children: React.ReactNode })
2529 })(window,document,'script','dataLayer','GTM-5QSW468R');
2630 ` }
2731 </ Script >
32+ < Script
33+ src = "https://www.googletagmanager.com/gtag/js?id=G-6L2D2YVD56"
34+ strategy = "afterInteractive"
35+ />
36+
37+ < Script id = "gtag-init" strategy = "afterInteractive" >
38+ { `
39+ window.dataLayer = window.dataLayer || [];
40+ function gtag(){dataLayer.push(arguments);}
41+ gtag('js', new Date());
42+ gtag('config', 'G-6L2D2YVD56');
43+ ` }
44+ </ Script >
2845 { /* End Google Tag Manager */ }
2946 </ head >
3047
@@ -44,5 +61,5 @@ export default function RootLayout({ children }: { children: React.ReactNode })
4461 < Analytics />
4562 </ body >
4663 </ html >
47- )
64+ ) ;
4865}
0 commit comments