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

[web] remove google analytics for editor errors

GitOrigin-RevId: cac318316780e84cd8d076624a4e3f39b7cf2725
This commit is contained in:
Brian Gough 2022-01-26 10:26:45 +00:00 committed by Copybot
parent e1add75eee
commit b43a3a6861

View file

@ -701,22 +701,6 @@ export default Document = (function () {
sl_console.log('ignoring error, will wait to join project') sl_console.log('ignoring error, will wait to join project')
return 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) { if (this.doc != null) {
this.doc.clearInflightAndPendingOps() this.doc.clearInflightAndPendingOps()
} }