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

Add first-party visit UV tracking - #88

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

Summary

  • Add first-party /api/visit pageview logging with hashed visitor identity.
  • Update /admin to show real visit PV/UV separately from diagnosis usage stats.
  • Wire visit beacons for the React app and static docs pages, and update privacy wording.

Test plan

  • python -m compileall backend/app
  • git diff --check
  • cd backend && source venv/bin/activate && python -m pytest tests/test_admin_visit_stats.py -v (not run: local backend venv is not present in this environment)
  • cd frontend && npx tsc --noEmit (not run: frontend dependencies are not installed in this environment)

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