I am creating a record system for my site which will track users and how they interact with my site's pages. This system will record button clicks, page view times, and the method used to navigate away from a page (among other things.) I an considering one of two options:
- create a log file and append a string to it for each action.
- create a database table and save entries based on user interaction.
Although I am sure that both methods could easily fill my needs, which would be better in the long run. Other considerations:
- General page viewing will never cause this data to be read (only added to it.)
- Old Data should be archived, but still accessible.
- Data will be viewed and searched via web app