Write code to store the user activity in the user activity database model mentioned in issue #196 .
Tracking:
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.
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.
Push the time spent by the user in that particular visit in an array.
Push the ids of posts they liked in the array.
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.
Write code to store the user activity in the user activity database model mentioned in issue #196 .
Tracking:
Assume dummy data wherever possible, since the different parts of application are not completed yet.