How to track user behavior with JavaScript (without bloating your site)