gcx/frontend
hailin 9b760c56ee feat(mobile/telemetry): add comprehensive event tracking for DAU, real-time presence & funnels
## 架构设计(亿级用户规模)
- 客户端:本地队列(500条) + 批量上传(20条/30s) + 10% 采样率
- 心跳:前台每60s发送,后端3分钟滑动窗口 → 实时在线率
- DAU:app_session_start 事件 + installId 去重
- 后端接入:Kafka → ClickHouse 消费落盘

## 新增 TelemetryRouteObserver (NEW FILE)
- 继承 RouteObserver<PageRoute>,注册到 MaterialApp.navigatorObservers
- 自动记录所有页面 page_view(push/pop/replace),零侵入业务页面
- 属性:page_name, previous_page, nav_action
- 覆盖全部 37 个已注册路由,无需逐页埋点

## main.dart
- 接入 TelemetryRouteObserver.instance
- 新增 FlutterError.onError 全局钩子 → logError 上报 Widget build 异常

## auth_service.dart — 认证漏斗
| 事件 | 触发时机 | method 属性 |
|------|---------|------------|
| register_success | 注册成功 | phone_sms / email_code |
| login_success    | 登录成功 | password / phone_sms / email_code / wechat / alipay / google / apple |
| user_logout      | 主动登出 | — |

## self_hosted_updater.dart — 升级漏斗
update_prompted → update_accepted / update_dismissed
→ update_download_started → update_download_completed / update_download_failed / update_download_cancelled
→ update_install_triggered / update_install_failed

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-07 09:39:48 -08:00
..
admin-app fix(mobile): fix version check API and platform detection in both apps 2026-03-07 00:50:42 -08:00
admin-web fix(auth): 将 JWT access token 有效期从 15m 改为 24h 2026-03-07 08:06:37 -08:00
genex-mobile feat(mobile/telemetry): add comprehensive event tracking for DAU, real-time presence & funnels 2026-03-07 09:39:48 -08:00
miniapp/src fix(ui): 修复登录页中英混用 + 搜索栏溢出,更新品牌口号并支持后台配置 2026-03-03 20:41:37 -08:00
mobile fix(branding): 统一Logo色调与App主色调 #6C5CE7 2026-02-23 18:12:35 -08:00
portal fix(ui): 修复登录页中英混用 + 搜索栏溢出,更新品牌口号并支持后台配置 2026-03-03 20:41:37 -08:00
.gitignore feat: Add Flutter build configuration for admin-app and mobile 2026-02-11 06:22:13 -08:00
build.bat feat: Add Flutter build configuration for admin-app and mobile 2026-02-11 06:22:13 -08:00
build.sh feat: Add Flutter build configuration for admin-app and mobile 2026-02-11 06:22:13 -08:00