feat: add Plausible Analytics script to layout for tracking.

This commit is contained in:
Hördle Bot
2025-11-25 22:13:46 +01:00
parent 9bf7e72a6c
commit 1d62aca2fb

View File

@@ -1,5 +1,6 @@
import type { Metadata, Viewport } from "next"; import type { Metadata, Viewport } from "next";
import { Geist, Geist_Mono } from "next/font/google"; import { Geist, Geist_Mono } from "next/font/google";
import Script from "next/script";
import "./globals.css"; import "./globals.css";
const geistSans = Geist({ const geistSans = Geist({
@@ -35,6 +36,12 @@ export default function RootLayout({
return ( return (
<html lang="en"> <html lang="en">
<body className={`${geistSans.variable} ${geistMono.variable}`}> <body className={`${geistSans.variable} ${geistMono.variable}`}>
<Script
defer
data-domain="hoerdle.elpatron.me"
src="https://plausible.elpatron.me/js/script.js"
strategy="afterInteractive"
/>
{children} {children}
<InstallPrompt /> <InstallPrompt />
<AppFooter /> <AppFooter />