feat: add privacy-friendly Umami page-view analytics (#15)

Cookieless, env-gated page-view tracking via Umami. The <Analytics />
component injects the script only when NEXT_PUBLIC_UMAMI_SRC and
NEXT_PUBLIC_UMAMI_WEBSITE_ID are both set, so local dev and forks send
nothing to our instance. Adds .env.example docs (section 6) and a
homepage footer privacy disclosure. No Cookie consent banner needed.
This commit is contained in:
Zonghao Yuan
2026-06-03 01:14:55 +08:00
committed by GitHub
parent 639201cd38
commit 6ddbe7d377
4 changed files with 34 additions and 0 deletions
+2
View File
@@ -744,6 +744,8 @@ export default function HomePage() {
<br />
AI
<br />
使 Umami 访使 Cookie
</p>
</section>