Skip to content

Add usage metrics tracker feature#151

Open
iancmoritz wants to merge 1 commit intoCOG-GTM:masterfrom
COG-GTM-OPEN:feature/tracker-metrics
Open

Add usage metrics tracker feature#151
iancmoritz wants to merge 1 commit intoCOG-GTM:masterfrom
COG-GTM-OPEN:feature/tracker-metrics

Conversation

@iancmoritz
Copy link

@iancmoritz iancmoritz commented Jan 21, 2026

Summary

  • Add new TrackerService with localStorage persistence for tracking user activity
  • Create new "metrics" tab accessible from the header navigation
  • Track page views across all feed types (news, newest, show, ask, jobs)
  • Track story link clicks with title and ID
  • Track user profile views
  • Display aggregated metrics including:
    • Total page views, story clicks, and user profile views
    • Page views by type
    • Top 10 clicked stories
    • Top 10 viewed users
    • Activity by hour of day
    • Average time spent per page type
    • Session count

Test plan

  • Navigate to different feed pages and verify page views are tracked
  • Click on story links and verify clicks are tracked
  • View user profiles and verify views are tracked
  • Navigate to /metrics and verify all aggregations display correctly
  • Clear data and verify metrics reset
  • Refresh page and verify data persists in localStorage

🤖 Generated with Chisel


Open with Devin

- Create TrackerService with localStorage persistence for tracking page views, story clicks, and user profile views
- Add new metrics tab in navigation header
- Display aggregated metrics: page views by type, top stories, top users, activity by hour, average time per page
- Integrate tracking into FeedComponent, ItemDetailsComponent, UserComponent, and ItemComponent

🤖 Generated with [Chisel](https://cognition.ai/devin-cli)

Co-Authored-By: Chisel <noreply@cognition.ai>
Copy link

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 5 additional flags.

Open in Devin Review

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.

1 participant