script added
This commit is contained in:
parent
0d62e4f318
commit
2700b79be6
@ -1,5 +1,6 @@
|
|||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
import { Cinzel, Montserrat } from "next/font/google";
|
import { Cinzel, Montserrat } from "next/font/google";
|
||||||
|
import Script from "next/script";
|
||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
|
|
||||||
const cinzel = Cinzel({
|
const cinzel = Cinzel({
|
||||||
@ -39,6 +40,19 @@ export default function RootLayout({
|
|||||||
className={`${cinzel.variable} ${montserrat.variable} h-full antialiased`}
|
className={`${cinzel.variable} ${montserrat.variable} h-full antialiased`}
|
||||||
>
|
>
|
||||||
<body className="min-h-full bg-darkbg text-foreground">
|
<body className="min-h-full bg-darkbg text-foreground">
|
||||||
|
<Script
|
||||||
|
src="https://www.googletagmanager.com/gtag/js?id=G-MZHFDXF8QP"
|
||||||
|
strategy="afterInteractive"
|
||||||
|
/>
|
||||||
|
<Script id="google-analytics" strategy="afterInteractive">
|
||||||
|
{`
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag(){dataLayer.push(arguments);}
|
||||||
|
gtag('js', new Date());
|
||||||
|
|
||||||
|
gtag('config', 'G-MZHFDXF8QP');
|
||||||
|
`}
|
||||||
|
</Script>
|
||||||
{children}
|
{children}
|
||||||
<ScrollToTop />
|
<ScrollToTop />
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user