How to log user selections for search view

We have several search views that our customers can access with a login - we would like to track what our customers/users are searching for and which filters they are applying, which results they are clicking at etc. The user activity we want to track is not tied to the user adding a new record or updating an existing record - they solely "view" and search through/filter the data they have access to. The app is up and running and works well with user roles etc. Is there a way using Javascript / jquery to log this to an Object?