From b43a3a686124478388c8cba3e3c91d270fdb435b Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Wed, 26 Jan 2022 10:26:45 +0000 Subject: [PATCH] Merge pull request #6486 from overleaf/bg-remove-google-analytics-from-errors [web] remove google analytics for editor errors GitOrigin-RevId: cac318316780e84cd8d076624a4e3f39b7cf2725 --- services/web/frontend/js/ide/editor/Document.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/services/web/frontend/js/ide/editor/Document.js b/services/web/frontend/js/ide/editor/Document.js index bba1f90531..61014ec733 100644 --- a/services/web/frontend/js/ide/editor/Document.js +++ b/services/web/frontend/js/ide/editor/Document.js @@ -701,22 +701,6 @@ export default Document = (function () { sl_console.log('ignoring error, will wait to join project') return } - if (typeof ga === 'function') { - // sanitise the error message before sending (the "delete component" - // error in public/js/libs/sharejs.js includes the some document - // content). - let message = error.message - if (/^Delete component/.test(message)) { - message = 'Delete component does not match deleted text' - } - ga( - 'send', - 'event', - 'error', - 'shareJsError', - `${message} - ${this.ide.socket.socket.transport.name}` - ) - } if (this.doc != null) { this.doc.clearInflightAndPendingOps() }