This is my personal website

update _app.tsx

+22
+22
routes/_app.tsx
··· 1 import { type PageProps } from "$fresh/server.ts"; 2 export default function App({ Component }: PageProps) { 3 return ( 4 <html> ··· 8 <title>Tsiry Sandratraina</title> 9 <link rel="stylesheet" href="/styles.css" /> 10 </head> 11 <body> 12 <Component /> 13 </body>
··· 1 import { type PageProps } from "$fresh/server.ts"; 2 + 3 + declare global { 4 + interface Window { 5 + dataLayer: any[]; 6 + } 7 + } 8 + 9 export default function App({ Component }: PageProps) { 10 return ( 11 <html> ··· 15 <title>Tsiry Sandratraina</title> 16 <link rel="stylesheet" href="/styles.css" /> 17 </head> 18 + 19 + <script 20 + async 21 + src="https://www.googletagmanager.com/gtag/js?id=G-2LP61SRX58" 22 + > 23 + </script> 24 + <script> 25 + window.dataLayer = window.dataLayer || []; function gtag(){window 26 + .dataLayer.push(arguments)} 27 + 28 + gtag('js', new Date()); 29 + 30 + gtag('config', 'G-2LP61SRX58'); 31 + </script> 32 + 33 <body> 34 <Component /> 35 </body>