generic module for tracking clicks in a web applications