mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
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:
parent
e1add75eee
commit
b43a3a6861
1 changed files with 0 additions and 16 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue