Explorar o código

Merge pull request #6486 from overleaf/bg-remove-google-analytics-from-errors

[web] remove google analytics for editor errors

GitOrigin-RevId: cac318316780e84cd8d076624a4e3f39b7cf2725
Brian Gough %!s(int64=4) %!d(string=hai) anos
pai
achega
b43a3a6861
Modificáronse 1 ficheiros con 0 adicións e 16 borrados
  1. 0 16
      services/web/frontend/js/ide/editor/Document.js

+ 0 - 16
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()
       }