diff options
| author | Fuwn <[email protected]> | 2026-02-08 08:17:09 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-08 08:17:09 -0800 |
| commit | 19f1587511faf95eadd97d219f64df227b831faa (patch) | |
| tree | d3f07242b3466b6fecab57a5d1875b4437e99c00 /apps/web/app | |
| parent | fix: toast notification z-index behind entry panel (diff) | |
| download | asa.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.tsx | 8 |
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> ) |