File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,14 @@ export const metadata = {
11
11
image : "/logo.png" ,
12
12
} ;
13
13
14
+ let script = `
15
+ window.dataLayer = window.dataLayer || [];
16
+ function gtag(){dataLayer.push(arguments);}
17
+ gtag('js', new Date());
18
+
19
+ gtag('config', 'G-E9Q2600LW2');
20
+ ` ;
21
+
14
22
export default function RootLayout ( { children } ) {
15
23
return (
16
24
< html lang = "en" >
@@ -66,6 +74,10 @@ export default function RootLayout({ children }) {
66
74
src = "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1828915420581549"
67
75
crossOrigin = "anonymous"
68
76
> </ script >
77
+
78
+ < script async src = "https://www.googletagmanager.com/gtag/js?id=G-E9Q2600LW2" > </ script >
79
+ < script dangerouslySetInnerHTML = { { __html : script } } > </ script >
80
+
69
81
</ head >
70
82
71
83
< body className = { inter . className } >
You can’t perform that action at this time.
0 commit comments