aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/layout.tsx31
-rw-r--r--package-lock.json15
-rw-r--r--package.json1
3 files changed, 35 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>
);
diff --git a/package-lock.json b/package-lock.json
index 8334db8..a888705 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -17,6 +17,7 @@
"maplibre-gl": "^5.15.0",
"next": "16.1.1",
"next-contentlayer2": "^0.5.8",
+ "next-plausible": "^3.12.5",
"next-themes": "^0.4.6",
"react": "19.2.3",
"react-dom": "19.2.3",
@@ -8635,6 +8636,20 @@
"react-dom": "^18 || ^19 || ^19.0.0-rc"
}
},
+ "node_modules/next-plausible": {
+ "version": "3.12.5",
+ "resolved": "https://registry.npmjs.org/next-plausible/-/next-plausible-3.12.5.tgz",
+ "integrity": "sha512-l1YMuTI9akb2u7z4hyTuxXpudy8KfSteRNXCYpWpnhAoBjaWQlv6sITai1TwcR7wWvVW8DFbLubvMQAsirAjcA==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/4lejandrito/next-plausible?sponsor=1"
+ },
+ "peerDependencies": {
+ "next": "^11.1.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 ",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ }
+ },
"node_modules/next-themes": {
"version": "0.4.6",
"resolved": "https://registry.npmjs.org/next-themes/-/next-themes-0.4.6.tgz",
diff --git a/package.json b/package.json
index 1d9258f..c991444 100644
--- a/package.json
+++ b/package.json
@@ -18,6 +18,7 @@
"maplibre-gl": "^5.15.0",
"next": "16.1.1",
"next-contentlayer2": "^0.5.8",
+ "next-plausible": "^3.12.5",
"next-themes": "^0.4.6",
"react": "19.2.3",
"react-dom": "19.2.3",