Added google anal
This commit is contained in:
parent
2e876265b4
commit
9baa792111
1
global.d.ts
vendored
1
global.d.ts
vendored
@ -7,6 +7,7 @@ declare namespace NodeJS {
|
|||||||
declare global {
|
declare global {
|
||||||
interface Window {
|
interface Window {
|
||||||
kofiWidgetOverlay: any;
|
kofiWidgetOverlay: any;
|
||||||
|
dataLayer: any[];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export {};
|
export {};
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
import "tailwindcss/tailwind.css";
|
import "tailwindcss/tailwind.css";
|
||||||
|
|
||||||
|
|
||||||
|
import Script from "next/script";
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import NightModeToggle from "@/components/NightModeToggle";
|
import NightModeToggle from "@/components/NightModeToggle";
|
||||||
import Navbar from "@/components/NavigationBar";
|
import Navbar from "@/components/NavigationBar";
|
||||||
@ -49,8 +51,20 @@ export default function RootLayout({ children }: { children: React.ReactNode })
|
|||||||
})();
|
})();
|
||||||
`,
|
`,
|
||||||
}}
|
}}
|
||||||
|
|
||||||
/>
|
/>
|
||||||
|
<Script
|
||||||
|
src="https://www.googletagmanager.com/gtag/js?id=G-6SXB46RSDE"
|
||||||
|
strategy="afterInteractive"
|
||||||
|
/>
|
||||||
|
<Script id="google-analytics" strategy="afterInteractive">
|
||||||
|
{`
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag(){dataLayer.push(arguments);}
|
||||||
|
gtag('js', new Date());
|
||||||
|
gtag('config', 'G-6SXB46RSDE');
|
||||||
|
`}
|
||||||
|
</Script>
|
||||||
</head>
|
</head>
|
||||||
<body className="bg-gray-100 dark:bg-gray-900 text-gray-900 dark:text-gray-100 min-h-screen">
|
<body className="bg-gray-100 dark:bg-gray-900 text-gray-900 dark:text-gray-100 min-h-screen">
|
||||||
<KofiWidget />
|
<KofiWidget />
|
||||||
|
Loading…
Reference in New Issue
Block a user