Add Plausible analytics script

This commit is contained in:
MOH
2026-03-08 06:16:01 +01:00
parent 97ac06e89a
commit 993a4673d8
+8
View File
@@ -1,6 +1,7 @@
import type { Metadata } from "next"; import type { Metadata } from "next";
import { unstable_noStore as noStore } from "next/cache"; import { unstable_noStore as noStore } from "next/cache";
import localFont from "next/font/local"; import localFont from "next/font/local";
import Script from "next/script";
import { getLocale } from "next-intl/server"; import { getLocale } from "next-intl/server";
import { ThemeProvider } from "@/components/theme-provider"; import { ThemeProvider } from "@/components/theme-provider";
import { buildAppMetadata } from "@/lib/metadata"; import { buildAppMetadata } from "@/lib/metadata";
@@ -93,6 +94,13 @@ export default async function RootLayout({
<html lang={locale} dir={getDirection(locale)} suppressHydrationWarning> <html lang={locale} dir={getDirection(locale)} suppressHydrationWarning>
<body className={`${museo.variable} ${dubai.variable}`}> <body className={`${museo.variable} ${dubai.variable}`}>
<ThemeProvider>{children}</ThemeProvider> <ThemeProvider>{children}</ThemeProvider>
<Script
src="https://plausible.mohfarawati.de/js/pa-H7WDubj39eeDW3cfzeXhU.js"
strategy="afterInteractive"
/>
<Script id="plausible-init" strategy="afterInteractive">
{`window.plausible=window.plausible||function(){(plausible.q=plausible.q||[]).push(arguments)};plausible.init=plausible.init||function(i){plausible.o=i||{}};plausible.init();`}
</Script>
</body> </body>
</html> </html>
); );