aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/layout.tsx31
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>
);