adavijit / BlogMan

A Blog Web Application, specially made for open source contribution. Simple MERN (MongoDB, ExpressJs, React, Node) technology has been used
93 stars 106 forks source link

Track user activity #197

Open rajatmw1999 opened 4 years ago

rajatmw1999 commented 4 years ago

Write code to store the user activity in the user activity database model mentioned in issue #196 .

Tracking:

  1. Everytime a user visits the website, a call from front end should store that ip address in the database. If the IP address already exists, increment the number of visits in that particular record.
  2. As user clicks any button and visits any route, store the routes visited by the user in the array mentioned in database. Push the visited route in the array.
  3. Push the time spent by the user in that particular visit in an array.
  4. Push the ids of posts they liked in the array.
  5. Push the time they spent on each page and each section of page if possible.

Assume dummy data wherever possible, since the different parts of application are not completed yet.

rinsacm commented 4 years ago

I'd like to work on this.

rajatmw1999 commented 4 years ago

Assigned to @rinsacm