feat: analytics and metrics tracking for platform growth#186
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #77
Changes
frontend/src/lib/analytics.js) using localStorage for aggregate metrics collection with no PIIKey Metrics Tracked
No personally identifiable information is collected.