summaryrefslogtreecommitdiff
path: root/apps/web/app
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-08 08:17:09 -0800
committerFuwn <[email protected]>2026-02-08 08:17:09 -0800
commit19f1587511faf95eadd97d219f64df227b831faa (patch)
treed3f07242b3466b6fecab57a5d1875b4437e99c00 /apps/web/app
parentfix: toast notification z-index behind entry panel (diff)
downloadasa.news-19f1587511faf95eadd97d219f64df227b831faa.tar.xz
asa.news-19f1587511faf95eadd97d219f64df227b831faa.zip
feat: add Umami analytics (production only)
Diffstat (limited to 'apps/web/app')
-rw-r--r--apps/web/app/layout.tsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsx
index a7da263..627f2f3 100644
--- a/apps/web/app/layout.tsx
+++ b/apps/web/app/layout.tsx
@@ -1,3 +1,4 @@
+import Script from "next/script"
import type { Metadata, Viewport } from "next"
import localFont from "next/font/local"
import { ThemeProvider } from "next-themes"
@@ -52,6 +53,13 @@ export default function RootLayout({
</ThemeProvider>
{process.env.NODE_ENV === "production" && <SpeedInsights />}
{process.env.NODE_ENV === "production" && <Analytics />}
+ {process.env.NODE_ENV === "production" && (
+ <Script
+ defer
+ src="https://analytics.fuwn.me/script.js"
+ data-website-id="419b8c97-8e2a-4ae4-8357-2e87f3807e0e"
+ />
+ )}
</body>
</html>
)