I started planning to implement an 'website analytics system' for our Angularjs, Flask(python Framework) based web-reporting portal which is used to view the invoice reports.
When a user visits a website it needs to record the standard info (IP, browser info, website ID, URL, username). It also needs to record duratin of the time user stayed on website and number of reports viewed.
What would be the right apporach to fullfill the above requirement, Please point me the right direction thanks in advance.