From 2d03410c4235848ccbb723ea4b13a5a4ab91e28b Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Tue, 27 Oct 2015 23:28:54 +0000 Subject: [PATCH] removed some editor actions sent to google analytics as we are sending too much data --- services/web/app/views/project/editor.jade | 3 --- .../public/coffee/ide/connection/ConnectionManager.coffee | 4 ---- .../coffee/ide/pdf/controllers/PdfController.coffee | 8 -------- 3 files changed, 15 deletions(-) diff --git a/services/web/app/views/project/editor.jade b/services/web/app/views/project/editor.jade index 2bf5fb9793..37757873a3 100644 --- a/services/web/app/views/project/editor.jade +++ b/services/web/app/views/project/editor.jade @@ -117,9 +117,6 @@ block content }; window.aceFingerprint = "#{fingerprint(jsPath + 'ace/ace.js')}" - script(type='text/javascript'). - ga('send', 'event', 'editor-interaction', 'editor-opened') - - locals.suppressDefaultJs = true - var pdfPath = 'libs/pdfjs-1.0.1040/pdf.worker.js' diff --git a/services/web/public/coffee/ide/connection/ConnectionManager.coffee b/services/web/public/coffee/ide/connection/ConnectionManager.coffee index b33566d208..742aa6550f 100644 --- a/services/web/public/coffee/ide/connection/ConnectionManager.coffee +++ b/services/web/public/coffee/ide/connection/ConnectionManager.coffee @@ -78,10 +78,6 @@ define [], () -> @$scope.$apply () => @$scope.connection.reconnecting = false - setTimeout(=> - ga('send', 'event', 'editor-interaction', 'disconnect') - , 2000) - if !$scope.connection.forced_disconnect and !@userIsInactive @startAutoReconnectCountdown() diff --git a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee index 4a98b949fc..a87ef79060 100644 --- a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee +++ b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee @@ -118,20 +118,12 @@ define [ return path - compileCount = 0 $scope.recompile = (options = {}) -> return if $scope.pdf.compiling $scope.pdf.compiling = true ide.$scope.$broadcast("flush-changes") - if !options.isAutoCompile - compileCount++ - if compileCount == 1 - event_tracking.send('editor-interaction', 'single-compile') - else if compileCount == 3 - event_tracking.send('editor-interaction', 'multi-compile') - options.rootDocOverride_id = getRootDocOverride_id() sendCompileRequest(options)