pageTracker、_gaq両方対応 未検証注意 timeを送ると全部のログがバラバラに扱われて統計処理できないのでやめたほうがいい (function () { window.onerror = function self (msg, url, line) { var message = [ 'msg=' + E(msg) , 'url=' + E(url) , 'line=' + line , 'caller=' + E(String.prototype.slice.call(self.caller, 0, 200)) ].join('&'); throw_message(message); }; window.onerror.error_message = []; function E (s) { return encodeURIComponent(s) }; jQuery(fu
![JSのエラーをGoogle Analyticsへ送る例 - jsdo.it - Share JavaScript, HTML5 and CSS](https://cdn-ak-scissors.b.st-hatena.com/image/square/5f878cbf0aff4277600ce8d8680b8e7079f19fc0/height=288;version=1;width=512/http%3A%2F%2Fjsdo-static-contents.s3.amazonaws.com%2Fimages%2Fcapture%2Fd%2FQ%2Fo%2FdQoR.jpg%3Ft%3D1310968098)