In this paper, we propose a general framework to track and collect user interactions with dynamic webpages. Using the AJAX, PHP, and MySQL technologies, we implement and realize the client-side-scripting framework to collect client paradata in a seamlessly manner. Being stored in a persistent storage at the server, the data were then structured and analyzed to understand the user behavior. We exploited the framework by applying it to two online systems: E-Survey and E-Commerce web applications. In the E-Survey system, we collected student interactions while filling in an online feedback form. We then used the collected data to model the user behavior. With the resultant model, we can infer whether a student is mindful and conscious while answering the feedback questions. In the E-Commerce system, we collected user interactions with a products page. Using a generated classifier, we can predict a user selection based on his or her navigation pattern on the page.