Statistics for admins: views, visitors, moderation, accounts (no cookies) #99
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/stats"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #86. Owner request: privacy-friendly stats on the admin dashboard (moderation, views, visits).
Admin › اعداد و شمار (
/admin/stats, admins only), for 7 days, 30 days, 90 days or a year:Privacy (no consent banner needed):
x-site-key, as for rate limits).Schema: three new tables (
stat_views,stat_visitors,stat_referrers), created by the deploy's schema step.Tested:
stats.test.ts: hits are accepted only from the site, the counts are right, no addresses are stored, and the dashboard is for admins only. All API tests pass./accountwere not counted; the dashboard renders.Known limit: the salt lives in the API process, so a restart in the middle of a day can count a returning reader twice that day.
🤖 Generated with Claude Code