Skip to content
This repository was archived by the owner on Jul 6, 2026. It is now read-only.

添加第一方访问 UV 统计 - #89

Closed
FlashingChen wants to merge 1 commit into
mainfrom
feat/real-visit-uv
Closed

FlashingChen wants to merge 1 commit into
mainfrom
feat/real-visit-uv

Conversation

@FlashingChen

Copy link
Copy Markdown
Collaborator

摘要

  • 新增第一方 /api/visit 访问记录,使用哈希访客标识统计匿名 PV/UV。
  • 更新 /admin,将真实访问 PV/UV 与原有诊断使用统计分开展示。
  • 为 React /app 路由和静态文档页接入访问打点,并同步更新隐私政策说明。

测试

  • cd backend && source venv/bin/activate && python -m pytest tests/test_admin_visit_stats.py -v
  • cd frontend && npx tsc --noEmit
  • python -m compileall backend/app
  • git diff --check

Track anonymous page visits separately from diagnosis usage so admin stats can report real PV/UV without third-party analytics.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant