php - Capturing user data for machine learning and recommendations -


i in infrastructure guy forgive if question sounds naive. need work dev partner in capturing following data php web application.

  • time of entry
  • device, os, browser
  • network, source of visit
  • user actions on site, speed of scroll
  • current page user on

the idea pump data data store run machine learning algorithms come near real-time recommendations. understand extend standard cookie can track data. possible collect of data?

what right way go collecting data?

everything user can stored in database future reviews best way keep track of user on over website.

to give few ideas,

1) time of entry ==> when user enters website just, having time_stamp field trick, automatically update user's entry value.

2) detecting os => use var_dump(php_os);

3) detecting browser,device => $_server["http_user_agent"]; trick

4) current page user on => can stored in $_session variable , can kept updating every time user goes other page , store in database

5) useractions => depends on actions want capture , same can updated in database well.


Comments