Handle javascript error events to push Google Analytics Events