Add client side error logging to google analytics