meaganewaller / web

frontend for my developer blog
https://devblog-web.vercel.app
MIT License
0 stars 0 forks source link

Track Post Views with User Sessions #3

Closed meaganewaller closed 6 months ago

meaganewaller commented 7 months ago

As a blog owner, I want to track the number of views each blog post receives, So that I can understand the popularity of my content and tailor future posts to better meet the interests of my audience.

Acceptance Criteria:

  1. View Count Display: On each blog post page, there should be a visible display of the number of views that post has received.
  2. Increment View Count: When a user visits a blog post page, the view count for that post should increase by one. This count should be specific to each user session to prevent duplicate views from the same user during a single session.
  3. Persistent View Count: The view count for each post should persist across user sessions, allowing me to track the overall popularity of the post over time.
  4. Session-based Tracking: Utilize user sessions to track post views, ensuring that each user's view count is incremented only once per session.
  5. Anonymous User Support: Even if a user is not logged in or identified, their views should still be counted accurately.
  6. Backend Implementation: Implement the necessary backend functionality to store and update the view count for each blog post. This may involve database updates or other data storage mechanisms.
  7. Dashboard Reporting: Provide a way for me, as the blog owner, to view and analyze post view counts through a dashboard or analytics tool. This will allow me to gain insights into the performance of my blog content.

Additional Notes: