Track JavaScript errors on Google Analytics