1
+ import Script from 'next/script' ;
1
2
import type { Metadata } from 'next' ;
2
3
3
4
import { ThemeProvider } from '@/components/theme-provider' ;
@@ -7,8 +8,8 @@ import '../styles/globals.css';
7
8
8
9
export const metadata : Metadata = {
9
10
title : 'RepoTree - ASCII Tree Generator' ,
10
- description :
11
- 'RepoTree is a web app for generating an ASCII tree from a GitHub URL.' ,
11
+ description : 'RepoTree is a web app for generating an ASCII tree from a GitHub URL.' ,
12
+ authors : [ { name : 'Ralph Rosael' } ] ,
12
13
} ;
13
14
14
15
export default function RootLayout ( {
@@ -18,6 +19,21 @@ export default function RootLayout({
18
19
} > ) {
19
20
return (
20
21
< html lang = "en" suppressHydrationWarning >
22
+ < head >
23
+ { /* Google Tag (gtag.js) */ }
24
+ < Script
25
+ src = "https://www.googletagmanager.com/gtag/js?id=G-7PSC7S1M55"
26
+ strategy = "afterInteractive"
27
+ />
28
+ < Script id = "google-analytics" strategy = "afterInteractive" >
29
+ { `
30
+ window.dataLayer = window.dataLayer || [];
31
+ function gtag(){dataLayer.push(arguments);}
32
+ gtag('js', new Date());
33
+ gtag('config', 'G-7PSC7S1M55');
34
+ ` }
35
+ </ Script >
36
+ </ head >
21
37
< body className = "antialiased" >
22
38
< ThemeProvider attribute = "class" defaultTheme = "system" enableSystem >
23
39
{ children }
0 commit comments