diff options
| author | schererleander <leander@schererleander.de> | 2025-12-26 03:20:02 +0100 |
|---|---|---|
| committer | schererleander <leander@schererleander.de> | 2025-12-26 03:20:02 +0100 |
| commit | d4e8681d9b6c6e6ea29e86f753a8a5b0961da5e6 (patch) | |
| tree | 4427abb81992f621e7823cc5ea3286968b7d29a0 /app/layout.tsx | |
| parent | af11f57d4d9cf653ef523b86f68363b9c2fd7112 (diff) | |
feat(layout): setup plausible analytics via next-plausible
Diffstat (limited to 'app/layout.tsx')
| -rw-r--r-- | app/layout.tsx | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/app/layout.tsx b/app/layout.tsx index 604079a..894989f 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,3 +1,4 @@ +import PlausibleProvider from "next-plausible"; import { Noise } from "@/components/noise"; import { ThemeProvider } from "@/components/theme-provider" import { Footer } from "@/components/footer" @@ -18,19 +19,25 @@ export default function Layout({ return ( <html lang="en" suppressHydrationWarning> <body> - <ThemeProvider - attribute="class" - defaultTheme="system" - enableSystem - disableTransitionOnChange + <PlausibleProvider + domain="schererleander.de" + customDomain="https://analytics.schererleander.de" + selfHosted > - <Header /> - <main className="mx-auto max-w-[var(--site-width)]"> - {children} - </main> - <Footer /> - <Noise /> - </ThemeProvider> + <ThemeProvider + attribute="class" + defaultTheme="system" + enableSystem + disableTransitionOnChange + > + <Header /> + <main className="mx-auto max-w-[var(--site-width)]"> + {children} + </main> + <Footer /> + <Noise /> + </ThemeProvider> + </PlausibleProvider> </body> </html> ); |
