Event tracker for web applications