Spaces:
Paused
Paused
Commit ·
2cf1dfe
1
Parent(s): b4f67d5
Add Google Tag Manager (GTM-WHZJJT9H) to head and body
Browse files- app/layout.tsx +25 -0
app/layout.tsx
CHANGED
|
@@ -78,9 +78,34 @@ export default function RootLayout({
|
|
| 78 |
}>) {
|
| 79 |
return (
|
| 80 |
<html lang="en" className={cn("font-sans", geist.variable)} suppressHydrationWarning>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
<body
|
| 82 |
className={`${geistMono.variable} ${fastHand.variable} ${instrumentSerif.variable} ${ibmPlexArabic.variable} font-sans antialiased bg-background`}
|
| 83 |
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
<LanguageProvider>
|
| 85 |
<ThemeProvider
|
| 86 |
attribute="class"
|
|
|
|
| 78 |
}>) {
|
| 79 |
return (
|
| 80 |
<html lang="en" className={cn("font-sans", geist.variable)} suppressHydrationWarning>
|
| 81 |
+
<head>
|
| 82 |
+
{/* Google Tag Manager */}
|
| 83 |
+
<Script
|
| 84 |
+
id="gtm-head"
|
| 85 |
+
strategy="afterInteractive"
|
| 86 |
+
dangerouslySetInnerHTML={{
|
| 87 |
+
__html: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
| 88 |
+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
| 89 |
+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
| 90 |
+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
| 91 |
+
})(window,document,'script','dataLayer','GTM-WHZJJT9H');`,
|
| 92 |
+
}}
|
| 93 |
+
/>
|
| 94 |
+
{/* End Google Tag Manager */}
|
| 95 |
+
</head>
|
| 96 |
<body
|
| 97 |
className={`${geistMono.variable} ${fastHand.variable} ${instrumentSerif.variable} ${ibmPlexArabic.variable} font-sans antialiased bg-background`}
|
| 98 |
>
|
| 99 |
+
{/* Google Tag Manager (noscript) */}
|
| 100 |
+
<noscript>
|
| 101 |
+
<iframe
|
| 102 |
+
src="https://www.googletagmanager.com/ns.html?id=GTM-WHZJJT9H"
|
| 103 |
+
height="0"
|
| 104 |
+
width="0"
|
| 105 |
+
style={{ display: 'none', visibility: 'hidden' }}
|
| 106 |
+
/>
|
| 107 |
+
</noscript>
|
| 108 |
+
{/* End Google Tag Manager (noscript) */}
|
| 109 |
<LanguageProvider>
|
| 110 |
<ThemeProvider
|
| 111 |
attribute="class"
|