Skip to content

feat: analytics and metrics tracking for platform growth#186

Merged
Mosas2000 merged 4 commits intomainfrom
feature/analytics-tracking
Feb 26, 2026
Merged

feat: analytics and metrics tracking for platform growth#186
Mosas2000 merged 4 commits intomainfrom
feature/analytics-tracking

Conversation

@Mosas2000
Copy link
Copy Markdown
Owner

Closes #77

Changes

  • Add privacy-respecting analytics module (frontend/src/lib/analytics.js) using localStorage for aggregate metrics collection with no PII
  • Integrate tracking across core components:
    • App.jsx: Page views, session counting, wallet connect/disconnect, tab navigation
    • SendTip.jsx: Full tip funnel (started → submitted → confirmed/cancelled/failed)
    • BatchTip.jsx: Batch tip started/submitted, error tracking
    • ErrorBoundary.jsx: Uncaught error tracking by component
  • Add Usage Analytics panel in Admin Dashboard with:
    • Page views, wallet connections, sessions, error counts
    • Tip funnel with completion and drop-off rate percentages
    • Tab navigation patterns sorted by frequency
    • Top errors list
    • Tracking start date
  • Add 10 unit tests covering all analytics functions

Key Metrics Tracked

  • Wal- Wal- Wal- Wal- Wal- Wal- Wal- Wal- Wal- Wal- Wal- Wal- Wal- Wal- Wal- Wal- Wal- Wal- Wal- Wal- Walrns
  • Error rates by component
  • Session counts and page views

No personally identifiable information is collected.

Implement localStorage-based analytics tracking that collects
aggregate metrics without any personally identifiable information.

Tracks: page views, wallet connections, tip funnel (started/submitted/
confirmed/cancelled/failed), tab navigation patterns, error rates,
and session counts. Provides summary computation with completion
and drop-off rate calculations.
Add event tracking to App (page views, session, wallet connect/
disconnect, tab navigation), SendTip (tip funnel: started, submitted,
confirmed, cancelled, failed), BatchTip (batch started/submitted,
errors), and ErrorBoundary (uncaught errors).
Display aggregate metrics including page views, wallet connections,
sessions, error counts, tip funnel with completion/drop-off rates,
tab navigation patterns, and top errors. Data is sourced from the
local analytics module with a manual refresh button.
Cover session tracking, page views, wallet connections, tip funnel
with completion/drop-off rate calculations, tab navigation, error
tracking by component, batch tip events, and metrics reset behavior.
10 test cases, all passing.
@Mosas2000 Mosas2000 merged commit ca959b1 into main Feb 26, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No analytics or metrics tracking for platform growth measurement

1 participant