From eb22befca2f29cf264fa1399b1939345e0c9a2f6 Mon Sep 17 00:00:00 2001 From: joshvanvliet Date: Wed, 10 Jun 2026 23:46:38 +0200 Subject: [PATCH 1/2] Remove Google Analytics/tracking --- apps/common/Analytics.js | 78 ------------------ apps/documenteditor/embed/index.html | 1 - apps/documenteditor/embed/index_loader.html | 1 - .../embed/js/ApplicationController.js | 8 -- apps/documenteditor/forms/app.js | 7 -- .../app/controller/ApplicationController.js | 12 --- apps/documenteditor/forms/app_dev.js | 7 -- apps/documenteditor/main/app.js | 7 -- .../main/app/controller/DocumentHolderExt.js | 9 --- .../main/app/controller/HeaderFooterTab.js | 3 - .../main/app/controller/LeftMenu.js | 2 - .../main/app/controller/Links.js | 2 - .../main/app/controller/Main.js | 11 --- .../main/app/controller/PageLayout.js | 4 - .../main/app/controller/Toolbar.js | 79 +------------------ apps/documenteditor/main/app_dev.js | 7 -- .../mobile/src/controller/Error.jsx | 2 - .../mobile/src/controller/Main.jsx | 3 - .../mobile/src/store/appOptions.js | 2 - apps/documenteditor/mobile/src/view/app.jsx | 2 - apps/pdfeditor/main/app.js | 7 -- .../main/app/controller/DocumentHolderExt.js | 27 ------- apps/pdfeditor/main/app/controller/InsTab.js | 13 --- .../pdfeditor/main/app/controller/LeftMenu.js | 2 - apps/pdfeditor/main/app/controller/Main.js | 11 --- apps/pdfeditor/main/app/controller/Toolbar.js | 44 ----------- apps/pdfeditor/main/app_dev.js | 7 -- apps/presentationeditor/embed/index.html | 1 - .../embed/index.html.opensource | 1 - .../embed/index_loader.html | 1 - .../embed/js/ApplicationController.js | 7 -- apps/presentationeditor/main/app.js | 7 -- .../main/app/controller/DocumentHolderExt.js | 35 -------- .../main/app/controller/LeftMenu.js | 2 - .../main/app/controller/Main.js | 11 --- .../main/app/controller/SlideMasterTab.js | 1 - .../main/app/controller/Toolbar.js | 61 +------------- .../main/app/controller/Viewport.js | 1 - apps/presentationeditor/main/app_dev.js | 7 -- .../mobile/src/controller/Error.jsx | 2 - .../mobile/src/controller/Main.jsx | 3 - .../mobile/src/page/app.jsx | 2 - .../mobile/src/store/appOptions.js | 2 - apps/spreadsheeteditor/embed/index.html | 1 - .../spreadsheeteditor/embed/index_loader.html | 1 - .../embed/js/ApplicationController.js | 7 -- apps/spreadsheeteditor/main/app.js | 7 -- .../main/app/controller/DocumentHolderExt.js | 35 +------- .../main/app/controller/LeftMenu.js | 2 - .../main/app/controller/Main.js | 10 --- .../main/app/controller/Print.js | 2 - .../main/app/controller/Toolbar.js | 79 +------------------ apps/spreadsheeteditor/main/app_dev.js | 7 -- .../mobile/src/controller/Error.jsx | 2 - .../mobile/src/controller/Main.jsx | 7 -- .../spreadsheeteditor/mobile/src/page/app.jsx | 2 - .../mobile/src/store/appOptions.js | 2 - apps/visioeditor/embed/index.html | 1 - apps/visioeditor/embed/index_loader.html | 1 - .../embed/js/ApplicationController.js | 11 --- apps/visioeditor/main/app.js | 7 -- .../main/app/controller/LeftMenu.js | 2 - apps/visioeditor/main/app/controller/Main.js | 11 --- .../main/app/controller/Toolbar.js | 2 - apps/visioeditor/main/app_dev.js | 7 -- .../mobile/src/controller/Error.jsx | 2 - .../mobile/src/controller/Main.jsx | 3 - apps/visioeditor/mobile/src/page/app.jsx | 2 - .../mobile/src/store/appOptions.js | 2 - 69 files changed, 4 insertions(+), 713 deletions(-) delete mode 100644 apps/common/Analytics.js diff --git a/apps/common/Analytics.js b/apps/common/Analytics.js deleted file mode 100644 index bd15d6c156..0000000000 --- a/apps/common/Analytics.js +++ /dev/null @@ -1,78 +0,0 @@ -/* - * (c) Copyright Ascensio System SIA 2010-2024 - * - * This program is a free software product. You can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License (AGPL) - * version 3 as published by the Free Software Foundation. In accordance with - * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect - * that Ascensio System SIA expressly excludes the warranty of non-infringement - * of any third-party rights. - * - * This program is distributed WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For - * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html - * - * The interactive user interfaces in modified source and object code versions - * of the Program must display Appropriate Legal Notices, as required under - * Section 5 of the GNU AGPL version 3. - * - * All the Product's GUI elements, including illustrations and icon sets, as - * well as technical writing content are licensed under the terms of the - * Creative Commons Attribution-ShareAlike 4.0 International. See the License - * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode - * - */ -if (window.Common === undefined) - window.Common = {}; - -Common.component = Common.component || {}; - - Common.Analytics = Common.component.Analytics = new(function() { - var _category; - - return { - initialize: function(id, category) { - - if (typeof id === 'undefined') - throw 'Analytics: invalid id.'; - - if (typeof category === 'undefined' || Object.prototype.toString.apply(category) !== '[object String]') - throw 'Analytics: invalid category type.'; - - _category = category; - - $('head').append( - '' - ); - }, - - trackEvent: function(action, label, value) { - - if (typeof action !== 'undefined' && Object.prototype.toString.apply(action) !== '[object String]') - throw 'Analytics: invalid action type.'; - - if (typeof label !== 'undefined' && Object.prototype.toString.apply(label) !== '[object String]') - throw 'Analytics: invalid label type.'; - - if (typeof value !== 'undefined' && !(Object.prototype.toString.apply(value) === '[object Number]' && isFinite(value))) - throw 'Analytics: invalid value type.'; - - if (typeof _gaq === 'undefined') - return; - - if (_category === 'undefined') - throw 'Analytics is not initialized.'; - - _gaq.push(['_trackEvent', _category, action, label, value]); - } - } - })(); diff --git a/apps/documenteditor/embed/index.html b/apps/documenteditor/embed/index.html index cc6b269050..73ed147e8d 100644 --- a/apps/documenteditor/embed/index.html +++ b/apps/documenteditor/embed/index.html @@ -251,7 +251,6 @@ - diff --git a/apps/documenteditor/embed/index_loader.html b/apps/documenteditor/embed/index_loader.html index 347eda1472..1e8ec1ec80 100644 --- a/apps/documenteditor/embed/index_loader.html +++ b/apps/documenteditor/embed/index_loader.html @@ -333,7 +333,6 @@ - diff --git a/apps/documenteditor/embed/js/ApplicationController.js b/apps/documenteditor/embed/js/ApplicationController.js index 6cb89457f0..55cb07bf32 100644 --- a/apps/documenteditor/embed/js/ApplicationController.js +++ b/apps/documenteditor/embed/js/ApplicationController.js @@ -46,7 +46,6 @@ DE.ApplicationController = new(function(){ // Initialize analytics // ------------------------- -// Common.Analytics.initialize('UA-12442749-13', 'Embedded Document Editor'); // Check browser @@ -157,7 +156,6 @@ DE.ApplicationController = new(function(){ api.asc_getEditorPermissions(config.licenseUrl, config.customerId); api.asc_enableKeyEvents(true); - Common.Analytics.trackEvent('Load', 'Start'); } embedConfig.docTitle = docConfig.title; @@ -520,14 +518,12 @@ DE.ApplicationController = new(function(){ common.utils.openLink(embedConfig.saveUrl); } - Common.Analytics.trackEvent('Save'); }); DE.ApplicationView.tools.get('#idt-print') .on('click', function(){ var printCallback = function() { api.asc_Print(new Asc.asc_CDownloadOptions(null, $.browser.chrome || $.browser.safari || $.browser.opera || $.browser.mozilla && $.browser.versionNumber>86)); - Common.Analytics.trackEvent('Print'); }; var submitPassword = function(val) { @@ -566,7 +562,6 @@ DE.ApplicationController = new(function(){ var downloadAs = function(format){ api.asc_DownloadAs(new Asc.asc_CDownloadOptions(format)); - Common.Analytics.trackEvent('Save'); }; DE.ApplicationView.tools.get('#idt-download-docx') @@ -677,7 +672,6 @@ DE.ApplicationController = new(function(){ } Common.Gateway.documentReady(); - Common.Analytics.trackEvent('Load', 'Complete'); requireUserAction = false; } @@ -961,7 +955,6 @@ DE.ApplicationController = new(function(){ Common.Gateway.reportWarning(id, message); } - Common.Analytics.trackEvent('Internal Error', id.toString()); } function onExternalMessage(error) { @@ -971,7 +964,6 @@ DE.ApplicationController = new(function(){ $('#id-error-mask-text').text(error.msg); $('#id-error-mask').css('display', 'block'); - Common.Analytics.trackEvent('External Error'); } } diff --git a/apps/documenteditor/forms/app.js b/apps/documenteditor/forms/app.js index ea873e0fb7..74dea8d01b 100644 --- a/apps/documenteditor/forms/app.js +++ b/apps/documenteditor/forms/app.js @@ -46,7 +46,6 @@ require.config({ keymaster : 'common/main/lib/core/keymaster', tip : 'common/main/lib/util/Tip', localstorage : 'common/main/lib/util/LocalStorage', - analytics : 'common/Analytics', gateway : 'common/Gateway', locale : 'common/locale', irregularstack : 'common/IrregularStack' @@ -91,11 +90,6 @@ require.config({ 'jquery' ] }, - analytics: { - deps: [ - 'jquery' - ] - } } }); @@ -105,7 +99,6 @@ require([ 'underscore', 'core', 'api', - 'analytics', 'gateway', 'locale' ], function (Sdk, Backbone, _, Core) { diff --git a/apps/documenteditor/forms/app/controller/ApplicationController.js b/apps/documenteditor/forms/app/controller/ApplicationController.js index bd56583a8e..d168288ed6 100644 --- a/apps/documenteditor/forms/app/controller/ApplicationController.js +++ b/apps/documenteditor/forms/app/controller/ApplicationController.js @@ -423,8 +423,6 @@ define([ if (!Common.Utils.ModalWindow.isVisible() || $('.asc-window.modal.alert[data-value="' + id + '"]').length<1) Common.UI.alert(config).$window.attr('data-value', id); - - (id!==undefined) && Common.component.Analytics.trackEvent('Internal Error', id.toString()); }, hidePreloader: function() { @@ -533,8 +531,6 @@ define([ if (msg && msg.msg) { msg.msg = (msg.msg).toString(); this.showTips([msg.msg.charAt(0).toUpperCase() + msg.msg.substring(1)]); - - Common.component.Analytics.trackEvent('External Error'); } }, @@ -627,8 +623,6 @@ define([ this.api.asc_setDocInfo(docInfo); this.api.asc_getEditorPermissions(this.editorConfig.licenseUrl, this.editorConfig.customerId); this.api.asc_enableKeyEvents(true); - - Common.Analytics.trackEvent('Load', 'Start'); }, onRunAutostartMacroses: function() { @@ -1164,7 +1158,6 @@ define([ if (this.api) this.api.asc_Print(new Asc.asc_CDownloadOptions(null, Common.Utils.isChrome || Common.Utils.isOpera || Common.Utils.isGecko && Common.Utils.firefoxVersion>86)); // if isChrome or isOpera == true use asc_onPrintUrl event - Common.component.Analytics.trackEvent('Print'); }, onPrintUrl: function(url) { @@ -1677,7 +1670,6 @@ define([ this.attachUIEvents(); Common.Gateway.documentReady(); - Common.Analytics.trackEvent('Load', 'Complete'); Common.NotificationCenter.trigger('document:ready'); Common.UI.TooltipManager.showTip('showFillStatus'); requireUserAction = false; @@ -1703,11 +1695,9 @@ define([ } else if (this.api && this.appOptions.canPrint){ this.api.asc_Print(new Asc.asc_CDownloadOptions(null, Common.Utils.isChrome || Common.Utils.isOpera || Common.Utils.isGecko && Common.Utils.firefoxVersion>86)); // if isChrome or isOpera == true use asc_onPrintUrl event } - Common.Analytics.trackEvent('Save'); break; case 'print': this.api.asc_Print(new Asc.asc_CDownloadOptions(null, Common.Utils.isChrome || Common.Utils.isOpera || Common.Utils.isGecko && Common.Utils.firefoxVersion>86)); // if isChrome or isOpera == true use asc_onPrintUrl event - Common.Analytics.trackEvent('Print'); break; case 'close': if (!Common.Controllers.Desktop.process('goback') && @@ -1726,11 +1716,9 @@ define([ break; case 'download-docx': this.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.DOCX)); - Common.Analytics.trackEvent('Save'); break; case 'download-pdf': this.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.PDF)); - Common.Analytics.trackEvent('Save'); break; case 'share': (new Common.Views.ShareDialog({ diff --git a/apps/documenteditor/forms/app_dev.js b/apps/documenteditor/forms/app_dev.js index 107b20bcf4..8ec4138cce 100644 --- a/apps/documenteditor/forms/app_dev.js +++ b/apps/documenteditor/forms/app_dev.js @@ -44,7 +44,6 @@ require.config({ keymaster : 'common/main/lib/core/keymaster', tip : 'common/main/lib/util/Tip', localstorage : 'common/main/lib/util/LocalStorage', - analytics : 'common/Analytics', gateway : 'common/Gateway', locale : 'common/locale', irregularstack : 'common/IrregularStack' @@ -80,11 +79,6 @@ require.config({ 'jquery' ] }, - analytics: { - deps: [ - 'jquery' - ] - } } }); @@ -93,7 +87,6 @@ require([ 'underscore', 'core', 'api', - 'analytics', 'gateway', 'locale', 'socketio', diff --git a/apps/documenteditor/main/app.js b/apps/documenteditor/main/app.js index 1262c7a698..03ee105feb 100644 --- a/apps/documenteditor/main/app.js +++ b/apps/documenteditor/main/app.js @@ -52,7 +52,6 @@ require.config({ keymaster : 'common/main/lib/core/keymaster', tip : 'common/main/lib/util/Tip', localstorage : 'common/main/lib/util/LocalStorage', - analytics : 'common/Analytics', gateway : 'common/Gateway', locale : 'common/locale', irregularstack : 'common/IrregularStack' @@ -96,11 +95,6 @@ require.config({ 'jquery' ] }, - analytics: { - deps: [ - 'jquery' - ] - } } }); @@ -109,7 +103,6 @@ require([ 'backbone', 'underscore', 'core', - 'analytics', 'gateway', 'locale' ], function (Sdk, Backbone, _, Core) { diff --git a/apps/documenteditor/main/app/controller/DocumentHolderExt.js b/apps/documenteditor/main/app/controller/DocumentHolderExt.js index e7f0c64632..55862ab96a 100644 --- a/apps/documenteditor/main/app/controller/DocumentHolderExt.js +++ b/apps/documenteditor/main/app/controller/DocumentHolderExt.js @@ -546,7 +546,6 @@ define([], function () { win.setSettings(props); } } - Common.component.Analytics.trackEvent('DocumentHolder', 'Add Hyperlink'); } }; @@ -2014,8 +2013,6 @@ define([], function () { win.show(); win.setSettings(item.hyperProps.value); - - Common.component.Analytics.trackEvent('DocumentHolder', 'Add Hyperlink'); } }; @@ -2200,7 +2197,6 @@ define([], function () { opts.asc_setAdvancedOptions(printopt); this.api.asc_Print(opts); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Print Selection'); } }; @@ -2456,13 +2452,10 @@ define([], function () { value = (alignto==1) ? Asc.c_oAscObjectsAlignType.Page : ((me.api.asc_getSelectedDrawingObjectsCount()<2 && !alignto || alignto==2) ? Asc.c_oAscObjectsAlignType.Margin : Asc.c_oAscObjectsAlignType.Selected); if (item.value < 6) { me.api.put_ShapesAlign(item.value, value); - Common.component.Analytics.trackEvent('DocumentHolder', 'Shape Align'); } else if (item.value == 6) { me.api.DistributeHorizontally(value); - Common.component.Analytics.trackEvent('DocumentHolder', 'Distribute Horizontally'); } else if (item.value == 7){ me.api.DistributeVertically(value); - Common.component.Analytics.trackEvent('DocumentHolder', 'Distribute Vertically'); } } me.editComplete(); @@ -2472,7 +2465,6 @@ define([], function () { var me = this; if (item && item.value) { me.api.asc_mergeSelectedShapes(item.value); - Common.component.Analytics.trackEvent('DocumentHolder', 'Shapes Merge'); } me.editComplete(); }; @@ -2640,7 +2632,6 @@ define([], function () { if (me.api) { me.api.SplitCell(value.columns, value.rows); } - Common.component.Analytics.trackEvent('DocumentHolder', 'Table'); } me.editComplete(); } diff --git a/apps/documenteditor/main/app/controller/HeaderFooterTab.js b/apps/documenteditor/main/app/controller/HeaderFooterTab.js index 1fc6d81d72..59b35eec39 100644 --- a/apps/documenteditor/main/app/controller/HeaderFooterTab.js +++ b/apps/documenteditor/main/app/controller/HeaderFooterTab.js @@ -86,7 +86,6 @@ define([ setTimeout(function() {me.api.asc_addImage();}, 1); Common.NotificationCenter.trigger('edit:complete', me.view); - // Common.component.Analytics.trackEvent('ToolBar', 'Image'); } else if (item.value === 'url') { (new Common.Views.ImageFromUrlDialog({ handler: function(result, value) { @@ -96,8 +95,6 @@ define([ if (!_.isEmpty(checkUrl)) { me.view.fireEvent('insertimage'); me.api.AddImageUrl([checkUrl]); - - // Common.component.Analytics.trackEvent('ToolBar', 'Image'); } } diff --git a/apps/documenteditor/main/app/controller/LeftMenu.js b/apps/documenteditor/main/app/controller/LeftMenu.js index 689657f1fb..e1b458ffcf 100644 --- a/apps/documenteditor/main/app/controller/LeftMenu.js +++ b/apps/documenteditor/main/app/controller/LeftMenu.js @@ -597,8 +597,6 @@ define([ var recentDocPage = window.open(url); if (recentDocPage) recentDocPage.focus(); - - Common.component.Analytics.trackEvent('Open Recent'); }, clickToolbarSettings: function(obj) { diff --git a/apps/documenteditor/main/app/controller/Links.js b/apps/documenteditor/main/app/controller/Links.js index 01824ee736..4761476008 100644 --- a/apps/documenteditor/main/app/controller/Links.js +++ b/apps/documenteditor/main/app/controller/Links.js @@ -248,8 +248,6 @@ define([ } } } - - Common.component.Analytics.trackEvent('ToolBar', 'Add Hyperlink'); }, onTableContents: function(type, currentTOC){ diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 6cf5f9e967..552c265aba 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -449,7 +449,6 @@ define([ this.appOptions.fileChoiceUrl = this.editorConfig.fileChoiceUrl; this.appOptions.mergeFolderUrl = this.editorConfig.mergeFolderUrl; this.appOptions.saveAsUrl = this.editorConfig.saveAsUrl; - this.appOptions.canAnalytics = false; this.appOptions.canPlugins = false; this.appOptions.canMakeActionLink = this.editorConfig.canMakeActionLink; this.appOptions.canRequestUsers = this.editorConfig.canRequestUsers; @@ -1533,9 +1532,6 @@ define([ $('.toolbar').prepend(Common.Utils.String.format('
', dummyClass)); setTimeout(function() { $(Common.Utils.String.format('.toolbar .lazy-{0}', dummyClass)).remove(); }, 10); - if (this.appOptions.canAnalytics && false) - Common.component.Analytics.initialize('UA-12442749-13', 'Document Editor'); - Common.Gateway.on('applyeditrights', _.bind(me.onApplyEditRights, me)); Common.Gateway.on('processrightschange', _.bind(me.onProcessRightsChange, me)); Common.Gateway.on('processmouse', _.bind(me.onProcessMouse, me)); @@ -1688,7 +1684,6 @@ define([ this.permissions.edit = this.permissions.review = false; this.appOptions.permissionsLicense = licType; - this.appOptions.canAnalytics = params.asc_getIsAnalyticsEnable(); this.appOptions.canLicense = (licType === Asc.c_oLicenseResult.Success || licType === Asc.c_oLicenseResult.SuccessLimit); this.appOptions.isLightVersion = params.asc_getIsLight(); /** coauthoring begin **/ @@ -2120,8 +2115,6 @@ define([ if (msg && msg.msg) { msg.msg = (msg.msg).toString(); this.showTips([msg.msg.charAt(0).toUpperCase() + msg.msg.substring(1)], options); - - Common.component.Analytics.trackEvent('External Error'); } }, @@ -2461,8 +2454,6 @@ define([ if (!Common.Utils.ModalWindow.isVisible() || $('.asc-window.modal.alert[data-value="' + id + '"]').length<1) Common.UI.alert(config).$window.attr('data-value', id); - - (id!==undefined) && Common.component.Analytics.trackEvent('Internal Error', id.toString()); }, onCoAuthoringDisconnect: function() { @@ -3096,7 +3087,6 @@ define([ onPrint: function() { if (!this.appOptions.canPrint || Common.Utils.ModalWindow.isVisible()) return; Common.NotificationCenter.trigger('file:print'); - Common.component.Analytics.trackEvent('Print'); }, onPrintUrl: function(url) { @@ -3140,7 +3130,6 @@ define([ var opts = new Asc.asc_CDownloadOptions(); opts.asc_setAdvancedOptions(printopt); me.api.asc_Print(opts); - Common.component.Analytics.trackEvent('Print'); }; if (value) { diff --git a/apps/documenteditor/main/app/controller/PageLayout.js b/apps/documenteditor/main/app/controller/PageLayout.js index ea13f85931..78eb60aa6f 100644 --- a/apps/documenteditor/main/app/controller/PageLayout.js +++ b/apps/documenteditor/main/app/controller/PageLayout.js @@ -208,13 +208,10 @@ define([ var value = this.toolbar.mniAlignToPage.isChecked() ? Asc.c_oAscObjectsAlignType.Page : (this.toolbar.mniAlignToMargin.isChecked() ? Asc.c_oAscObjectsAlignType.Margin : Asc.c_oAscObjectsAlignType.Selected); if (item.value>-1 && item.value < 6) { this.api.put_ShapesAlign(item.value, value); - Common.component.Analytics.trackEvent('ToolBar', 'Shape Align'); } else if (item.value == 6) { this.api.DistributeHorizontally(value); - Common.component.Analytics.trackEvent('ToolBar', 'Distribute'); } else if (item.value == 7){ this.api.DistributeVertically(value); - Common.component.Analytics.trackEvent('ToolBar', 'Distribute'); } this.toolbar.fireEvent('editcomplete', this.toolbar); }, @@ -228,7 +225,6 @@ define([ onClickMenuShapesMerge: function (menu, item, e) { if (item && item.value) { this.api.asc_mergeSelectedShapes(item.value); - Common.component.Analytics.trackEvent('ToolBar', 'Shapes Merge'); } this.toolbar.fireEvent('editcomplete', this.toolbar); }, diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index 1c69869ea4..d43f029d33 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -1134,7 +1134,6 @@ define([ this.api.OpenNewDocument(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'New Document'); }, onOpenDocument: function(btn, e) { @@ -1142,7 +1141,6 @@ define([ this.api.LoadDocumentFromDisk(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Open Document'); }, onPrint: function(e) { @@ -1153,9 +1151,6 @@ define([ var _main = this.getApplication().getController('Main'); _main.onPrintQuick(); } - Common.component.Analytics.trackEvent('Print'); - Common.component.Analytics.trackEvent('ToolBar', 'Print'); - }, onPrintMenu: function (btn, e){ @@ -1231,9 +1226,6 @@ define([ toolbar.btnSave && toolbar.lockToolbar(Common.enumLock.cantSave, !mode.forcesave && !mode.canSaveDocumentToBinary && mode.canSaveToFile || !mode.showSaveButton, {array: [toolbar.btnSave]}); Common.NotificationCenter.trigger('edit:complete', toolbar); - - Common.component.Analytics.trackEvent('Save'); - Common.component.Analytics.trackEvent('ToolBar', 'Save'); }, onBtnChangeState: function(prop) { @@ -1248,8 +1240,6 @@ define([ this.api.Undo(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - - Common.component.Analytics.trackEvent('ToolBar', 'Undo'); }, onRedo: function(btn, e) { @@ -1257,8 +1247,6 @@ define([ this.api.Redo(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - - Common.component.Analytics.trackEvent('ToolBar', 'Redo'); }, onCopyPaste: function(type, e) { @@ -1274,8 +1262,7 @@ define([ } })).show(); } - } else - Common.component.Analytics.trackEvent('ToolBar', 'Copy Warning'); + } } Common.NotificationCenter.trigger('edit:complete', me.toolbar); }, @@ -1285,7 +1272,6 @@ define([ this.api.asc_EditSelectAll(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Select All'); }, onReplace: function(e) { @@ -1297,7 +1283,6 @@ define([ this.api.FontSizeIn(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Font Size'); }, onDecrease: function(e) { @@ -1305,7 +1290,6 @@ define([ this.api.FontSizeOut(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Font Size'); }, onBold: function(btn, e) { @@ -1314,7 +1298,6 @@ define([ this.api.put_TextPrBold(btn.pressed); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Bold'); }, onItalic: function(btn, e) { @@ -1323,7 +1306,6 @@ define([ this.api.put_TextPrItalic(btn.pressed); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Italic'); }, onUnderline: function(btn, e) { @@ -1332,7 +1314,6 @@ define([ this.api.put_TextPrUnderline(btn.pressed); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Underline'); }, onStrikeout: function(btn, e) { @@ -1341,7 +1322,6 @@ define([ this.api.put_TextPrStrikeout(btn.pressed); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Strikeout'); }, onSuperscript: function(btn, e) { @@ -1351,7 +1331,6 @@ define([ this.api.put_TextPrBaseline(btn.pressed ? Asc.vertalign_SuperScript : Asc.vertalign_Baseline); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Superscript'); } }, @@ -1362,7 +1341,6 @@ define([ this.api.put_TextPrBaseline(btn.pressed ? Asc.vertalign_SubScript : Asc.vertalign_Baseline); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Subscript'); } }, @@ -1371,7 +1349,6 @@ define([ this.api.DecreaseIndent(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Indent'); }, onIncOffset: function(btn, e) { @@ -1379,7 +1356,6 @@ define([ this.api.IncreaseIndent(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Indent'); }, onHorizontalAlign: function(type, btn, e) { @@ -1395,7 +1371,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Align'); }, @@ -1434,7 +1409,6 @@ define([ callback: _.bind(function(btn) { if (btn == 'yes') { this.api.put_TextPrFontName(record.name); - Common.component.Analytics.trackEvent('ToolBar', 'Font Name'); } else { this.toolbar.cmbFontName.setValue(this.api.get_TextProps().get_TextPr().get_FontFamily().get_Name()); } @@ -1443,7 +1417,6 @@ define([ }); } else { this.api.put_TextPrFontName(record.name); - Common.component.Analytics.trackEvent('ToolBar', 'Font Name'); } } Common.NotificationCenter.trigger('edit:complete', this.toolbar); @@ -1465,7 +1438,6 @@ define([ this.api.put_TextPrFontSize(this._state.type_fontsize === 'string' ? parseFloat(record.value) : record.value); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Font Size'); }, onFontSizeChanged: function(before, combo, record, e) { @@ -1646,7 +1618,6 @@ define([ } } - Common.component.Analytics.trackEvent('ToolBar', 'List Type'); Common.NotificationCenter.trigger('edit:complete', this.toolbar); }, @@ -1781,7 +1752,6 @@ define([ if (this.api) this.api.put_PrLineSpacing(c_paragraphLinerule.LINERULE_AUTO, item.value); - Common.component.Analytics.trackEvent('ToolBar', 'Line Spacing'); Common.NotificationCenter.trigger('edit:complete', this.toolbar); } }, @@ -1853,7 +1823,6 @@ define([ me.api.put_ShowParaMarks(state); Common.NotificationCenter.trigger('edit:complete', me); - Common.component.Analytics.trackEvent('ToolBar', 'Hidden Characters'); } else if (item.value === 'table') { Common.localStorage.setItem("de-show-tableline", state); me.api && me.api.put_ShowTableEmptyLine(state); @@ -1865,8 +1834,6 @@ define([ var me = this; if (state) { me.toolbar.mnuNonPrinting.items[0].setChecked(true, true); - - Common.component.Analytics.trackEvent('ToolBar', 'Hidden Characters'); } else { me.toolbar.mnuNonPrinting.items[0].setChecked(false, true); } @@ -1881,14 +1848,11 @@ define([ onClickPageBreak: function(value, e) { if ( value === 'column' ) { this.api.put_AddColumnBreak(); - Common.component.Analytics.trackEvent('ToolBar', 'Column Break'); } else if ( value == 'page' ) { this.api.put_AddPageBreak(); - Common.component.Analytics.trackEvent('ToolBar', 'Page Break'); } else { this.api.add_SectionBreak( value ); - Common.component.Analytics.trackEvent('ToolBar', 'Section Break'); } Common.NotificationCenter.trigger('edit:complete', this.toolbar); @@ -1901,7 +1865,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Table'); }, onInsertTableShow: function(menu) { @@ -1921,7 +1884,6 @@ define([ me.api.put_Table(value.columns, value.rows); } - Common.component.Analytics.trackEvent('ToolBar', 'Table'); } Common.NotificationCenter.trigger('edit:complete', me.toolbar); } @@ -1972,7 +1934,6 @@ define([ if (data && data._urls && (!data.c || data.c=='add')) { this.toolbar.fireEvent('insertimage', this.toolbar); (data._urls.length>0) && this.api.AddImageUrl(data._urls, undefined, data.token);// for loading from storage - Common.component.Analytics.trackEvent('ToolBar', 'Image'); } }, @@ -2050,7 +2011,6 @@ define([ this.toolbar.btnInsertShape.toggle(false, true); Common.NotificationCenter.trigger('edit:complete', this.toolbar, this.toolbar.btnInsertShape); - Common.component.Analytics.trackEvent('ToolBar', 'Add Text'); }, onInsertShapeHide: function(btn, e) { @@ -2069,7 +2029,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Page Orientation'); }, onClearStyleClick: function(btn, e) { @@ -2113,7 +2072,6 @@ define([ win.setSettings(me.api.asc_GetSectionProps()); } - Common.component.Analytics.trackEvent('ToolBar', 'Page Size'); } Common.NotificationCenter.trigger('edit:complete', this.toolbar); @@ -2156,8 +2114,6 @@ define([ win.show(); win.setSettings(me.api.asc_GetSectionProps()); } - - Common.component.Analytics.trackEvent('ToolBar', 'Page Margins'); } Common.NotificationCenter.trigger('edit:complete', this.toolbar); @@ -2284,8 +2240,6 @@ define([ onColorSchemaClick: function(menu, item) { if (this.api) { this.api.asc_ChangeColorSchemeByIdx(item.value); - - Common.component.Analytics.trackEvent('ToolBar', 'Color Scheme'); } Common.NotificationCenter.trigger('edit:complete', this.toolbar); @@ -2329,7 +2283,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Drop Cap'); }, onDropCap: function(v) { @@ -2433,7 +2386,6 @@ define([ } else { this.api.asc_RemoveContentControlWrapper(id); - Common.component.Analytics.trackEvent('ToolBar', 'Remove Content Control'); } } } @@ -2465,8 +2417,6 @@ define([ props.put_FormPr(oFormPr); this.api.asc_AddContentControlTextForm(props); } - - Common.component.Analytics.trackEvent('ToolBar', 'Add Content Control'); } Common.NotificationCenter.trigger('edit:complete', this.toolbar); @@ -2488,8 +2438,6 @@ define([ if (this.api) { this.api.asc_SetGlobalContentControlShowHighlight(true, clr.get_r(), clr.get_g(), clr.get_b()); } - - Common.component.Analytics.trackEvent('ToolBar', 'Content Controls Color'); }, onColumnsSelect: function(menu, item) { @@ -2534,7 +2482,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Insert Columns'); }, onColumnsProps: function(props) { @@ -2610,7 +2557,6 @@ define([ this.toolbar.btnInsertShape.toggle(false, true); Common.NotificationCenter.trigger('edit:complete', this.toolbar, this.toolbar.btnInsertTextArt); - Common.component.Analytics.trackEvent('ToolBar', 'Add Text Art'); } }, @@ -2622,7 +2568,6 @@ define([ this.toolbar.btnEditHeader.menu.hide(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Page Number'); }, onInsertPageCountClick: function(item, e) { @@ -2630,7 +2575,6 @@ define([ this.api.asc_AddPageCount(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Pages Count'); }, onPageNumCurrentPosClick: function(item, e) { @@ -2640,7 +2584,6 @@ define([ if (e.type !== 'click') this.toolbar.btnEditHeader.menu.hide(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Page Number'); }, onBtnBlankPageClick: function(btn) { @@ -2648,7 +2591,6 @@ define([ this.api.asc_AddBlankPage(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Blank Page'); }, onWatermarkSelect: function(menu, item) { @@ -2685,7 +2627,6 @@ define([ })).show(); } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Edit ' + item.value); } }, @@ -2695,7 +2636,6 @@ define([ this.api.put_Style(record.get('title')); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Style'); }, onListStyleBeforeHide: function(item, e) { @@ -2826,8 +2766,6 @@ define([ }); win.show(); } - - Common.component.Analytics.trackEvent('ToolBar', 'Save as Style'); }, onMenuSaveStyle: function(item, e) { @@ -2889,8 +2827,6 @@ define([ this.toolbar.mnuFontColorPicker.currentColor = color; if (this.api) this.api.put_TextColor(color.isAuto ? color.color : Common.Utils.ThemeColor.getRgbColor(color)); - - Common.component.Analytics.trackEvent('ToolBar', 'Text Color'); }, onParagraphColorPickerSelect: function(btn, color) { @@ -2914,15 +2850,11 @@ define([ onSelectPageColor: function(btn, color) { if (this.api) this.api.asc_putPageColor(Common.Utils.ThemeColor.getRgbColor(color)); - - Common.component.Analytics.trackEvent('ToolBar', 'Page Color'); }, onPageNoFillClick: function(item) { if (this.api && item.checked) this.api.asc_putPageColor(null); - - Common.component.Analytics.trackEvent('ToolBar', 'Page Color'); }, onNewBorderColor: function(picker, color) { @@ -3171,7 +3103,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', me.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Borders'); } }, @@ -3180,7 +3111,6 @@ define([ this.toolbar.btnBorders.options.borderswidth = item.value; Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Border Width'); } }, @@ -3193,7 +3123,6 @@ define([ clr_item.hasClass('selected') && clr_item.removeClass('selected'); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Border Color'); }, onAutoBorderColor: function(e) { @@ -3208,7 +3137,6 @@ define([ !clr_item.hasClass('selected') && clr_item.addClass('selected'); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Border Color'); }, eyedropperStart: function () { @@ -3233,7 +3161,6 @@ define([ onBtnHighlightColor: function(btn) { if (btn.pressed) { this._setMarkerColor(btn.currentColor); - Common.component.Analytics.trackEvent('ToolBar', 'Highlight Color'); } else { this.api.SetMarkerFormat(false); @@ -3354,7 +3281,6 @@ define([ if (e.type !== 'click') me.toolbar.btnInsertShape.menu.hide(); Common.NotificationCenter.trigger('edit:complete', me.toolbar, me.toolbar.btnInsertShape); - Common.component.Analytics.trackEvent('ToolBar', 'Add Shape'); } }); }, @@ -3390,7 +3316,6 @@ define([ if (e.type !== 'click') me.toolbar.btnInsertEquation.menu.hide(); Common.NotificationCenter.trigger('edit:complete', me.toolbar, me.toolbar.btnInsertEquation); - Common.component.Analytics.trackEvent('ToolBar', 'Add Equation'); } }); } @@ -3418,7 +3343,6 @@ define([ onInsertEquationClick: function() { if (this.api && !this._state.in_equation) { this.api.asc_AddMath(); - Common.component.Analytics.trackEvent('ToolBar', 'Add Equation'); } Common.NotificationCenter.trigger('edit:complete', this.toolbar, this.toolbar.btnInsertEquation); }, @@ -3730,7 +3654,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', me.toolbar, me.toolbar.btnHighlightColor); - Common.component.Analytics.trackEvent('ToolBar', 'Highlight Color'); }, onHideMenus: function(e){ diff --git a/apps/documenteditor/main/app_dev.js b/apps/documenteditor/main/app_dev.js index 5780f99292..d414b72202 100644 --- a/apps/documenteditor/main/app_dev.js +++ b/apps/documenteditor/main/app_dev.js @@ -50,7 +50,6 @@ require.config({ keymaster : 'common/main/lib/core/keymaster', tip : 'common/main/lib/util/Tip', localstorage : 'common/main/lib/util/LocalStorage', - analytics : 'common/Analytics', gateway : 'common/Gateway', locale : 'common/locale', irregularstack : 'common/IrregularStack' @@ -86,11 +85,6 @@ require.config({ 'jquery' ] }, - analytics: { - deps: [ - 'jquery' - ] - } } }); @@ -98,7 +92,6 @@ require([ 'backbone', 'underscore', 'core', - 'analytics', 'gateway', 'locale', 'socketio', diff --git a/apps/documenteditor/mobile/src/controller/Error.jsx b/apps/documenteditor/mobile/src/controller/Error.jsx index cbdccdfc79..e6b8e18d72 100644 --- a/apps/documenteditor/mobile/src/controller/Error.jsx +++ b/apps/documenteditor/mobile/src/controller/Error.jsx @@ -329,8 +329,6 @@ const ErrorController = inject('storeAppOptions','storeDocumentInfo')(({storeApp } ] }).open(); - - Common.component.Analytics.trackEvent('Internal Error', id.toString()); }; return null diff --git a/apps/documenteditor/mobile/src/controller/Main.jsx b/apps/documenteditor/mobile/src/controller/Main.jsx index 9a2d6e9a1e..fe34569494 100644 --- a/apps/documenteditor/mobile/src/controller/Main.jsx +++ b/apps/documenteditor/mobile/src/controller/Main.jsx @@ -1459,7 +1459,6 @@ class MainController extends Component { if (this.api) this.api.asc_Print(); - Common.component.Analytics.trackEvent('Print'); } onPrintUrl (url) { @@ -1498,8 +1497,6 @@ class MainController extends Component { text: [msg.msg.charAt(0).toUpperCase() + msg.msg.substring(1)], closeButton: true }).open(); - - Common.component.Analytics.trackEvent('External Error'); } } diff --git a/apps/documenteditor/mobile/src/store/appOptions.js b/apps/documenteditor/mobile/src/store/appOptions.js index 39fc562443..ad9bbab3ce 100644 --- a/apps/documenteditor/mobile/src/store/appOptions.js +++ b/apps/documenteditor/mobile/src/store/appOptions.js @@ -140,7 +140,6 @@ export class storeAppOptions { this.fileChoiceUrl = config.fileChoiceUrl; this.mergeFolderUrl = config.mergeFolderUrl; this.saveAsUrl = config.saveAsUrl; - this.canAnalytics = false; this.canRequestClose = config.canRequestClose; this.canCloseEditor = false; @@ -177,7 +176,6 @@ export class storeAppOptions { if (params.asc_getRights() !== Asc.c_oRights.Edit) permissions.edit = permissions.review = false; this.review = (permissions.review === undefined) ? (permissions.edit !== false) : permissions.review; - this.canAnalytics = params.asc_getIsAnalyticsEnable(); this.canLicense = (licType === Asc.c_oLicenseResult.Success || licType === Asc.c_oLicenseResult.SuccessLimit); this.isLightVersion = params.asc_getIsLight(); this.buildVersion = params.asc_getBuildVersion(); diff --git a/apps/documenteditor/mobile/src/view/app.jsx b/apps/documenteditor/mobile/src/view/app.jsx index 703307573c..46dc41a68b 100644 --- a/apps/documenteditor/mobile/src/view/app.jsx +++ b/apps/documenteditor/mobile/src/view/app.jsx @@ -3,8 +3,6 @@ import React from 'react'; import { App, View } from 'framework7-react'; import { f7ready } from 'framework7-react'; -import '../../../../common/Analytics.js'; - import '../../../../common/Gateway.js'; import '../../../../common/main/lib/util/utils.js'; diff --git a/apps/pdfeditor/main/app.js b/apps/pdfeditor/main/app.js index 37e6302cba..bff5c86086 100644 --- a/apps/pdfeditor/main/app.js +++ b/apps/pdfeditor/main/app.js @@ -52,7 +52,6 @@ require.config({ keymaster : 'common/main/lib/core/keymaster', tip : 'common/main/lib/util/Tip', localstorage : 'common/main/lib/util/LocalStorage', - analytics : 'common/Analytics', gateway : 'common/Gateway', locale : 'common/locale', irregularstack : 'common/IrregularStack' @@ -96,11 +95,6 @@ require.config({ 'jquery' ] }, - analytics: { - deps: [ - 'jquery' - ] - } } }); @@ -109,7 +103,6 @@ require([ 'backbone', 'underscore', 'core', - 'analytics', 'gateway', 'locale' ], function (Sdk, Backbone, _, Core) { diff --git a/apps/pdfeditor/main/app/controller/DocumentHolderExt.js b/apps/pdfeditor/main/app/controller/DocumentHolderExt.js index 48b2f58006..fe49e960b3 100644 --- a/apps/pdfeditor/main/app/controller/DocumentHolderExt.js +++ b/apps/pdfeditor/main/app/controller/DocumentHolderExt.js @@ -1401,7 +1401,6 @@ define([], function () { opts.asc_setAdvancedOptions(printopt); this.api.asc_Print(opts); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Print Selection'); } }; @@ -1949,8 +1948,6 @@ define([], function () { win.show(); win.setSettings(item.hyperProps.value); - - Common.component.Analytics.trackEvent('DocumentHolder', 'Add Hyperlink'); } }; @@ -1981,8 +1978,6 @@ define([], function () { }); win.show(); win.setSettings(item.hyperProps.value); - - Common.component.Analytics.trackEvent('DocumentHolder', 'Edit Hyperlink'); } }; @@ -1992,7 +1987,6 @@ define([], function () { } this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Remove Hyperlink'); }; dh.onInsertImageUrl = function(placeholder, obj, x, y) { @@ -2041,7 +2035,6 @@ define([], function () { if (me.api) { me.api.SplitCell(value.columns, value.rows); } - Common.component.Analytics.trackEvent('DocumentHolder', 'Table Split'); } me.editComplete(); } @@ -2064,7 +2057,6 @@ define([], function () { } this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Table Cell Align'); }; dh.onTableDistRows = function () { @@ -2100,7 +2092,6 @@ define([], function () { } } me.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Table Settings Advanced'); } })).show(); break; @@ -2142,7 +2133,6 @@ define([], function () { } } me.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Image Settings Advanced'); } })).show(); break; @@ -2167,7 +2157,6 @@ define([], function () { } me.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Set Image Original Size'); } }; @@ -2233,7 +2222,6 @@ define([], function () { } } me.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Image Shape Advanced'); } })).show(); break; @@ -2268,7 +2256,6 @@ define([], function () { } } me.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Chart Settings Advanced'); } })).show(); break; @@ -2301,7 +2288,6 @@ define([], function () { } } me.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Image Paragraph Advanced'); } })).show(); break; @@ -2314,37 +2300,31 @@ define([], function () { dh.onGroupImg = function(item) { this.api && this.api.groupShapes(); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Group Image'); }; dh.onUnGroupImg = function(item) { this.api && this.api.unGroupShapes(); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'UnGroup Image'); }; dh.onArrangeFront = function(item) { this.api && this.api.shapes_bringToFront(); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Bring To Front'); }; dh.onArrangeBack = function(item) { this.api && this.api.shapes_bringToBack(); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Bring To Back'); }; dh.onArrangeForward = function(item) { this.api && this.api.shapes_bringForward(); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Send Forward'); }; dh.onArrangeBackward = function(item) { this.api && this.api.shapes_bringBackward(); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Send Backward'); }; dh.onImgShapeAlign = function (menu, item) { @@ -2354,13 +2334,10 @@ define([], function () { value = value ? Asc.c_oAscObjectsAlignType.Page : Asc.c_oAscObjectsAlignType.Selected; if (item.value < 6) { me.api.put_ShapesAlign(item.value, value); - Common.component.Analytics.trackEvent('DocumentHolder', 'Shape Align'); } else if (item.value == 6) { me.api.DistributeHorizontally(value); - Common.component.Analytics.trackEvent('DocumentHolder', 'Distribute Horizontally'); } else if (item.value == 7){ me.api.DistributeVertically(value); - Common.component.Analytics.trackEvent('DocumentHolder', 'Distribute Vertically'); } me.editComplete(); } @@ -2370,7 +2347,6 @@ define([], function () { var me = this; if (item && item.value) { me.api.asc_mergeSelectedShapes(item.value); - Common.component.Analytics.trackEvent('DocumentHolder', 'Shapes Merge'); } me.editComplete(); }; @@ -2392,7 +2368,6 @@ define([], function () { } me.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Text Vertical Align'); }; dh.onParagraphDirection = function(menu, item) { @@ -2403,7 +2378,6 @@ define([], function () { me.api.ShapeApply(properties); } me.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Text Direction'); }; dh.tableSelectText = function(menu, item) { @@ -2549,7 +2523,6 @@ define([], function () { } } } - Common.component.Analytics.trackEvent('DocumentHolder', 'Add Hyperlink'); }; dh.onShowForeignCursorLabel = function(UserId, X, Y, color) { diff --git a/apps/pdfeditor/main/app/controller/InsTab.js b/apps/pdfeditor/main/app/controller/InsTab.js index 9b0e8daf56..2f5529744a 100644 --- a/apps/pdfeditor/main/app/controller/InsTab.js +++ b/apps/pdfeditor/main/app/controller/InsTab.js @@ -371,8 +371,6 @@ define([ win.setSettings(props); } } - - Common.component.Analytics.trackEvent('ToolBar', 'Add Hyperlink'); }, onDialogAddAnnotLink: function(arrIds) { @@ -463,8 +461,6 @@ define([ me.api.put_Table(value.columns, value.rows); } - - Common.component.Analytics.trackEvent('ToolBar', 'Table'); } Common.NotificationCenter.trigger('edit:complete', me.view); } @@ -487,7 +483,6 @@ define([ setTimeout(function() {me.api.asc_addImage();}, 1); Common.NotificationCenter.trigger('edit:complete', this.view); - Common.component.Analytics.trackEvent('ToolBar', 'Image'); } else if (opts === 'url') { (new Common.Views.ImageFromUrlDialog({ handler: function(result, value) { @@ -497,8 +492,6 @@ define([ if (!_.isEmpty(checkUrl)) { me.view.fireEvent('insertimage', me.view); me.api.AddImageUrl([checkUrl]); - - Common.component.Analytics.trackEvent('ToolBar', 'Image'); } else { Common.UI.warning({ msg: this.textEmptyImgUrl @@ -535,7 +528,6 @@ define([ if (data && data._urls && (!data.c || data.c=='add')) { this.view.fireEvent('insertimage', this.view); (data._urls.length>0) && this.api.AddImageUrl(data._urls, undefined, data.token);// for loading from storage - Common.component.Analytics.trackEvent('ToolBar', 'Image'); } }, @@ -593,7 +585,6 @@ define([ this.view.btnsInsertShape.toggle(false, true); Common.NotificationCenter.trigger('edit:complete', this.view); - Common.component.Analytics.trackEvent('ToolBar', 'Add Text'); }, onInsertShape: function (type) { @@ -613,7 +604,6 @@ define([ me.view.btnsInsertText.toggle(false, true); Common.NotificationCenter.trigger('edit:complete', me.view); - Common.component.Analytics.trackEvent('ToolBar', 'Add Shape'); } }, @@ -627,7 +617,6 @@ define([ me.view.btnsInsertShape.toggle(false, true); Common.NotificationCenter.trigger('edit:complete', me.view); - Common.component.Analytics.trackEvent('ToolBar', 'Add Text Art'); }, onEditHeaderClick: function(type, e) { @@ -810,7 +799,6 @@ define([ if (e.type !== 'click') me.view.btnInsertEquation.menu.hide(); Common.NotificationCenter.trigger('edit:complete', me.view, me.view.btnInsertEquation); - Common.component.Analytics.trackEvent('ToolBar', 'Add Equation'); } }); } @@ -838,7 +826,6 @@ define([ onInsertEquationClick: function() { if (this.api) { this.api.asc_AddMath(); - Common.component.Analytics.trackEvent('ToolBar', 'Add Equation'); } Common.NotificationCenter.trigger('edit:complete', this.view, this.view.btnInsertEquation); }, diff --git a/apps/pdfeditor/main/app/controller/LeftMenu.js b/apps/pdfeditor/main/app/controller/LeftMenu.js index 2c793fc3c1..2582fe463f 100644 --- a/apps/pdfeditor/main/app/controller/LeftMenu.js +++ b/apps/pdfeditor/main/app/controller/LeftMenu.js @@ -567,8 +567,6 @@ define([ var recentDocPage = window.open(url); if (recentDocPage) recentDocPage.focus(); - - Common.component.Analytics.trackEvent('Open Recent'); }, clickToolbarSettings: function(obj) { diff --git a/apps/pdfeditor/main/app/controller/Main.js b/apps/pdfeditor/main/app/controller/Main.js index 0ce2fc0651..6c78d7b1da 100644 --- a/apps/pdfeditor/main/app/controller/Main.js +++ b/apps/pdfeditor/main/app/controller/Main.js @@ -396,7 +396,6 @@ define([ this.appOptions.sharingSettingsUrl = this.editorConfig.sharingSettingsUrl; this.appOptions.fileChoiceUrl = this.editorConfig.fileChoiceUrl; this.appOptions.saveAsUrl = this.editorConfig.saveAsUrl; - this.appOptions.canAnalytics = false; this.appOptions.canPlugins = false; this.appOptions.canMakeActionLink = this.editorConfig.canMakeActionLink; this.appOptions.canRequestUsers = this.editorConfig.canRequestUsers; @@ -1159,9 +1158,6 @@ define([ $('.toolbar').prepend(Common.Utils.String.format('
', dummyClass)); setTimeout(function() { $(Common.Utils.String.format('.toolbar .lazy-{0}', dummyClass)).remove(); }, 10); - if (this.appOptions.canAnalytics && false) - Common.component.Analytics.initialize('UA-12442749-13', 'Document Editor'); - Common.Gateway.on('applyeditrights', _.bind(me.onApplyEditRights, me)); Common.Gateway.on('processrightschange', _.bind(me.onProcessRightsChange, me)); Common.Gateway.on('processmouse', _.bind(me.onProcessMouse, me)); @@ -1319,7 +1315,6 @@ define([ this.appOptions.isXpsViewer = /^(?:(djvu|xps|oxps))$/.test(this.document.fileType) || Common.Locale.getDefaultLanguage() === 'ru'; this.appOptions.isForm = !this.appOptions.isXpsViewer && !!window.isPDFForm; this.appOptions.permissionsLicense = licType; - this.appOptions.canAnalytics = params.asc_getIsAnalyticsEnable(); this.appOptions.canLicense = (licType === Asc.c_oLicenseResult.Success || licType === Asc.c_oLicenseResult.SuccessLimit); this.appOptions.isLightVersion = params.asc_getIsLight(); this.appOptions.canCoAuthoring = !this.appOptions.isLightVersion; @@ -1700,8 +1695,6 @@ define([ if (msg && msg.msg) { msg.msg = (msg.msg).toString(); this.showTips([msg.msg.charAt(0).toUpperCase() + msg.msg.substring(1)], options); - - Common.component.Analytics.trackEvent('External Error'); } }, @@ -2000,8 +1993,6 @@ define([ if (!Common.Utils.ModalWindow.isVisible() || $('.asc-window.modal.alert[data-value="' + id + '"]').length<1) Common.UI.alert(config).$window.attr('data-value', id); - - (id!==undefined) && Common.component.Analytics.trackEvent('Internal Error', id.toString()); }, onOpenLinkPdfForm: function(sURI, onAllow, onCancel) { @@ -2545,7 +2536,6 @@ define([ onPrint: function() { if (!this.appOptions.canPrint || Common.Utils.ModalWindow.isVisible()) return; Common.NotificationCenter.trigger('file:print'); - Common.component.Analytics.trackEvent('Print'); }, onPrintUrl: function(url) { @@ -2588,7 +2578,6 @@ define([ var opts = new Asc.asc_CDownloadOptions(); opts.asc_setAdvancedOptions(printopt); me.api.asc_Print(opts); - Common.component.Analytics.trackEvent('Print'); }; if (value) { diff --git a/apps/pdfeditor/main/app/controller/Toolbar.js b/apps/pdfeditor/main/app/controller/Toolbar.js index 9cfe5118d3..dcff43e808 100644 --- a/apps/pdfeditor/main/app/controller/Toolbar.js +++ b/apps/pdfeditor/main/app/controller/Toolbar.js @@ -756,7 +756,6 @@ define([ this.api.OpenNewDocument(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'New Document'); }, onOpenDocument: function(btn, e) { @@ -764,7 +763,6 @@ define([ this.api.LoadDocumentFromDisk(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Open Document'); }, onPrint: function(e) { @@ -775,8 +773,6 @@ define([ var _main = this.getApplication().getController('Main'); _main.onPrintQuick(); } - Common.component.Analytics.trackEvent('Print'); - Common.component.Analytics.trackEvent('ToolBar', 'Print'); }, @@ -855,8 +851,6 @@ define([ this.api.asc_Save(); toolbar.btnSave && toolbar.lockToolbar(Common.enumLock.cantSave, !toolbar.mode.forcesave && toolbar.mode.canSaveToFile && !toolbar.mode.canSaveDocumentToBinary || !toolbar.mode.showSaveButton, {array: [toolbar.btnSave]}); - Common.component.Analytics.trackEvent('Save'); - Common.component.Analytics.trackEvent('ToolBar', 'Save'); Common.NotificationCenter.trigger('edit:complete', toolbar); } }, @@ -904,7 +898,6 @@ define([ this.api.Undo(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Undo'); }, onRedo: function(btn, e) { @@ -913,7 +906,6 @@ define([ Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Redo'); }, onCopyPaste: function(type, e) { @@ -930,7 +922,6 @@ define([ })).show(); } } else - Common.component.Analytics.trackEvent('ToolBar', 'Copy Warning'); } Common.NotificationCenter.trigger('edit:complete', me.toolbar); }, @@ -940,7 +931,6 @@ define([ this.api.asc_EditSelectAll(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Select All'); }, onSelectTool: function (type, btn, state, e) { @@ -1238,7 +1228,6 @@ define([ this.api && this.api.AddFreeTextAnnot(type); Common.NotificationCenter.trigger('edit:complete', this.toolbar, this.toolbar.btnTextComment); - Common.component.Analytics.trackEvent('ToolBar', 'Add Text'); }, onBtnShapeCommentClick: function(btn, e) { @@ -1308,7 +1297,6 @@ define([ $(document.body).off('mouseup', this.binding.checkInsertShapeComment); } Common.NotificationCenter.trigger('edit:complete', this.toolbar, this.toolbar.btnShapeComment); - Common.component.Analytics.trackEvent('ToolBar', 'Add Shape Annotation'); }, onStartAddShapeChanged: function() { @@ -1353,7 +1341,6 @@ define([ this.api && this.api.AddStampAnnot(type); Common.NotificationCenter.trigger('edit:complete', this.toolbar, this.toolbar.btnStamp); - Common.component.Analytics.trackEvent('ToolBar', 'Add Stamp'); }, onStampShowAfter: function(menu) { @@ -2096,7 +2083,6 @@ define([ this.api.FontSizeIn(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Font Size'); }, onDecrease: function(e) { @@ -2104,7 +2090,6 @@ define([ this.api.FontSizeOut(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Font Size'); }, onBold: function(btn, e) { @@ -2113,7 +2098,6 @@ define([ this.api.put_TextPrBold(btn.pressed); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Bold'); }, onItalic: function(btn, e) { @@ -2122,7 +2106,6 @@ define([ this.api.put_TextPrItalic(btn.pressed); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Italic'); }, onTextUnderline: function(btn, e) { @@ -2131,7 +2114,6 @@ define([ this.api.put_TextPrUnderline(btn.pressed); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Underline'); }, onTextStrikeout: function(btn, e) { @@ -2140,7 +2122,6 @@ define([ this.api.put_TextPrStrikeout(btn.pressed); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Strikeout'); }, onSuperscript: function(btn, e) { @@ -2150,7 +2131,6 @@ define([ this.api.put_TextPrBaseline(btn.pressed ? Asc.vertalign_SuperScript : Asc.vertalign_Baseline); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Superscript'); } }, @@ -2161,7 +2141,6 @@ define([ this.api.put_TextPrBaseline(btn.pressed ? Asc.vertalign_SubScript : Asc.vertalign_Baseline); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Subscript'); } }, @@ -2170,7 +2149,6 @@ define([ this.api.DecreaseIndent(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Indent'); }, onIncOffset: function(btn, e) { @@ -2178,7 +2156,6 @@ define([ this.api.IncreaseIndent(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Indent'); }, onChangeCase: function(menu, item, e) { @@ -2199,7 +2176,6 @@ define([ this.api.put_PrAlign(item.value); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Horizontal Align'); }, onMenuVerticalAlignSelect: function(menu, item) { @@ -2214,7 +2190,6 @@ define([ this.api.setVerticalAlign(item.value); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Vertical Align'); }, onMarkers: function(btn, e) { @@ -2292,7 +2267,6 @@ define([ callback: _.bind(function(btn) { if (btn == 'yes') { this.api.put_TextPrFontName(record.name); - Common.component.Analytics.trackEvent('ToolBar', 'Font Name'); } else { this.toolbar.cmbFontName.setValue(this.api.get_TextProps().get_TextPr().get_FontFamily().get_Name()); } @@ -2301,7 +2275,6 @@ define([ }); } else { this.api.put_TextPrFontName(record.name); - Common.component.Analytics.trackEvent('ToolBar', 'Font Name'); } } Common.NotificationCenter.trigger('edit:complete', this.toolbar); @@ -2322,7 +2295,6 @@ define([ this.api.put_TextPrFontSize(record.value); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Font Size'); }, onFontSizeChanged: function(before, combo, record, e) { @@ -2424,7 +2396,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'List Type'); }, onLineSpaceToggle: function(menu, item, state, e) { @@ -2434,7 +2405,6 @@ define([ this.api.put_PrLineSpacing(c_paragraphLinerule.LINERULE_AUTO, item.value); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Line Spacing'); } }, @@ -2483,7 +2453,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Insert Columns'); }, onBeforeColumns: function() { @@ -2532,13 +2501,10 @@ define([ var value = this.toolbar.mniAlignToSlide.isChecked() ? Asc.c_oAscObjectsAlignType.Page : Asc.c_oAscObjectsAlignType.Selected; if (item.value>-1 && item.value < 6) { this.api.put_ShapesAlign(item.value, value); - Common.component.Analytics.trackEvent('ToolBar', 'Shape Align'); } else if (item.value == 6) { this.api.DistributeHorizontally(value); - Common.component.Analytics.trackEvent('ToolBar', 'Distribute'); } else if (item.value == 7){ this.api.DistributeVertically(value); - Common.component.Analytics.trackEvent('ToolBar', 'Distribute'); } Common.NotificationCenter.trigger('edit:complete', this.toolbar); } @@ -2549,27 +2515,21 @@ define([ switch (item.value) { case 1: this.api.shapes_bringToFront(); - Common.component.Analytics.trackEvent('ToolBar', 'Shape Arrange'); break; case 2: this.api.shapes_bringToBack(); - Common.component.Analytics.trackEvent('ToolBar', 'Shape Arrange'); break; case 3: this.api.shapes_bringForward(); - Common.component.Analytics.trackEvent('ToolBar', 'Shape Arrange'); break; case 4: this.api.shapes_bringBackward(); - Common.component.Analytics.trackEvent('ToolBar', 'Shape Arrange'); break; case 5: this.api.groupShapes(); - Common.component.Analytics.trackEvent('ToolBar', 'Shape Group'); break; case 6: this.api.unGroupShapes(); - Common.component.Analytics.trackEvent('ToolBar', 'Shape UnGroup'); break; } Common.NotificationCenter.trigger('edit:complete', this.toolbar); @@ -2585,7 +2545,6 @@ define([ onClickMenuShapesMerge: function (menu, item) { if (item && item.value) { this.api.asc_mergeSelectedShapes(item.value); - Common.component.Analytics.trackEvent('ToolBar', 'Shapes Merge'); } Common.NotificationCenter.trigger('edit:complete', this.toolbar); }, @@ -2634,7 +2593,6 @@ define([ if (this.api) this.api.put_TextColor(Common.Utils.ThemeColor.getRgbColor(color)); - Common.component.Analytics.trackEvent('ToolBar', 'Text Color'); }, onBtnFontColor: function() { @@ -2725,13 +2683,11 @@ define([ me.api.SetMarkerFormat(undefined, true, true, parseInt(r, 16), parseInt(g, 16), parseInt(b, 16)); } Common.NotificationCenter.trigger('edit:complete', me.toolbar, me.toolbar.btnTextHighlightColor); - Common.component.Analytics.trackEvent('ToolBar', 'Highlight Color'); }, onBtnTextHighlightColor: function(btn) { if (btn.pressed) { this._setMarkerColor(btn.currentColor); - Common.component.Analytics.trackEvent('ToolBar', 'Highlight Color'); } else { this.api.SetMarkerFormat(undefined, false); diff --git a/apps/pdfeditor/main/app_dev.js b/apps/pdfeditor/main/app_dev.js index 5c23c25f3e..d71aca800c 100644 --- a/apps/pdfeditor/main/app_dev.js +++ b/apps/pdfeditor/main/app_dev.js @@ -50,7 +50,6 @@ require.config({ keymaster : 'common/main/lib/core/keymaster', tip : 'common/main/lib/util/Tip', localstorage : 'common/main/lib/util/LocalStorage', - analytics : 'common/Analytics', gateway : 'common/Gateway', locale : 'common/locale', irregularstack : 'common/IrregularStack' @@ -86,11 +85,6 @@ require.config({ 'jquery' ] }, - analytics: { - deps: [ - 'jquery' - ] - } } }); @@ -98,7 +92,6 @@ require([ 'backbone', 'underscore', 'core', - 'analytics', 'gateway', 'locale', 'socketio', diff --git a/apps/presentationeditor/embed/index.html b/apps/presentationeditor/embed/index.html index 0dbf6721cc..472e1d37c9 100644 --- a/apps/presentationeditor/embed/index.html +++ b/apps/presentationeditor/embed/index.html @@ -267,7 +267,6 @@ - diff --git a/apps/presentationeditor/embed/index.html.opensource b/apps/presentationeditor/embed/index.html.opensource index 716edd58bb..6ea80b103f 100644 --- a/apps/presentationeditor/embed/index.html.opensource +++ b/apps/presentationeditor/embed/index.html.opensource @@ -194,7 +194,6 @@ - diff --git a/apps/presentationeditor/embed/index_loader.html b/apps/presentationeditor/embed/index_loader.html index d4d8a7e32b..1f3932437c 100644 --- a/apps/presentationeditor/embed/index_loader.html +++ b/apps/presentationeditor/embed/index_loader.html @@ -330,7 +330,6 @@ - diff --git a/apps/presentationeditor/embed/js/ApplicationController.js b/apps/presentationeditor/embed/js/ApplicationController.js index a7a66f900c..d9109eebe9 100644 --- a/apps/presentationeditor/embed/js/ApplicationController.js +++ b/apps/presentationeditor/embed/js/ApplicationController.js @@ -43,7 +43,6 @@ PE.ApplicationController = new(function(){ // Initialize analytics // ------------------------- -// Common.Analytics.initialize('UA-12442749-13', 'Embedded Presentation Editor'); // Check browser @@ -149,7 +148,6 @@ PE.ApplicationController = new(function(){ api.asc_getEditorPermissions(config.licenseUrl, config.customerId); api.asc_enableKeyEvents(true); - Common.Analytics.trackEvent('Load', 'Start'); } embedConfig.docTitle = docConfig.title; @@ -374,13 +372,11 @@ PE.ApplicationController = new(function(){ common.utils.openLink(embedConfig.saveUrl); } - Common.Analytics.trackEvent('Save'); }); PE.ApplicationView.tools.get('#idt-print') .on('click', function(){ api.asc_Print(new Asc.asc_CDownloadOptions(null, $.browser.chrome || $.browser.safari || $.browser.opera || $.browser.mozilla && $.browser.versionNumber>86)); - Common.Analytics.trackEvent('Print'); }); PE.ApplicationView.tools.get('#idt-close') @@ -524,7 +520,6 @@ PE.ApplicationController = new(function(){ $('#btn-play').on('click', onPlayStart); Common.Gateway.documentReady(); - Common.Analytics.trackEvent('Load', 'Complete'); requireUserAction = false; } @@ -775,7 +770,6 @@ PE.ApplicationController = new(function(){ Common.Gateway.reportWarning(id, message); } - Common.Analytics.trackEvent('Internal Error', id.toString()); } function onExternalMessage(error) { @@ -785,7 +779,6 @@ PE.ApplicationController = new(function(){ $('#id-error-mask-text').text(error.msg); $('#id-error-mask').css('display', 'block'); - Common.Analytics.trackEvent('External Error'); } } diff --git a/apps/presentationeditor/main/app.js b/apps/presentationeditor/main/app.js index 8e1a2bd819..8c02a8854b 100644 --- a/apps/presentationeditor/main/app.js +++ b/apps/presentationeditor/main/app.js @@ -52,7 +52,6 @@ require.config({ keymaster : 'common/main/lib/core/keymaster', tip : 'common/main/lib/util/Tip', localstorage : 'common/main/lib/util/LocalStorage', - analytics : 'common/Analytics', gateway : 'common/Gateway', locale : 'common/locale', irregularstack : 'common/IrregularStack' @@ -95,11 +94,6 @@ require.config({ 'jquery' ] }, - analytics: { - deps: [ - 'jquery' - ] - } } }); @@ -108,7 +102,6 @@ require([ 'backbone', 'underscore', 'core', - 'analytics', 'gateway', 'locale' ], function (Sdk, Backbone, _, Core) { diff --git a/apps/presentationeditor/main/app/controller/DocumentHolderExt.js b/apps/presentationeditor/main/app/controller/DocumentHolderExt.js index be226ded65..a4df95a4f0 100644 --- a/apps/presentationeditor/main/app/controller/DocumentHolderExt.js +++ b/apps/presentationeditor/main/app/controller/DocumentHolderExt.js @@ -700,7 +700,6 @@ define([], function () { } } } - Common.component.Analytics.trackEvent('DocumentHolder', 'Add Hyperlink'); }; dh.onPaintSlideNum = function (slideNum) { @@ -1479,7 +1478,6 @@ define([], function () { win.show(); win.setSettings(item.hyperProps.value); - Common.component.Analytics.trackEvent('DocumentHolder', 'Add Hyperlink'); } }; @@ -1507,7 +1505,6 @@ define([], function () { win.show(); win.setSettings(item.hyperProps.value); - Common.component.Analytics.trackEvent('DocumentHolder', 'Edit Hyperlink'); } }; @@ -1517,7 +1514,6 @@ define([], function () { } this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Remove Hyperlink'); }; dh.saveAsPicture = function() { @@ -1917,7 +1913,6 @@ define([], function () { this.api.SelectAllSlides(); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Select All Slides'); } }; @@ -1929,7 +1924,6 @@ define([], function () { opts.asc_setAdvancedOptions(printopt); this.api.asc_Print(opts); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Print Selection'); } }; @@ -1939,7 +1933,6 @@ define([], function () { this.api.AddSlide(); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Add Slide'); } }; @@ -1949,7 +1942,6 @@ define([], function () { this.api.DublicateSlide(); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Dublicate Slide'); } }; @@ -1959,7 +1951,6 @@ define([], function () { this.api.DeleteSlide(); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Delete Slide'); } }; @@ -1968,7 +1959,6 @@ define([], function () { this.api.ResetSlide(); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Reset Slide'); } }; @@ -1977,7 +1967,6 @@ define([], function () { this.api.asc_moveSelectedSlidesToStart(); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Move Slide to Start'); } }; @@ -1986,7 +1975,6 @@ define([], function () { this.api.asc_moveSelectedSlidesToEnd(); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Move Slide to End'); } }; @@ -1999,7 +1987,6 @@ define([], function () { this.api.asc_HideSlides(item.checked); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Hide Slides'); } }; @@ -2007,7 +1994,6 @@ define([], function () { if (this.api) { this.api.ChangeLayout(record.get('data').idx); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Change Layout'); } }; @@ -2015,7 +2001,6 @@ define([], function () { if (this.api) { this.api.ChangeTheme(record.get('themeId'), true); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Change Layout'); } }; @@ -2033,7 +2018,6 @@ define([], function () { if (me.api) { me.api.SplitCell(value.columns, value.rows); } - Common.component.Analytics.trackEvent('DocumentHolder', 'Table Split'); } me.editComplete(); } @@ -2056,7 +2040,6 @@ define([], function () { } this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Table Cell Align'); }; dh.onTableDistRows = function () { @@ -2111,7 +2094,6 @@ define([], function () { } } me.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Table Settings Advanced'); } })).show(); break; @@ -2153,7 +2135,6 @@ define([], function () { } } me.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Image Settings Advanced'); } })).show(); break; @@ -2178,7 +2159,6 @@ define([], function () { } me.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Set Image Original Size'); } }; @@ -2244,7 +2224,6 @@ define([], function () { } } me.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Image Shape Advanced'); } })).show(); break; @@ -2277,7 +2256,6 @@ define([], function () { } } me.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Image Paragraph Advanced'); } })).show(); break; @@ -2312,7 +2290,6 @@ define([], function () { } } me.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Chart Settings Advanced'); } })).show(); break; @@ -2325,37 +2302,31 @@ define([], function () { dh.onGroupImg = function(item) { this.api && this.api.groupShapes(); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Group Image'); }; dh.onUnGroupImg = function(item) { this.api && this.api.unGroupShapes(); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'UnGroup Image'); }; dh.onArrangeFront = function(item) { this.api && this.api.shapes_bringToFront(); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Bring To Front'); }; dh.onArrangeBack = function(item) { this.api && this.api.shapes_bringToBack(); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Bring To Back'); }; dh.onArrangeForward = function(item) { this.api && this.api.shapes_bringForward(); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Send Forward'); }; dh.onArrangeBackward = function(item) { this.api && this.api.shapes_bringBackward(); this.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Send Backward'); }; dh.onImgShapeAlign = function (menu, item) { @@ -2365,13 +2336,10 @@ define([], function () { value = value ? Asc.c_oAscObjectsAlignType.Slide : Asc.c_oAscObjectsAlignType.Selected; if (item.value < 6) { me.api.put_ShapesAlign(item.value, value); - Common.component.Analytics.trackEvent('DocumentHolder', 'Shape Align'); } else if (item.value == 6) { me.api.DistributeHorizontally(value); - Common.component.Analytics.trackEvent('DocumentHolder', 'Distribute Horizontally'); } else if (item.value == 7){ me.api.DistributeVertically(value); - Common.component.Analytics.trackEvent('DocumentHolder', 'Distribute Vertically'); } me.editComplete(); } @@ -2381,7 +2349,6 @@ define([], function () { var me = this; if (item && item.value) { me.api.asc_mergeSelectedShapes(item.value); - Common.component.Analytics.trackEvent('DocumentHolder', 'Shapes Merge'); } me.editComplete(); }; @@ -2403,7 +2370,6 @@ define([], function () { } me.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Text Vertical Align'); }; dh.onParagraphDirection = function(menu, item) { @@ -2414,7 +2380,6 @@ define([], function () { me.api.ShapeApply(properties); } me.editComplete(); - Common.component.Analytics.trackEvent('DocumentHolder', 'Text Direction'); }; dh.tableSelectText = function(menu, item) { diff --git a/apps/presentationeditor/main/app/controller/LeftMenu.js b/apps/presentationeditor/main/app/controller/LeftMenu.js index d15c869182..7c8e43b69c 100644 --- a/apps/presentationeditor/main/app/controller/LeftMenu.js +++ b/apps/presentationeditor/main/app/controller/LeftMenu.js @@ -460,8 +460,6 @@ define([ var recentDocPage = window.open(url); if (recentDocPage) recentDocPage.focus(); - - Common.component.Analytics.trackEvent('Open Recent'); }, clickToolbarSettings: function(obj) { diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index d1c54e8f4c..cb971875f6 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -415,7 +415,6 @@ define([ this.appOptions.sharingSettingsUrl = this.editorConfig.sharingSettingsUrl; this.appOptions.saveAsUrl = this.editorConfig.saveAsUrl; this.appOptions.fileChoiceUrl = this.editorConfig.fileChoiceUrl; - this.appOptions.canAnalytics = false; this.appOptions.canPlugins = false; this.appOptions.canRequestUsers = this.editorConfig.canRequestUsers; this.appOptions.canRequestSendNotify = this.editorConfig.canRequestSendNotify; @@ -1096,9 +1095,6 @@ define([ $('.toolbar').prepend(Common.Utils.String.format('
', dummyClass)); setTimeout(function() { $(Common.Utils.String.format('.toolbar .lazy-{0}', dummyClass)).remove(); }, 10); - if (this.appOptions.canAnalytics && false) - Common.component.Analytics.initialize('UA-12442749-13', 'Presentation Editor'); - Common.Gateway.on('applyeditrights', _.bind(me.onApplyEditRights, me)); Common.Gateway.on('processrightschange', _.bind(me.onProcessRightsChange, me)); Common.Gateway.on('processmouse', _.bind(me.onProcessMouse, me)); @@ -1346,7 +1342,6 @@ define([ (this.editorConfig.canRequestEditRights || this.editorConfig.mode !== 'view'); // if mode=="view" -> canRequestEditRights must be defined this.appOptions.isEdit = this.appOptions.canLicense && this.appOptions.canEdit && this.editorConfig.mode !== 'view'; this.appOptions.canDownload = this.permissions.download !== false; - this.appOptions.canAnalytics = params.asc_getIsAnalyticsEnable(); this.appOptions.canComments = this.appOptions.canLicense && (this.permissions.comment===undefined ? this.appOptions.isEdit : this.permissions.comment) && (this.editorConfig.mode !== 'view'); this.appOptions.canComments = this.appOptions.canComments && !((typeof (this.editorConfig.customization) == 'object') && this.editorConfig.customization.comments===false); this.appOptions.canViewComments = this.appOptions.canComments || !((typeof (this.editorConfig.customization) == 'object') && this.editorConfig.customization.comments===false); @@ -1635,8 +1630,6 @@ define([ if (msg && msg.msg) { msg.msg = (msg.msg).toString(); this.showTips([msg.msg.charAt(0).toUpperCase() + msg.msg.substring(1)]); - - Common.component.Analytics.trackEvent('External Error'); } }, @@ -1924,8 +1917,6 @@ define([ if (!Common.Utils.ModalWindow.isVisible() || $('.asc-window.modal.alert[data-value="' + id + '"]').length<1) Common.UI.alert(config).$window.attr('data-value', id); - - (id!==undefined) && Common.component.Analytics.trackEvent('Internal Error', id.toString()); }, onCoAuthoringDisconnect: function() { @@ -2521,7 +2512,6 @@ define([ onPrint: function() { if (!this.appOptions.canPrint || Common.Utils.ModalWindow.isVisible()) return; Common.NotificationCenter.trigger('file:print'); - Common.component.Analytics.trackEvent('Print'); }, onPrintUrl: function(url) { @@ -2565,7 +2555,6 @@ define([ var opts = new Asc.asc_CDownloadOptions(); opts.asc_setAdvancedOptions(printopt); me.api.asc_Print(opts); - Common.component.Analytics.trackEvent('Print'); }; if (value) { diff --git a/apps/presentationeditor/main/app/controller/SlideMasterTab.js b/apps/presentationeditor/main/app/controller/SlideMasterTab.js index 7612d2b41f..57b9e72de4 100644 --- a/apps/presentationeditor/main/app/controller/SlideMasterTab.js +++ b/apps/presentationeditor/main/app/controller/SlideMasterTab.js @@ -271,7 +271,6 @@ define([ this._addPlaceHolder(btn.pressed, value, isVertical); Common.NotificationCenter.trigger('edit:complete', this.view); - Common.component.Analytics.trackEvent('SlideMasterTab', 'Add Placeholder'); }, changeViewMode: function (mode) { diff --git a/apps/presentationeditor/main/app/controller/Toolbar.js b/apps/presentationeditor/main/app/controller/Toolbar.js index 50e3715370..e6d483ce54 100644 --- a/apps/presentationeditor/main/app/controller/Toolbar.js +++ b/apps/presentationeditor/main/app/controller/Toolbar.js @@ -1063,7 +1063,6 @@ define([ this.api.OpenNewDocument(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'New Document'); }, onOpenDocument: function(btn, e) { @@ -1071,7 +1070,6 @@ define([ this.api.LoadDocumentFromDisk(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Open Document'); }, onAddSlide: function(type) { @@ -1079,7 +1077,6 @@ define([ this.api.AddSlide(type); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Add Slide'); } }, @@ -1088,7 +1085,6 @@ define([ this.api.DublicateSlide(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Duplicate Slide'); } }, @@ -1102,7 +1098,6 @@ define([ this.api.ChangeLayout(type); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Change Layout'); } }, @@ -1173,8 +1168,6 @@ define([ _main.onPrintQuick(); } - Common.component.Analytics.trackEvent('Print'); - Common.component.Analytics.trackEvent('ToolBar', 'Print'); }, onPrintMenu: function (btn, e){ @@ -1206,8 +1199,6 @@ define([ toolbar.btnSave && toolbar.lockToolbar(Common.enumLock.cantSave, !toolbar.mode.forcesave && !toolbar.mode.canSaveDocumentToBinary, {array: [toolbar.btnSave]}); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('Save'); - Common.component.Analytics.trackEvent('ToolBar', 'Save'); }, onBtnChangeState: function(prop) { @@ -1223,7 +1214,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Undo'); }, onRedo: function(btn, e) { @@ -1232,7 +1222,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Redo'); }, onCopyPaste: function(type, e) { @@ -1248,8 +1237,7 @@ define([ } })).show(); } - } else - Common.component.Analytics.trackEvent('ToolBar', 'Copy Warning'); + } } Common.NotificationCenter.trigger('edit:complete', me.toolbar); }, @@ -1259,7 +1247,6 @@ define([ this.api.asc_EditSelectAll(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Select All'); }, onReplace: function(e) { @@ -1271,7 +1258,6 @@ define([ this.api.FontSizeIn(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Font Size'); }, onDecrease: function(e) { @@ -1279,7 +1265,6 @@ define([ this.api.FontSizeOut(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Font Size'); }, onBold: function(btn, e) { @@ -1288,7 +1273,6 @@ define([ this.api.put_TextPrBold(btn.pressed); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Bold'); }, onItalic: function(btn, e) { @@ -1297,7 +1281,6 @@ define([ this.api.put_TextPrItalic(btn.pressed); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Italic'); }, onUnderline: function(btn, e) { @@ -1306,7 +1289,6 @@ define([ this.api.put_TextPrUnderline(btn.pressed); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Underline'); }, onStrikeout: function(btn, e) { @@ -1315,7 +1297,6 @@ define([ this.api.put_TextPrStrikeout(btn.pressed); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Strikeout'); }, onSuperscript: function(btn, e) { @@ -1325,7 +1306,6 @@ define([ this.api.put_TextPrBaseline(btn.pressed ? Asc.vertalign_SuperScript : Asc.vertalign_Baseline); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Superscript'); } }, @@ -1336,7 +1316,6 @@ define([ this.api.put_TextPrBaseline(btn.pressed ? Asc.vertalign_SubScript : Asc.vertalign_Baseline); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Subscript'); } }, @@ -1345,7 +1324,6 @@ define([ this.api.DecreaseIndent(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Indent'); }, onIncOffset: function(btn, e) { @@ -1353,7 +1331,6 @@ define([ this.api.IncreaseIndent(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Indent'); }, onChangeCase: function(menu, item, e) { @@ -1374,7 +1351,6 @@ define([ this.api.put_PrAlign(item.value); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Horizontal Align'); }, onMenuVerticalAlignSelect: function(menu, item) { @@ -1389,7 +1365,6 @@ define([ this.api.setVerticalAlign(item.value); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Vertical Align'); }, onMarkers: function(btn, e) { @@ -1466,7 +1441,6 @@ define([ callback: _.bind(function(btn) { if (btn == 'yes') { this.api.put_TextPrFontName(record.name); - Common.component.Analytics.trackEvent('ToolBar', 'Font Name'); } else { this.toolbar.cmbFontName.setValue(this.api.get_TextProps().get_TextPr().get_FontFamily().get_Name()); } @@ -1475,7 +1449,6 @@ define([ }); } else { this.api.put_TextPrFontName(record.name); - Common.component.Analytics.trackEvent('ToolBar', 'Font Name'); } } Common.NotificationCenter.trigger('edit:complete', this.toolbar); @@ -1496,7 +1469,6 @@ define([ this.api.put_TextPrFontSize(record.value); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Font Size'); }, onFontSizeChanged: function(before, combo, record, e) { @@ -1598,7 +1570,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'List Type'); }, onLineSpaceToggle: function(menu, item, state, e) { @@ -1608,7 +1579,6 @@ define([ this.api.put_PrLineSpacing(c_paragraphLinerule.LINERULE_AUTO, item.value); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Line Spacing'); } }, @@ -1665,7 +1635,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Insert Columns'); }, onBeforeColumns: function() { @@ -1735,13 +1704,10 @@ define([ var value = this.toolbar.mniAlignToSlide.isChecked() ? Asc.c_oAscObjectsAlignType.Slide : Asc.c_oAscObjectsAlignType.Selected; if (item.value>-1 && item.value < 6) { this.api.put_ShapesAlign(item.value, value); - Common.component.Analytics.trackEvent('ToolBar', 'Shape Align'); } else if (item.value == 6) { this.api.DistributeHorizontally(value); - Common.component.Analytics.trackEvent('ToolBar', 'Distribute'); } else if (item.value == 7){ this.api.DistributeVertically(value); - Common.component.Analytics.trackEvent('ToolBar', 'Distribute'); } Common.NotificationCenter.trigger('edit:complete', this.toolbar); } @@ -1752,27 +1718,21 @@ define([ switch (item.value) { case 1: this.api.shapes_bringToFront(); - Common.component.Analytics.trackEvent('ToolBar', 'Shape Arrange'); break; case 2: this.api.shapes_bringToBack(); - Common.component.Analytics.trackEvent('ToolBar', 'Shape Arrange'); break; case 3: this.api.shapes_bringForward(); - Common.component.Analytics.trackEvent('ToolBar', 'Shape Arrange'); break; case 4: this.api.shapes_bringBackward(); - Common.component.Analytics.trackEvent('ToolBar', 'Shape Arrange'); break; case 5: this.api.groupShapes(); - Common.component.Analytics.trackEvent('ToolBar', 'Shape Group'); break; case 6: this.api.unGroupShapes(); - Common.component.Analytics.trackEvent('ToolBar', 'Shape UnGroup'); break; } Common.NotificationCenter.trigger('edit:complete', this.toolbar); @@ -1788,7 +1748,6 @@ define([ onClickMenuShapesMerge: function (menu, item) { if (item && item.value) { this.api.asc_mergeSelectedShapes(item.value); - Common.component.Analytics.trackEvent('ToolBar', 'Shapes Merge'); } Common.NotificationCenter.trigger('edit:complete', this.toolbar); }, @@ -1843,7 +1802,6 @@ define([ } } - Common.component.Analytics.trackEvent('ToolBar', 'Add Hyperlink'); }, onSmartPickerClick: function() { @@ -1859,7 +1817,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Table'); }, onInsertTableClick: function(menu, item, e) { @@ -1875,7 +1832,6 @@ define([ me.api.put_Table(value.columns, value.rows); } - Common.component.Analytics.trackEvent('ToolBar', 'Table'); } Common.NotificationCenter.trigger('edit:complete', me.toolbar); } @@ -1898,7 +1854,6 @@ define([ setTimeout(function() {me.api.asc_addImage();}, 1); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Image'); } else if (opts === 'url') { (new Common.Views.ImageFromUrlDialog({ handler: function(result, value) { @@ -1909,7 +1864,6 @@ define([ me.toolbar.fireEvent('insertimage', me.toolbar); me.api.AddImageUrl([checkUrl]); - Common.component.Analytics.trackEvent('ToolBar', 'Image'); } } @@ -1942,7 +1896,6 @@ define([ if (data && data._urls && (!data.c || data.c=='add')) { this.toolbar.fireEvent('insertimage', this.toolbar); (data._urls.length>0) && this.api.AddImageUrl(data._urls, undefined, data.token);// for loading from storage - Common.component.Analytics.trackEvent('ToolBar', 'Image'); } }, @@ -2021,7 +1974,6 @@ define([ this._addAutoshape(btn.pressed, type); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Add Text'); }, onInsertShape: function (type) { @@ -2038,7 +1990,6 @@ define([ me.toolbar.btnsInsertText.toggle(false, true); Common.NotificationCenter.trigger('edit:complete', me.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Add Shape'); } }, @@ -2049,7 +2000,6 @@ define([ me.api.AddTextArt(data); Common.NotificationCenter.trigger('edit:complete', me.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Add Text Art'); }, onEditHeaderClick: function(type, e) { @@ -2117,7 +2067,6 @@ define([ if (this.api) { this.api.asc_ChangeColorSchemeByIdx(item.value); - Common.component.Analytics.trackEvent('ToolBar', 'Color Scheme'); } Common.NotificationCenter.trigger('edit:complete', this.toolbar); @@ -2145,7 +2094,6 @@ define([ this.api.changeSlideSize(this.currentPageSize.width, this.currentPageSize.height, this.currentPageSize.type, this.currentPageSize.firstNum); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Slide Size'); } else { var win, props, me = this; @@ -2178,7 +2126,6 @@ define([ win.show(); win.setSettings(me.currentPageSize.type, me.currentPageSize.width, me.currentPageSize.height, me.currentPageSize.firstNum); - Common.component.Analytics.trackEvent('ToolBar', 'Slide Size'); } }, @@ -2216,7 +2163,6 @@ define([ this.api.ChangeTheme(record.get('themeId')); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Style'); }, _clearBullets: function() { @@ -2248,7 +2194,6 @@ define([ if (this.api) this.api.put_TextColor(Common.Utils.ThemeColor.getRgbColor(color)); - Common.component.Analytics.trackEvent('ToolBar', 'Text Color'); }, onBtnFontColor: function() { @@ -2336,13 +2281,11 @@ define([ } Common.NotificationCenter.trigger('edit:complete', me.toolbar, me.toolbar.btnHighlightColor); - Common.component.Analytics.trackEvent('ToolBar', 'Highlight Color'); }, onBtnHighlightColor: function(btn) { if (btn.pressed) { this._setMarkerColor(btn.currentColor); - Common.component.Analytics.trackEvent('ToolBar', 'Highlight Color'); } else { this.api.SetMarkerFormat(false); @@ -2417,7 +2360,6 @@ define([ if (e.type !== 'click') me.toolbar.btnInsertEquation.menu.hide(); Common.NotificationCenter.trigger('edit:complete', me.toolbar, me.toolbar.btnInsertEquation); - Common.component.Analytics.trackEvent('ToolBar', 'Add Equation'); } }); } @@ -2445,7 +2387,6 @@ define([ onInsertEquationClick: function() { if (this.api) { this.api.asc_AddMath(); - Common.component.Analytics.trackEvent('ToolBar', 'Add Equation'); } Common.NotificationCenter.trigger('edit:complete', this.toolbar, this.toolbar.btnInsertEquation); }, diff --git a/apps/presentationeditor/main/app/controller/Viewport.js b/apps/presentationeditor/main/app/controller/Viewport.js index 3be712da96..ed5cb733b4 100644 --- a/apps/presentationeditor/main/app/controller/Viewport.js +++ b/apps/presentationeditor/main/app/controller/Viewport.js @@ -297,7 +297,6 @@ define([ isResized = true; Common.NotificationCenter.off('window:resize', _onWindowResize); isCurrent ? me.api.StartDemonstrationFromCurrentSlide('presentation-preview', reporterObject) : me.api.StartDemonstrationFromBeginning('presentation-preview', reporterObject); - Common.component.Analytics.trackEvent('Viewport', 'Preview'); }; if (!me.viewport.mode.isDesktopApp && !Common.Utils.isIE11 && !presenter && !!document.fullscreenEnabled) { Common.NotificationCenter.on('window:resize', _onWindowResize); diff --git a/apps/presentationeditor/main/app_dev.js b/apps/presentationeditor/main/app_dev.js index 887926bb97..5fa49b50b8 100644 --- a/apps/presentationeditor/main/app_dev.js +++ b/apps/presentationeditor/main/app_dev.js @@ -50,7 +50,6 @@ require.config({ keymaster : 'common/main/lib/core/keymaster', tip : 'common/main/lib/util/Tip', localstorage : 'common/main/lib/util/LocalStorage', - analytics : 'common/Analytics', gateway : 'common/Gateway', locale : 'common/locale', irregularstack : 'common/IrregularStack' @@ -85,11 +84,6 @@ require.config({ 'jquery' ] }, - analytics: { - deps: [ - 'jquery' - ] - } } }); @@ -97,7 +91,6 @@ require([ 'backbone', 'underscore', 'core', - 'analytics', 'gateway', 'locale', 'socketio', diff --git a/apps/presentationeditor/mobile/src/controller/Error.jsx b/apps/presentationeditor/mobile/src/controller/Error.jsx index 92691864b8..afa4bd4daa 100644 --- a/apps/presentationeditor/mobile/src/controller/Error.jsx +++ b/apps/presentationeditor/mobile/src/controller/Error.jsx @@ -274,8 +274,6 @@ const ErrorController = inject('storeAppOptions','storePresentationInfo')(({stor } ] }).open(); - - Common.component.Analytics.trackEvent('Internal Error', id.toString()); }; return null diff --git a/apps/presentationeditor/mobile/src/controller/Main.jsx b/apps/presentationeditor/mobile/src/controller/Main.jsx index 17929691ca..997252de70 100644 --- a/apps/presentationeditor/mobile/src/controller/Main.jsx +++ b/apps/presentationeditor/mobile/src/controller/Main.jsx @@ -893,7 +893,6 @@ class MainController extends Component { if (this.api) this.api.asc_Print(); - Common.component.Analytics.trackEvent('Print'); } onPrintUrl (url) { @@ -937,8 +936,6 @@ class MainController extends Component { text: [msg.msg.charAt(0).toUpperCase() + msg.msg.substring(1)], closeButton: true }).open(); - - Common.component.Analytics.trackEvent('External Error'); } } diff --git a/apps/presentationeditor/mobile/src/page/app.jsx b/apps/presentationeditor/mobile/src/page/app.jsx index da1fbc95df..8c931ecfc1 100644 --- a/apps/presentationeditor/mobile/src/page/app.jsx +++ b/apps/presentationeditor/mobile/src/page/app.jsx @@ -3,8 +3,6 @@ import React from 'react'; import {App,Panel,Views,View,Popup,Page,Navbar,Toolbar,NavRight,Link,Block,BlockTitle,List,ListItem,ListInput,ListButton,BlockFooter} from 'framework7-react'; import { f7ready } from 'framework7-react'; -import '../../../../common/Analytics.js'; - import '../../../../common/Gateway.js'; import '../../../../common/main/lib/util/utils.js'; diff --git a/apps/presentationeditor/mobile/src/store/appOptions.js b/apps/presentationeditor/mobile/src/store/appOptions.js index e77564c534..401d4ff7f3 100644 --- a/apps/presentationeditor/mobile/src/store/appOptions.js +++ b/apps/presentationeditor/mobile/src/store/appOptions.js @@ -72,7 +72,6 @@ export class storeAppOptions { this.sharingSettingsUrl = config.sharingSettingsUrl; this.fileChoiceUrl = config.fileChoiceUrl; this.mergeFolderUrl = config.mergeFolderUrl; - this.canAnalytics = false; this.canRequestClose = config.canRequestClose; this.canCloseEditor = false; @@ -108,7 +107,6 @@ export class storeAppOptions { if (params.asc_getRights() !== Asc.c_oRights.Edit) permissions.edit = false; this.review = (permissions.review === undefined) ? (permissions.edit !== false) : permissions.review; - this.canAnalytics = params.asc_getIsAnalyticsEnable(); this.canLicense = (licType === Asc.c_oLicenseResult.Success || licType === Asc.c_oLicenseResult.SuccessLimit); this.isLightVersion = params.asc_getIsLight(); this.buildVersion = params.asc_getBuildVersion(); diff --git a/apps/spreadsheeteditor/embed/index.html b/apps/spreadsheeteditor/embed/index.html index f17e83118d..aa428d065f 100644 --- a/apps/spreadsheeteditor/embed/index.html +++ b/apps/spreadsheeteditor/embed/index.html @@ -251,7 +251,6 @@ - diff --git a/apps/spreadsheeteditor/embed/index_loader.html b/apps/spreadsheeteditor/embed/index_loader.html index 62449c306c..7e5baabb3b 100644 --- a/apps/spreadsheeteditor/embed/index_loader.html +++ b/apps/spreadsheeteditor/embed/index_loader.html @@ -338,7 +338,6 @@ - diff --git a/apps/spreadsheeteditor/embed/js/ApplicationController.js b/apps/spreadsheeteditor/embed/js/ApplicationController.js index 113a8d7b09..3b817878b5 100644 --- a/apps/spreadsheeteditor/embed/js/ApplicationController.js +++ b/apps/spreadsheeteditor/embed/js/ApplicationController.js @@ -46,7 +46,6 @@ SSE.ApplicationController = new(function(){ // Initialize analytics // ------------------------- -// Common.Analytics.initialize('UA-12442749-13', 'Embedded Spreadsheet Editor'); // Check browser @@ -165,7 +164,6 @@ SSE.ApplicationController = new(function(){ api.asc_getEditorPermissions(config.licenseUrl, config.customerId); api.asc_enableKeyEvents(true); - Common.Analytics.trackEvent('Load', 'Start'); } embedConfig.docTitle = docConfig.title; @@ -451,13 +449,11 @@ SSE.ApplicationController = new(function(){ common.utils.openLink(embedConfig.saveUrl); } - Common.Analytics.trackEvent('Save'); }); SSE.ApplicationView.tools.get('#idt-print') .on('click', function(){ api.asc_Print(new Asc.asc_CDownloadOptions(null, $.browser.chrome || $.browser.safari || $.browser.opera || $.browser.mozilla && $.browser.versionNumber>86)); - Common.Analytics.trackEvent('Print'); }); SSE.ApplicationView.tools.get('#idt-close') @@ -562,7 +558,6 @@ SSE.ApplicationController = new(function(){ }); Common.Gateway.documentReady(); - Common.Analytics.trackEvent('Load', 'Complete'); requireUserAction = false; onSheetsChanged(); setupScrollButtons(); @@ -820,7 +815,6 @@ SSE.ApplicationController = new(function(){ Common.Gateway.reportWarning(id, message); } - Common.Analytics.trackEvent('Internal Error', id.toString()); } function onExternalMessage(error) { @@ -830,7 +824,6 @@ SSE.ApplicationController = new(function(){ $('#id-error-mask-text').text(error.msg); $('#id-error-mask').css('display', 'block'); - Common.Analytics.trackEvent('External Error'); } } diff --git a/apps/spreadsheeteditor/main/app.js b/apps/spreadsheeteditor/main/app.js index b71663fa36..f3703e61eb 100644 --- a/apps/spreadsheeteditor/main/app.js +++ b/apps/spreadsheeteditor/main/app.js @@ -52,7 +52,6 @@ require.config({ keymaster : 'common/main/lib/core/keymaster', tip : 'common/main/lib/util/Tip', localstorage : 'common/main/lib/util/LocalStorage', - analytics : 'common/Analytics', gateway : 'common/Gateway', locale : 'common/locale', irregularstack : 'common/IrregularStack' @@ -95,11 +94,6 @@ require.config({ 'jquery' ] }, - analytics: { - deps: [ - 'jquery' - ] - } } }); @@ -108,7 +102,6 @@ require([ 'backbone', 'underscore', 'core', - 'analytics', 'gateway', 'locale' ], function (Sdk, Backbone, _, Core) { diff --git a/apps/spreadsheeteditor/main/app/controller/DocumentHolderExt.js b/apps/spreadsheeteditor/main/app/controller/DocumentHolderExt.js index a97eff937e..bad4e220ee 100644 --- a/apps/spreadsheeteditor/main/app/controller/DocumentHolderExt.js +++ b/apps/spreadsheeteditor/main/app/controller/DocumentHolderExt.js @@ -315,8 +315,7 @@ define([], function () { } })).show(); } - } else - Common.component.Analytics.trackEvent('ToolBar', 'Copy Warning'); + } } Common.NotificationCenter.trigger('edit:complete', me.documentHolder); }; @@ -333,7 +332,6 @@ define([], function () { } Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'Insert Entire'); } }; @@ -342,7 +340,6 @@ define([], function () { this.api.asc_insertCells(item.value); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'Insert Cells'); } }; @@ -358,7 +355,6 @@ define([], function () { } Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'Delete Entire'); } }; @@ -367,7 +363,6 @@ define([], function () { this.api.asc_deleteCells(item.value); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'Delete Cells'); } }; @@ -396,7 +391,6 @@ define([], function () { this.api.asc_sortColFilter(item.value, '', undefined, (item.value==Asc.c_oAscSortOptions.ByColorFill) ? this.documentHolder.ssMenu.cellColor : this.documentHolder.ssMenu.fontColor, btn == 'expand'); } Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'Sort Cells'); }, this) }; Common.UI.alert(config); @@ -411,7 +405,6 @@ define([], function () { callback: _.bind(function(btn){ (btn == 'yes') && this.api.asc_sortColFilter(item.value, '', undefined, (item.value==Asc.c_oAscSortOptions.ByColorFill) ? this.documentHolder.ssMenu.cellColor : this.documentHolder.ssMenu.fontColor, false); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'Sort Cells'); }, this) }; Common.UI.alert(config); @@ -420,7 +413,6 @@ define([], function () { case Asc.c_oAscSelectionSortExpand.notExpandAndNotShowMessage: this.api.asc_sortColFilter(item.value, '', undefined, (item.value==Asc.c_oAscSortOptions.ByColorFill) ? this.documentHolder.ssMenu.cellColor : this.documentHolder.ssMenu.fontColor, res === Asc.c_oAscSelectionSortExpand.expandAndNotShowMessage); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'Sort Cells'); break; } } @@ -453,7 +445,6 @@ define([], function () { this.api.asc_applyAutoFilterByType(autoFilterObject); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'Filter Cells'); } }; @@ -848,7 +839,6 @@ define([], function () { this.api.asc_emptyCells(item.value, item.value == Asc.c_oAscCleanOptions.All && !this.permissions.canDeleteComments); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'Clear'); } }; @@ -857,7 +847,6 @@ define([], function () { this.api.asc_changeSelectionFormatTable(this.documentHolder.ssMenu.formatTableName, item.value); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'Select Table'); } }; @@ -866,7 +855,6 @@ define([], function () { this.api.asc_insertCellsInTable(this.documentHolder.ssMenu.formatTableName, item.value); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'Insert to Table'); } }; @@ -875,7 +863,6 @@ define([], function () { this.api.asc_deleteCellsInTable(this.documentHolder.ssMenu.formatTableName, item.value); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'Delete from Table'); } }; @@ -935,7 +922,6 @@ define([], function () { }); } - Common.component.Analytics.trackEvent('DocumentHolder', 'Add Hyperlink'); }; dh.onDelHyperlink = function(item) { @@ -947,7 +933,6 @@ define([], function () { this.api.asc_removeHyperlink(); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'Remove Hyperlink'); } }; @@ -1021,7 +1006,6 @@ define([], function () { var handlerDlg = function(result, settings) { if (result == 'ok' && settings) { me.api.asc_setDefinedNames(settings); - Common.component.Analytics.trackEvent('DocumentHolder', 'New Named Range'); } Common.NotificationCenter.trigger('edit:complete', me.documentHolder); }; @@ -1042,19 +1026,16 @@ define([], function () { this.api.asc_setSelectedDrawingObjectLayer(item.value); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'Arrange'); } else if (item.options.type == 'group') { this.api[(item.value == 'grouping') ? 'asc_groupGraphicsObjects' : 'asc_unGroupGraphicsObjects'](); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', (item.value == 'grouping') ? 'Grouping' : 'Ungrouping'); } else if (item.options.type == 'rotate') { var properties = new Asc.asc_CImgProperty(); properties.asc_putRotAdd((item.value==1 ? 90 : 270) * 3.14159265358979 / 180); this.api.asc_setGraphicObjectProps(properties); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'Rotate'); } else if (item.options.type == 'flip') { var properties = new Asc.asc_CImgProperty(); if (item.value==1) @@ -1064,7 +1045,6 @@ define([], function () { this.api.asc_setGraphicObjectProps(properties); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'Flip'); } } }; @@ -1096,15 +1076,12 @@ define([], function () { if (item.value>-1 && item.value < 6) { this.api.asc_setSelectedDrawingObjectAlign(item.value); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'Objects Align'); } else if (item.value == 6) { this.api.asc_DistributeSelectedDrawingObjectHor(); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'Distribute'); } else if (item.value == 7){ this.api.asc_DistributeSelectedDrawingObjectVer(); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'Distribute'); } } }; @@ -1114,7 +1091,6 @@ define([], function () { if (item && item.value) { me.api.asc_mergeSelectedShapes(item.value); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'Shapes Merge'); } }; @@ -1133,7 +1109,6 @@ define([], function () { this.api.asc_setGraphicObjectProps(properties); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'Paragraph Vertical Align'); } }; @@ -1145,7 +1120,6 @@ define([], function () { this.api.asc_setGraphicObjectProps(properties); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'Text Direction'); } }; @@ -1154,7 +1128,6 @@ define([], function () { if (item.options.value == -1) { this.api.asc_setListType(0, item.options.value); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'List Type'); } else if (item.options.value == 'settings') { var me = this, props; @@ -1224,7 +1197,6 @@ define([], function () { this.documentHolder.textInShapeMenu.hide(); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'List Type'); }; dh.onTextAdvanced = function(item) { @@ -1238,7 +1210,6 @@ define([], function () { if (me.api) { me.api.asc_setGraphicObjectProps(value.paragraphProps); - Common.component.Analytics.trackEvent('DocumentHolder', 'Apply advanced paragraph settings'); } } Common.NotificationCenter.trigger('edit:complete', me); @@ -1273,7 +1244,6 @@ define([], function () { if (me.api) { me.api.asc_setGraphicObjectProps(value.shapeProps); - Common.component.Analytics.trackEvent('DocumentHolder', 'Apply advanced shape settings'); } } Common.NotificationCenter.trigger('edit:complete', me); @@ -1292,7 +1262,6 @@ define([], function () { if (me.api) { me.api.asc_setGraphicObjectProps(value.imageProps); - Common.component.Analytics.trackEvent('DocumentHolder', 'Apply advanced image settings'); } } Common.NotificationCenter.trigger('edit:complete', me); @@ -1312,7 +1281,6 @@ define([], function () { if (me.api) { me.api.asc_setGraphicObjectProps(value.imageProps); - Common.component.Analytics.trackEvent('DocumentHolder', 'Apply slicer settings'); } } Common.NotificationCenter.trigger('edit:complete', me); @@ -4484,7 +4452,6 @@ define([], function () { this.api.asc_setGraphicObjectProps(properties); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); - Common.component.Analytics.trackEvent('DocumentHolder', 'Set Image Original Size'); } }; diff --git a/apps/spreadsheeteditor/main/app/controller/LeftMenu.js b/apps/spreadsheeteditor/main/app/controller/LeftMenu.js index 44c7344606..48c742d3d5 100644 --- a/apps/spreadsheeteditor/main/app/controller/LeftMenu.js +++ b/apps/spreadsheeteditor/main/app/controller/LeftMenu.js @@ -611,8 +611,6 @@ define([ var recentDocPage = window.open(url); if (recentDocPage) recentDocPage.focus(); - - Common.component.Analytics.trackEvent('Open Recent'); }, clickToolbarSettings: function(obj) { diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 58db224640..4dc482369e 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -447,7 +447,6 @@ define([ this.appOptions.location = (typeof (this.editorConfig.location) == 'string') ? this.editorConfig.location.toLowerCase() : ''; this.appOptions.region = (typeof (this.editorConfig.region) == 'string') ? this.editorConfig.region.toLowerCase() : this.editorConfig.region; this.appOptions.canAutosave = false; - this.appOptions.canAnalytics = false; this.appOptions.sharingSettingsUrl = this.editorConfig.sharingSettingsUrl; this.appOptions.saveAsUrl = this.editorConfig.saveAsUrl; this.appOptions.fileChoiceUrl = this.editorConfig.fileChoiceUrl; @@ -1166,9 +1165,6 @@ define([ setTimeout(function() { $(Common.Utils.String.format('.toolbar .lazy-{0}', dummyClass)).remove(); }, 10); } - if (me.appOptions.canAnalytics && false) - Common.component.Analytics.initialize('UA-12442749-13', 'Spreadsheet Editor'); - Common.Gateway.on('applyeditrights', _.bind(me.onApplyEditRights, me)); Common.Gateway.on('processrightschange', _.bind(me.onProcessRightsChange, me)); Common.Gateway.on('processmouse', _.bind(me.onProcessMouse, me)); @@ -1429,7 +1425,6 @@ define([ this.appOptions.permissionsLicense = licType; this.appOptions.canAutosave = true; - this.appOptions.canAnalytics = params.asc_getIsAnalyticsEnable(); this.appOptions.isOffline = this.api.asc_isOffline(); this.appOptions.isCrypted = this.api.asc_isCrypto(); @@ -1779,8 +1774,6 @@ define([ if (msg && msg.msg) { msg.msg = (msg.msg).toString(); this.showTips([msg.msg.charAt(0).toUpperCase() + msg.msg.substring(1)], options); - - Common.component.Analytics.trackEvent('External Error'); } }, @@ -2369,8 +2362,6 @@ define([ if (!Common.Utils.ModalWindow.isVisible() || $('.asc-window.modal.alert[data-value="' + id + '"]').length<1) setTimeout(function() {Common.UI.alert(config).$window.attr('data-value', id);}, 1); - - (id!==undefined) && Common.component.Analytics.trackEvent('Internal Error', id.toString()); }, onCoAuthoringDisconnect: function() { @@ -3408,7 +3399,6 @@ define([ var opts = new Asc.asc_CDownloadOptions(); opts.asc_setAdvancedOptions(printopt); me.api.asc_Print(opts); - Common.component.Analytics.trackEvent('Print'); }; if (value) { diff --git a/apps/spreadsheeteditor/main/app/controller/Print.js b/apps/spreadsheeteditor/main/app/controller/Print.js index e78fa03386..6b0fe73866 100644 --- a/apps/spreadsheeteditor/main/app/controller/Print.js +++ b/apps/spreadsheeteditor/main/app/controller/Print.js @@ -513,8 +513,6 @@ define([ this.downloadWopiPath && opts.asc_setWopiSaveAsPath(this.downloadWopiPath); this.api.asc_DownloadAs(opts); } - Common.component.Analytics.trackEvent((this.printSettingsDlg.type=='print') ? 'Print' : 'DownloadAs'); - Common.component.Analytics.trackEvent('ToolBar', (this.printSettingsDlg.type=='print') ? 'Print' : 'DownloadAs'); Common.NotificationCenter.trigger('edit:complete', view); } else { this.asUrl && Common.NotificationCenter.trigger('download:cancel'); diff --git a/apps/spreadsheeteditor/main/app/controller/Toolbar.js b/apps/spreadsheeteditor/main/app/controller/Toolbar.js index c3be91bd4f..7614df1260 100644 --- a/apps/spreadsheeteditor/main/app/controller/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Toolbar.js @@ -592,14 +592,12 @@ define([ // this.api.asc_openNewDocument(); // // Common.NotificationCenter.trigger('edit:complete', this.toolbar); - // Common.component.Analytics.trackEvent('ToolBar', 'New Document'); // }, // // onOpenDocument: function(btn, e) { // this.api.asc_loadDocumentFromDisk(); // // Common.NotificationCenter.trigger('edit:complete', this.toolbar); - // Common.component.Analytics.trackEvent('ToolBar', 'Open Document'); // }, onApiChangeFont: function(font) { @@ -646,8 +644,6 @@ define([ // Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('Save'); - Common.component.Analytics.trackEvent('ToolBar', 'Save'); }, onBtnChangeState: function(prop) { @@ -662,7 +658,6 @@ define([ this.api.asc_Undo(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Undo'); }, onRedo: function(btn, e) { @@ -670,7 +665,6 @@ define([ this.api.asc_Redo(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Redo'); }, onCopyPaste: function(type, e) { @@ -687,8 +681,7 @@ define([ } })).show(); } - } else - Common.component.Analytics.trackEvent('ToolBar', 'Copy Warning'); + } } Common.NotificationCenter.trigger('edit:complete', me.toolbar); }, @@ -698,7 +691,6 @@ define([ this.api.asc_EditSelectAll(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Select All'); }, onReplace: function(e) { @@ -710,7 +702,6 @@ define([ this.api.asc_increaseFontSize(); Common.NotificationCenter.trigger('edit:complete', this.toolbar, {restorefocus:true}); - Common.component.Analytics.trackEvent('ToolBar', 'Font Size'); }, onDecreaseFontSize: function(e) { @@ -718,7 +709,6 @@ define([ this.api.asc_decreaseFontSize(); Common.NotificationCenter.trigger('edit:complete', this.toolbar, {restorefocus:true}); - Common.component.Analytics.trackEvent('ToolBar', 'Font Size'); }, onChangeCase: function(menu, item, e) { @@ -733,7 +723,6 @@ define([ this.api.asc_setCellBold(btn.pressed); Common.NotificationCenter.trigger('edit:complete', this.toolbar, {restorefocus:true}); - Common.component.Analytics.trackEvent('ToolBar', 'Bold'); }, onItalic: function(btn, e) { @@ -742,7 +731,6 @@ define([ this.api.asc_setCellItalic(btn.pressed); Common.NotificationCenter.trigger('edit:complete', this.toolbar, {restorefocus:true}); - Common.component.Analytics.trackEvent('ToolBar', 'Italic'); }, onUnderline: function(btn, e) { @@ -751,7 +739,6 @@ define([ this.api.asc_setCellUnderline(btn.pressed); Common.NotificationCenter.trigger('edit:complete', this.toolbar, {restorefocus:true}); - Common.component.Analytics.trackEvent('ToolBar', 'Underline'); }, onStrikeout: function(btn, e) { @@ -760,7 +747,6 @@ define([ this.api.asc_setCellStrikeout(btn.pressed); Common.NotificationCenter.trigger('edit:complete', this.toolbar, {restorefocus:true}); - Common.component.Analytics.trackEvent('ToolBar', 'Strikeout'); }, onSubscriptMenu: function(menu, item) { @@ -779,7 +765,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar, {restorefocus:true}); - Common.component.Analytics.trackEvent('ToolBar', (item.value == 'sub') ? 'Subscript' : 'Superscript'); }, onSubscript: function(btn, e) { @@ -794,7 +779,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar, {restorefocus:true}); - Common.component.Analytics.trackEvent('ToolBar', (subscript) ? 'Subscript' : 'Superscript'); }, onTextColor: function() { @@ -816,7 +800,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar, {restorefocus:true}); - Common.component.Analytics.trackEvent('ToolBar', 'Text Color'); }, onBackColorSelect: function(btn, color) { @@ -829,7 +812,6 @@ define([ this.api.asc_setCellBackgroundColor(color == 'transparent' ? null : Common.Utils.ThemeColor.getRgbColor(color)); } - Common.component.Analytics.trackEvent('ToolBar', 'Background Color'); }, onFormatCellFill: function(picker, color) { @@ -854,7 +836,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar, {restorefocus:true}); - Common.component.Analytics.trackEvent('ToolBar', 'Text Color'); }, onBorders: function(btn) { @@ -909,7 +890,6 @@ define([ me.api.asc_setCellBorders(new_borders); Common.NotificationCenter.trigger('edit:complete', me.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Borders'); } else if (item.value==='options') this.getApplication().getController('RightMenu').onRightMenuOpen(Common.Utils.documentSettingsType.Cell); }, @@ -919,7 +899,6 @@ define([ this.toolbar.btnBorders.options.borderswidth = item.value; Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Border Width'); } }, @@ -932,7 +911,6 @@ define([ clr_item.hasClass('selected') && clr_item.removeClass('selected'); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Border Color'); }, onAutoBorderColor: function(e) { @@ -947,7 +925,6 @@ define([ !clr_item.hasClass('selected') && clr_item.addClass('selected'); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Border Color'); }, onHorizontalAlign: function(type, btn, e) { @@ -958,7 +935,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Horizontal align'); }, onVerticalAlign: function(type, btn, e) { @@ -968,7 +944,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Vertical align'); }, onMergeCellsMenu: function(menu, item) { @@ -978,7 +953,6 @@ define([ me._state.merge = undefined; me.api.asc_mergeCells(how); Common.NotificationCenter.trigger('edit:complete', me.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Merge'); } if (me.api) { @@ -994,7 +968,6 @@ define([ } else { me.toolbar.btnMerge.toggle(false, true); Common.NotificationCenter.trigger('edit:complete', me.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Merge'); } } }); @@ -1004,7 +977,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Merge cells'); }, onTextDirClick: function(menu, item) { @@ -1032,7 +1004,6 @@ define([ this.api.asc_setCellTextWrap(btn.pressed); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Wrap'); }, onTextOrientationMenu: function(menu, item) { @@ -1056,14 +1027,12 @@ define([ this.api.asc_setCellAngle(angle); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Text orientation'); }, onBtnInsertTableClick: function(btn, e) { if (this.api) this._setTableFormat(this.api.asc_getDefaultTableStyle()); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Table'); }, onSmartPickerClick: function() { @@ -1318,7 +1287,6 @@ define([ setTimeout(function() {me.api.asc_addImage();}, 1); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Image'); } else if (item.value === 'url') { (new Common.Views.ImageFromUrlDialog({ handler: function(result, value) { @@ -1329,7 +1297,6 @@ define([ me.toolbar.fireEvent('insertimage', me.toolbar); me.api.asc_addImageDrawingObject([checkUrl]); - Common.component.Analytics.trackEvent('ToolBar', 'Image'); } } @@ -1362,7 +1329,6 @@ define([ if (data && data._urls && (!data.c || data.c=='add')) { this.toolbar.fireEvent('insertimage', this.toolbar); (data._urls.length>0) && this.api.asc_addImageDrawingObject(data._urls, undefined, data.token);// for loading from storage - Common.component.Analytics.trackEvent('ToolBar', 'Image'); } }, @@ -1453,7 +1419,6 @@ define([ }); } - Common.component.Analytics.trackEvent('ToolBar', 'Add Hyperlink'); }, onEditChartData: function(btn) { @@ -1583,7 +1548,6 @@ define([ this.toolbar.btnInsertShape.toggle(false, true); Common.NotificationCenter.trigger('edit:complete', this.toolbar, this.toolbar.btnInsertTextArt); - Common.component.Analytics.trackEvent('ToolBar', 'Add Text Art'); } }, @@ -1622,7 +1586,6 @@ define([ this.toolbar.btnInsertShape.toggle(false, true); Common.NotificationCenter.trigger('edit:complete', this.toolbar, this.toolbar.btnInsertShape); - Common.component.Analytics.trackEvent('ToolBar', 'Add Text'); }, onInsertShapeHide: function(btn, e) { @@ -1732,7 +1695,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Auto filter'); }, onClearFilter: function(btn) { @@ -1740,7 +1702,6 @@ define([ this.api.asc_clearFilter(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Clear filter'); }, onNumberFormat: function(btn) { @@ -1748,7 +1709,6 @@ define([ this.api.asc_setCellStyle(btn.options.styleName); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Number Format'); }, onNumberFormatMenu: function(menu, item) { @@ -1780,7 +1740,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Number Format'); }, onNumberFormatSelect: function(combo, record) { @@ -1791,7 +1750,6 @@ define([ this.onCustomNumberFormat(); } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Number Format'); }, onCustomNumberFormat: function(format, formatInfo) { @@ -1810,7 +1768,6 @@ define([ props : {format: format ? format : me._state.numformat, formatInfo: formatInfo ? formatInfo : me._state.numformatinfo, langId: value} })).show(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Number Format'); }, onNumberFormatOpenBefore: function(combo) { @@ -1844,7 +1801,6 @@ define([ this.api.asc_decreaseCellDigitNumbers(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Decrement'); }, onIncrement: function(btn) { @@ -1852,7 +1808,6 @@ define([ this.api.asc_increaseCellDigitNumbers(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Increment'); }, onInsertFormulaMenu: function(menu, item, e) { @@ -1867,7 +1822,6 @@ define([ this.toolbar.fireEvent('function:apply', [{name: this.api.asc_getFormulaLocaleName(item.value), origin: item.value}, true]); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Insert formula'); } } }, @@ -1880,13 +1834,11 @@ define([ handler: function(result, settings) { if (result == 'ok' && settings) { me.api.asc_insertInCell(settings.asc_getName(true), (settings.asc_getType()===Asc.c_oAscDefNameType.table) ? Asc.c_oAscPopUpSelectorType.Table : Asc.c_oAscPopUpSelectorType.Range, false); - Common.component.Analytics.trackEvent('ToolBar', 'Paste Named Range'); } Common.NotificationCenter.trigger('edit:complete', me.toolbar); }, ranges: me.api.asc_getDefinedNames(Asc.c_oAscGetDefinedNamesList.WorksheetWorkbook) // names only for current sheet and workbook })).show(); - Common.component.Analytics.trackEvent('ToolBar', 'Paste Named Range'); } else { var wc = me.api.asc_getWorksheetsCount(), i = -1, @@ -1908,7 +1860,6 @@ define([ handler: function(result, settings) { if (result == 'ok' && settings) { me.api.asc_setDefinedNames(settings); - Common.component.Analytics.trackEvent('ToolBar', 'New Named Range'); } Common.NotificationCenter.trigger('edit:complete', me.toolbar); }, @@ -1929,7 +1880,6 @@ define([ (new SSE.Views.NameManagerDlg({ api: me.api, handler: function(result) { - Common.component.Analytics.trackEvent('ToolBar', 'Name Manager'); Common.NotificationCenter.trigger('edit:complete', me.toolbar); }, locked: me._state.namedrange_locked, @@ -1972,7 +1922,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Clear'); }, onCopyStyleToggle: function(btn, state, e) { @@ -1987,7 +1936,6 @@ define([ this.api.asc_insertCells(item.value); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Cell insert'); }, onCellDeleteMenu: function(menu, item, e) { @@ -1995,7 +1943,6 @@ define([ this.api.asc_deleteCells(item.value); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Cell delete'); }, onShowBeforeCellFormat: function(cmp, item, e) { @@ -2140,7 +2087,6 @@ define([ if (this.api) { this.api.asc_ChangeColorSchemeByIdx(item.value); - Common.component.Analytics.trackEvent('ToolBar', 'Color Scheme'); } Common.NotificationCenter.trigger('edit:complete', this.toolbar); @@ -2170,7 +2116,6 @@ define([ callback: _.bind(function(btn) { if (btn == 'yes') { this.api.asc_setCellFontName(record.name); - Common.component.Analytics.trackEvent('ToolBar', 'Font Name'); } else { this.toolbar.cmbFontName.setValue(this.api.asc_getCellInfo().asc_getXfs().asc_getFontName()); } @@ -2179,7 +2124,6 @@ define([ }); } else { this.api.asc_setCellFontName(record.name); - Common.component.Analytics.trackEvent('ToolBar', 'Font Name'); } } Common.NotificationCenter.trigger('edit:complete', this.toolbar, {restorefocus:true}); @@ -2200,7 +2144,6 @@ define([ this.api.asc_setCellFontSize(record.value); Common.NotificationCenter.trigger('edit:complete', this.toolbar, {restorefocus:true}); - Common.component.Analytics.trackEvent('ToolBar', 'Font Size'); }, onFontSizeChanged: function(before, combo, record, e) { @@ -2253,7 +2196,6 @@ define([ this.api.asc_setCellStyle(record.get('name')); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Style'); } }, @@ -2638,7 +2580,6 @@ define([ me._setTableFormat(record ? record.get('name') : me.api.asc_getDefaultTableStyle()); Common.NotificationCenter.trigger('edit:complete', me.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Table Templates'); } }); @@ -4416,7 +4357,6 @@ define([ if (e.type !== 'click') me.toolbar.btnInsertShape.menu.hide(); Common.NotificationCenter.trigger('edit:complete', me.toolbar, me.toolbar.btnInsertShape); - Common.component.Analytics.trackEvent('ToolBar', 'Add Shape'); } }); }, @@ -4452,7 +4392,6 @@ define([ if (e.type !== 'click') me.toolbar.btnInsertEquation.menu.hide(); Common.NotificationCenter.trigger('edit:complete', me.toolbar, me.toolbar.btnInsertEquation); - Common.component.Analytics.trackEvent('ToolBar', 'Add Equation'); } }); } @@ -4480,7 +4419,6 @@ define([ onInsertEquationClick: function() { if (this.api) { this.api.asc_AddMath(); - Common.component.Analytics.trackEvent('ToolBar', 'Add Equation'); } Common.NotificationCenter.trigger('edit:complete', this.toolbar, this.toolbar.btnInsertEquation); }, @@ -5161,7 +5099,6 @@ define([ if (this.api && state) { this._state.pgsize = [0, 0]; this.api.asc_changeDocSize(item.value[0], item.value[1], this.api.asc_getActiveWorksheetIndex()); - Common.component.Analytics.trackEvent('ToolBar', 'Page Size'); } Common.NotificationCenter.trigger('edit:complete', this.toolbar); @@ -5201,7 +5138,6 @@ define([ win.setSettings(me.api.asc_getPageOptions(me.api.asc_getActiveWorksheetIndex())); } - Common.component.Analytics.trackEvent('ToolBar', 'Page Margins'); } Common.NotificationCenter.trigger('edit:complete', this.toolbar); @@ -5214,14 +5150,12 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Page Orientation'); }, onImgGroupSelect: function(menu, item) { if (this.api) this.api[(item.value == 'grouping') ? 'asc_groupGraphicsObjects' : 'asc_unGroupGraphicsObjects'](); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Objects Group'); }, onImgArrangeSelect: function(menu, item) { @@ -5234,20 +5168,16 @@ define([ this.api.asc_setSelectedDrawingObjectLayer(item.value); } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Objects Arrange'); }, onImgAlignSelect: function(menu, item) { if (this.api) { if (item.value>-1 && item.value < 6) { this.api.asc_setSelectedDrawingObjectAlign(item.value); - Common.component.Analytics.trackEvent('ToolBar', 'Objects Align'); } else if (item.value == 6) { this.api.asc_DistributeSelectedDrawingObjectHor(); - Common.component.Analytics.trackEvent('ToolBar', 'Distribute'); } else if (item.value == 7){ this.api.asc_DistributeSelectedDrawingObjectVer(); - Common.component.Analytics.trackEvent('ToolBar', 'Distribute'); } } Common.NotificationCenter.trigger('edit:complete', this.toolbar); @@ -5262,7 +5192,6 @@ define([ onClickMenuShapesMerge: function (menu, item) { if (item && item.value) { this.api.asc_mergeSelectedShapes(item.value); - Common.component.Analytics.trackEvent('ToolBar', 'Shapes Merge'); } Common.NotificationCenter.trigger('edit:complete', this.toolbar); }, @@ -5270,7 +5199,6 @@ define([ onPrintAreaClick: function(menu, item) { if (this.api) { this.api.asc_ChangePrintArea(item.value); - Common.component.Analytics.trackEvent('ToolBar', 'Print Area'); } Common.NotificationCenter.trigger('edit:complete', this.toolbar); @@ -5289,7 +5217,6 @@ define([ this.api.asc_RemovePageBreak(); else if (item.value==='reset') this.api.asc_ResetAllPageBreaks(); - Common.component.Analytics.trackEvent('ToolBar', 'Page Break'); } Common.NotificationCenter.trigger('edit:complete', this.toolbar); @@ -5416,7 +5343,6 @@ define([ }); win.show(); - Common.component.Analytics.trackEvent('ToolBar', 'Print Titles'); } Common.NotificationCenter.trigger('edit:complete', this.toolbar); @@ -5521,7 +5447,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Text Formatting'); }, onHorizontalAlignMenu: function(menu, item) { @@ -5532,7 +5457,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Horizontal align'); }, onVerticalAlignMenu: function(menu, item) { @@ -5542,7 +5466,6 @@ define([ } Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Vertical align'); }, mouseenterSmartArt: function (groupName) { diff --git a/apps/spreadsheeteditor/main/app_dev.js b/apps/spreadsheeteditor/main/app_dev.js index 734b37cd2d..e585bab4ae 100644 --- a/apps/spreadsheeteditor/main/app_dev.js +++ b/apps/spreadsheeteditor/main/app_dev.js @@ -50,7 +50,6 @@ require.config({ keymaster : 'common/main/lib/core/keymaster', tip : 'common/main/lib/util/Tip', localstorage : 'common/main/lib/util/LocalStorage', - analytics : 'common/Analytics', gateway : 'common/Gateway', locale : 'common/locale', irregularstack : 'common/IrregularStack' @@ -85,11 +84,6 @@ require.config({ 'jquery' ] }, - analytics: { - deps: [ - 'jquery' - ] - } } }); @@ -97,7 +91,6 @@ require([ 'backbone', 'underscore', 'core', - 'analytics', 'gateway', 'locale', 'socketio', diff --git a/apps/spreadsheeteditor/mobile/src/controller/Error.jsx b/apps/spreadsheeteditor/mobile/src/controller/Error.jsx index ac5a05455e..b87c5145bc 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/Error.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/Error.jsx @@ -580,8 +580,6 @@ const ErrorController = inject('storeAppOptions','storeSpreadsheetInfo')(({store } ] }).open(); - - Common.component.Analytics.trackEvent('Internal Error', id.toString()); }; return null diff --git a/apps/spreadsheeteditor/mobile/src/controller/Main.jsx b/apps/spreadsheeteditor/mobile/src/controller/Main.jsx index db5f8f2f71..36fcc593aa 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/Main.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/Main.jsx @@ -747,10 +747,6 @@ class MainController extends Component { } } - if (appOptions.canAnalytics && false) { - Common.component.Analytics.initialize('UA-12442749-13', 'Spreadsheet Editor'); - } - Common.Gateway.on('processrightschange', this.onProcessRightsChange.bind(this)); Common.Gateway.on('downloadas', this.onDownloadAs.bind(this)); Common.Gateway.on('requestclose', this.onRequestClose.bind(this)); @@ -960,8 +956,6 @@ class MainController extends Component { text: [msg.msg.charAt(0).toUpperCase() + msg.msg.substring(1)], closeButton: true }).open(); - - Common.component.Analytics.trackEvent('External Error'); } } @@ -1213,7 +1207,6 @@ class MainController extends Component { if (this.api) this.api.asc_Print(); - Common.component.Analytics.trackEvent('Print'); } onProcessRightsChange (data) { diff --git a/apps/spreadsheeteditor/mobile/src/page/app.jsx b/apps/spreadsheeteditor/mobile/src/page/app.jsx index f5093b7c92..8d3fa8c5d8 100644 --- a/apps/spreadsheeteditor/mobile/src/page/app.jsx +++ b/apps/spreadsheeteditor/mobile/src/page/app.jsx @@ -4,8 +4,6 @@ import React from 'react'; import {App,Views,View,Navbar,NavLeft,NavRight,Link} from 'framework7-react'; import { f7ready } from 'framework7-react'; -import '../../../../common/Analytics.js'; - import '../../../../common/Gateway.js'; import routes from '../router/routes.js'; diff --git a/apps/spreadsheeteditor/mobile/src/store/appOptions.js b/apps/spreadsheeteditor/mobile/src/store/appOptions.js index 497d8ff286..fb92481372 100644 --- a/apps/spreadsheeteditor/mobile/src/store/appOptions.js +++ b/apps/spreadsheeteditor/mobile/src/store/appOptions.js @@ -80,7 +80,6 @@ export class storeAppOptions { this.isEditDiagram = config.mode == 'editdiagram'; this.isEditMailMerge = config.mode == 'editmerge'; this.mergeFolderUrl = config.mergeFolderUrl; - this.canAnalytics = false; this.canRequestClose = config.canRequestClose; this.canCloseEditor = false; @@ -119,7 +118,6 @@ export class storeAppOptions { this.canBrandingExt = params.asc_getCanBranding() && (typeof this.customization == 'object' || this.config.plugins); this.canModifyFilter = permissions.modifyFilter !== false; this.canAutosave = true; - this.canAnalytics = params.asc_getIsAnalyticsEnable(); this.canLicense = (licType === Asc.c_oLicenseResult.Success || licType === Asc.c_oLicenseResult.SuccessLimit); this.isLightVersion = params.asc_getIsLight(); this.buildVersion = params.asc_getBuildVersion(); diff --git a/apps/visioeditor/embed/index.html b/apps/visioeditor/embed/index.html index bb1da9b5f7..9b7e5c2417 100644 --- a/apps/visioeditor/embed/index.html +++ b/apps/visioeditor/embed/index.html @@ -253,7 +253,6 @@ - diff --git a/apps/visioeditor/embed/index_loader.html b/apps/visioeditor/embed/index_loader.html index a370c7f789..1c6df0802e 100644 --- a/apps/visioeditor/embed/index_loader.html +++ b/apps/visioeditor/embed/index_loader.html @@ -336,7 +336,6 @@ - diff --git a/apps/visioeditor/embed/js/ApplicationController.js b/apps/visioeditor/embed/js/ApplicationController.js index 527aa7fdc4..e9b405be9d 100644 --- a/apps/visioeditor/embed/js/ApplicationController.js +++ b/apps/visioeditor/embed/js/ApplicationController.js @@ -43,7 +43,6 @@ VE.ApplicationController = new(function(){ // Initialize analytics // ------------------------- -// Common.Analytics.initialize('UA-12442749-13', 'Embedded Draw Editor'); // Check browser @@ -146,8 +145,6 @@ VE.ApplicationController = new(function(){ api.asc_setDocInfo(docInfo); api.asc_getEditorPermissions(config.licenseUrl, config.customerId); api.asc_enableKeyEvents(true); - - Common.Analytics.trackEvent('Load', 'Start'); } embedConfig.docTitle = docConfig.title; @@ -497,14 +494,11 @@ VE.ApplicationController = new(function(){ if ( !!embedConfig.saveUrl && permissions.download !== false){ common.utils.openLink(embedConfig.saveUrl); } - - Common.Analytics.trackEvent('Save'); }); VE.ApplicationView.tools.get('#idt-print') .on('click', function(){ api.asc_Print(new Asc.asc_CDownloadOptions(null, $.browser.chrome || $.browser.safari || $.browser.opera || $.browser.mozilla && $.browser.versionNumber>86)); - Common.Analytics.trackEvent('Print'); }); VE.ApplicationView.tools.get('#idt-close') @@ -590,7 +584,6 @@ VE.ApplicationController = new(function(){ }); Common.Gateway.documentReady(); - Common.Analytics.trackEvent('Load', 'Complete'); requireUserAction = false; onPagesChanged(); setupScrollButtons(); @@ -807,8 +800,6 @@ VE.ApplicationController = new(function(){ } else { Common.Gateway.reportWarning(id, message); } - - Common.Analytics.trackEvent('Internal Error', id.toString()); } function onExternalMessage(error) { @@ -817,8 +808,6 @@ VE.ApplicationController = new(function(){ $('#id-error-mask-title').text(me.criticalErrorTitle); $('#id-error-mask-text').text(error.msg); $('#id-error-mask').css('display', 'block'); - - Common.Analytics.trackEvent('External Error'); } } diff --git a/apps/visioeditor/main/app.js b/apps/visioeditor/main/app.js index 2ae9532510..fe903bed3e 100644 --- a/apps/visioeditor/main/app.js +++ b/apps/visioeditor/main/app.js @@ -52,7 +52,6 @@ require.config({ keymaster : 'common/main/lib/core/keymaster', tip : 'common/main/lib/util/Tip', localstorage : 'common/main/lib/util/LocalStorage', - analytics : 'common/Analytics', gateway : 'common/Gateway', locale : 'common/locale', irregularstack : 'common/IrregularStack' @@ -96,11 +95,6 @@ require.config({ 'jquery' ] }, - analytics: { - deps: [ - 'jquery' - ] - } } }); @@ -109,7 +103,6 @@ require([ 'backbone', 'underscore', 'core', - 'analytics', 'gateway', 'locale' ], function (Sdk, Backbone, _, Core) { diff --git a/apps/visioeditor/main/app/controller/LeftMenu.js b/apps/visioeditor/main/app/controller/LeftMenu.js index e282a0ea17..a0fd05be95 100644 --- a/apps/visioeditor/main/app/controller/LeftMenu.js +++ b/apps/visioeditor/main/app/controller/LeftMenu.js @@ -360,8 +360,6 @@ define([ var recentDocPage = window.open(url); if (recentDocPage) recentDocPage.focus(); - - Common.component.Analytics.trackEvent('Open Recent'); }, clickToolbarSettings: function(obj) { diff --git a/apps/visioeditor/main/app/controller/Main.js b/apps/visioeditor/main/app/controller/Main.js index 6b4b18ad38..aa04f60543 100644 --- a/apps/visioeditor/main/app/controller/Main.js +++ b/apps/visioeditor/main/app/controller/Main.js @@ -350,7 +350,6 @@ define([ this.appOptions.sharingSettingsUrl = this.editorConfig.sharingSettingsUrl; this.appOptions.fileChoiceUrl = this.editorConfig.fileChoiceUrl; this.appOptions.saveAsUrl = this.editorConfig.saveAsUrl; - this.appOptions.canAnalytics = false; this.appOptions.canPlugins = false; this.appOptions.canMakeActionLink = false;//this.editorConfig.canMakeActionLink; this.appOptions.canRequestUsers = this.editorConfig.canRequestUsers; @@ -977,9 +976,6 @@ define([ $('.toolbar').prepend(Common.Utils.String.format('
', dummyClass)); setTimeout(function() { $(Common.Utils.String.format('.toolbar .lazy-{0}', dummyClass)).remove(); }, 10); - if (this.appOptions.canAnalytics && false) - Common.component.Analytics.initialize('UA-12442749-13', 'Visio Editor'); - Common.Gateway.on('applyeditrights', _.bind(me.onApplyEditRights, me)); Common.Gateway.on('processrightschange', _.bind(me.onProcessRightsChange, me)); Common.Gateway.on('processmouse', _.bind(me.onProcessMouse, me)); @@ -1143,7 +1139,6 @@ define([ // (this.editorConfig.canRequestEditRights || this.editorConfig.mode !== 'view'); // if mode=="view" -> canRequestEditRights must be defined this.appOptions.isEdit = this.appOptions.canLicense && this.appOptions.canEdit && this.editorConfig.mode !== 'view'; this.appOptions.canDownload = this.permissions.download !== false; - this.appOptions.canAnalytics = params.asc_getIsAnalyticsEnable(); this.appOptions.canComments = false;//this.appOptions.canLicense && (this.permissions.comment===undefined ? this.appOptions.isEdit : this.permissions.comment) && (this.editorConfig.mode !== 'view'); this.appOptions.canComments = false;//this.appOptions.canComments && !((typeof (this.editorConfig.customization) == 'object') && this.editorConfig.customization.comments===false); this.appOptions.canViewComments = false;//this.appOptions.canComments || !((typeof (this.editorConfig.customization) == 'object') && this.editorConfig.customization.comments===false); @@ -1332,8 +1327,6 @@ define([ if (msg && msg.msg) { msg.msg = (msg.msg).toString(); this.showTips([msg.msg.charAt(0).toUpperCase() + msg.msg.substring(1)], options); - - Common.component.Analytics.trackEvent('External Error'); } }, @@ -1589,8 +1582,6 @@ define([ if (!Common.Utils.ModalWindow.isVisible() || $('.asc-window.modal.alert[data-value="' + id + '"]').length<1) Common.UI.alert(config).$window.attr('data-value', id); - - (id!==undefined) && Common.component.Analytics.trackEvent('Internal Error', id.toString()); }, onCoAuthoringDisconnect: function() { @@ -1867,7 +1858,6 @@ define([ onPrint: function() { if (!this.appOptions.canPrint || Common.Utils.ModalWindow.isVisible()) return; Common.NotificationCenter.trigger('file:print'); - Common.component.Analytics.trackEvent('Print'); }, onPrintUrl: function(url) { @@ -1910,7 +1900,6 @@ define([ var opts = new Asc.asc_CDownloadOptions(); opts.asc_setAdvancedOptions(printopt); me.api.asc_Print(opts); - Common.component.Analytics.trackEvent('Print'); }; if (value) { diff --git a/apps/visioeditor/main/app/controller/Toolbar.js b/apps/visioeditor/main/app/controller/Toolbar.js index 07056c4e19..7b2d90e0dc 100644 --- a/apps/visioeditor/main/app/controller/Toolbar.js +++ b/apps/visioeditor/main/app/controller/Toolbar.js @@ -199,7 +199,6 @@ define([ this.api.OpenNewDocument(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'New Document'); }, onOpenDocument: function(btn, e) { @@ -207,7 +206,6 @@ define([ this.api.LoadDocumentFromDisk(); Common.NotificationCenter.trigger('edit:complete', this.toolbar); - Common.component.Analytics.trackEvent('ToolBar', 'Open Document'); }, onDownloadUrl: function(url, fileType) { diff --git a/apps/visioeditor/main/app_dev.js b/apps/visioeditor/main/app_dev.js index e7b5769816..13bb65a935 100644 --- a/apps/visioeditor/main/app_dev.js +++ b/apps/visioeditor/main/app_dev.js @@ -50,7 +50,6 @@ require.config({ keymaster : 'common/main/lib/core/keymaster', tip : 'common/main/lib/util/Tip', localstorage : 'common/main/lib/util/LocalStorage', - analytics : 'common/Analytics', gateway : 'common/Gateway', locale : 'common/locale', irregularstack : 'common/IrregularStack' @@ -86,11 +85,6 @@ require.config({ 'jquery' ] }, - analytics: { - deps: [ - 'jquery' - ] - } } }); @@ -98,7 +92,6 @@ require([ 'backbone', 'underscore', 'core', - 'analytics', 'gateway', 'locale', 'socketio', diff --git a/apps/visioeditor/mobile/src/controller/Error.jsx b/apps/visioeditor/mobile/src/controller/Error.jsx index cf58dfd2d8..6678a9438e 100644 --- a/apps/visioeditor/mobile/src/controller/Error.jsx +++ b/apps/visioeditor/mobile/src/controller/Error.jsx @@ -262,8 +262,6 @@ const ErrorController = inject('storeAppOptions','storeVisioInfo')(({storeAppOpt } ] }).open(); - - Common.component.Analytics.trackEvent('Internal Error', id.toString()); }; return null diff --git a/apps/visioeditor/mobile/src/controller/Main.jsx b/apps/visioeditor/mobile/src/controller/Main.jsx index f65d90161a..e943290188 100644 --- a/apps/visioeditor/mobile/src/controller/Main.jsx +++ b/apps/visioeditor/mobile/src/controller/Main.jsx @@ -638,7 +638,6 @@ class MainController extends Component { if (this.api) this.api.asc_Print(); - Common.component.Analytics.trackEvent('Print'); } onPrintUrl (url) { @@ -682,8 +681,6 @@ class MainController extends Component { text: [msg.msg.charAt(0).toUpperCase() + msg.msg.substring(1)], closeButton: true }).open(); - - Common.component.Analytics.trackEvent('External Error'); } } diff --git a/apps/visioeditor/mobile/src/page/app.jsx b/apps/visioeditor/mobile/src/page/app.jsx index 539b690fac..fa50f1f23e 100644 --- a/apps/visioeditor/mobile/src/page/app.jsx +++ b/apps/visioeditor/mobile/src/page/app.jsx @@ -3,8 +3,6 @@ import React from 'react'; import {App,Panel,Views,View,Popup,Page,Navbar,Toolbar,NavRight,Link,Block,BlockTitle,List,ListItem,ListInput,ListButton,BlockFooter} from 'framework7-react'; import { f7ready } from 'framework7-react'; -import '../../../../common/Analytics.js'; - import '../../../../common/Gateway.js'; import '../../../../common/main/lib/util/utils.js'; diff --git a/apps/visioeditor/mobile/src/store/appOptions.js b/apps/visioeditor/mobile/src/store/appOptions.js index 6dfa7ea982..9776950e27 100644 --- a/apps/visioeditor/mobile/src/store/appOptions.js +++ b/apps/visioeditor/mobile/src/store/appOptions.js @@ -64,7 +64,6 @@ export class storeAppOptions { this.sharingSettingsUrl = config.sharingSettingsUrl; this.fileChoiceUrl = config.fileChoiceUrl; this.mergeFolderUrl = config.mergeFolderUrl; - this.canAnalytics = false; this.canRequestClose = config.canRequestClose; this.canCloseEditor = false; @@ -100,7 +99,6 @@ export class storeAppOptions { if (params.asc_getRights() !== Asc.c_oRights.Edit) permissions.edit = false; this.review = (permissions.review === undefined) ? (permissions.edit !== false) : permissions.review; - this.canAnalytics = params.asc_getIsAnalyticsEnable(); this.canLicense = (licType === Asc.c_oLicenseResult.Success || licType === Asc.c_oLicenseResult.SuccessLimit); this.isLightVersion = params.asc_getIsLight(); this.buildVersion = params.asc_getBuildVersion(); From 9efae55d1bc87b391a5e9485c667a758a22381ac Mon Sep 17 00:00:00 2001 From: joshvanvliet Date: Thu, 11 Jun 2026 08:12:07 +0200 Subject: [PATCH 2/2] Cleanup --- apps/documenteditor/embed/js/ApplicationController.js | 7 +------ .../presentationeditor/embed/js/ApplicationController.js | 5 ----- apps/spreadsheeteditor/embed/js/ApplicationController.js | 7 +------ apps/visioeditor/embed/js/ApplicationController.js | 5 ----- build/appforms.json | 8 +------- build/documenteditor.json | 9 +-------- build/pdfeditor.json | 8 +------- build/presentationeditor.json | 9 +-------- build/spreadsheeteditor.json | 9 +-------- build/visioeditor.json | 9 +-------- 10 files changed, 8 insertions(+), 68 deletions(-) diff --git a/apps/documenteditor/embed/js/ApplicationController.js b/apps/documenteditor/embed/js/ApplicationController.js index 55cb07bf32..d501bb67f5 100644 --- a/apps/documenteditor/embed/js/ApplicationController.js +++ b/apps/documenteditor/embed/js/ApplicationController.js @@ -43,11 +43,6 @@ DE.ApplicationController = new(function(){ var LoadingDocument = -256, WarningShown = false; - // Initialize analytics - // ------------------------- - - - // Check browser // ------------------------- @@ -1217,4 +1212,4 @@ DE.ApplicationController = new(function(){ txtSecurityWarningLinkOk: 'This document is trying to connect to %1.
If you trust this site, press \"OK\".', errorCopyDisabled: 'For security reasons, the contents of this document cannot be copied to the clipboard.' } -})(); \ No newline at end of file +})(); diff --git a/apps/presentationeditor/embed/js/ApplicationController.js b/apps/presentationeditor/embed/js/ApplicationController.js index d9109eebe9..4ca64dda88 100644 --- a/apps/presentationeditor/embed/js/ApplicationController.js +++ b/apps/presentationeditor/embed/js/ApplicationController.js @@ -40,11 +40,6 @@ PE.ApplicationController = new(function(){ var LoadingDocument = -256, WarningShown = false; - // Initialize analytics - // ------------------------- - - - // Check browser // ------------------------- diff --git a/apps/spreadsheeteditor/embed/js/ApplicationController.js b/apps/spreadsheeteditor/embed/js/ApplicationController.js index 3b817878b5..a35c77fcf3 100644 --- a/apps/spreadsheeteditor/embed/js/ApplicationController.js +++ b/apps/spreadsheeteditor/embed/js/ApplicationController.js @@ -43,11 +43,6 @@ SSE.ApplicationController = new(function(){ var LoadingDocument = -256, WarningShown = false; - // Initialize analytics - // ------------------------- - - - // Check browser // ------------------------- @@ -1027,4 +1022,4 @@ SSE.ApplicationController = new(function(){ txtNo: 'No', errorCopyDisabled: 'For security reasons, the contents of this document cannot be copied to the clipboard.' } -})(); \ No newline at end of file +})(); diff --git a/apps/visioeditor/embed/js/ApplicationController.js b/apps/visioeditor/embed/js/ApplicationController.js index e9b405be9d..6263dd2310 100644 --- a/apps/visioeditor/embed/js/ApplicationController.js +++ b/apps/visioeditor/embed/js/ApplicationController.js @@ -40,11 +40,6 @@ VE.ApplicationController = new(function(){ var LoadingDocument = -256, WarningShown = false; - // Initialize analytics - // ------------------------- - - - // Check browser // ------------------------- diff --git a/build/appforms.json b/build/appforms.json index f10fdef926..e07dfe4936 100644 --- a/build/appforms.json +++ b/build/appforms.json @@ -41,7 +41,6 @@ "notification": "common/main/lib/core/NotificationCenter", "keymaster": "common/main/lib/core/keymaster", "tip": "common/main/lib/util/Tip", - "analytics": "common/Analytics", "gateway": "common/Gateway", "locale": "common/locale", "irregularstack": "common/IrregularStack" @@ -92,11 +91,6 @@ "deps": [ "jquery" ] - }, - "analytics": { - "deps": [ - "jquery" - ] } } } @@ -168,4 +162,4 @@ "deploy-app-forms" ] } -} \ No newline at end of file +} diff --git a/build/documenteditor.json b/build/documenteditor.json index abe99434ed..3a92865184 100644 --- a/build/documenteditor.json +++ b/build/documenteditor.json @@ -38,7 +38,6 @@ "notification": "common/main/lib/core/NotificationCenter", "keymaster": "common/main/lib/core/keymaster", "tip": "common/main/lib/util/Tip", - "analytics": "common/Analytics", "gateway": "common/Gateway", "locale": "common/locale", "irregularstack": "common/IrregularStack" @@ -84,11 +83,6 @@ "deps": [ "jquery" ] - }, - "analytics": { - "deps": [ - "jquery" - ] } } } @@ -348,7 +342,6 @@ "src": [ "../apps/common/locale.js", "../apps/common/Gateway.js", - "../apps/common/Analytics.js", "../apps/common/main/lib/mods/dropdown.js", "../apps/common/main/lib/mods/modal.js", "../apps/common/main/lib/mods/tooltip.js", @@ -411,4 +404,4 @@ "deploy-app-embed" ] } -} \ No newline at end of file +} diff --git a/build/pdfeditor.json b/build/pdfeditor.json index 60e1e57d7f..db3759e5e3 100644 --- a/build/pdfeditor.json +++ b/build/pdfeditor.json @@ -39,7 +39,6 @@ "notification": "common/main/lib/core/NotificationCenter", "keymaster": "common/main/lib/core/keymaster", "tip": "common/main/lib/util/Tip", - "analytics": "common/Analytics", "gateway": "common/Gateway", "locale": "common/locale", "irregularstack": "common/IrregularStack" @@ -90,11 +89,6 @@ "deps": [ "jquery" ] - }, - "analytics": { - "deps": [ - "jquery" - ] } } } @@ -220,4 +214,4 @@ "deploy-app-main" ] } -} \ No newline at end of file +} diff --git a/build/presentationeditor.json b/build/presentationeditor.json index fb8e909365..e39f8bcdf2 100644 --- a/build/presentationeditor.json +++ b/build/presentationeditor.json @@ -38,7 +38,6 @@ "notification": "common/main/lib/core/NotificationCenter", "keymaster": "common/main/lib/core/keymaster", "tip": "common/main/lib/util/Tip", - "analytics": "common/Analytics", "gateway": "common/Gateway", "locale": "common/locale", "irregularstack": "common/IrregularStack" @@ -84,11 +83,6 @@ "deps": [ "jquery" ] - }, - "analytics": { - "deps": [ - "jquery" - ] } } } @@ -346,7 +340,6 @@ "src": [ "../apps/common/locale.js", "../apps/common/Gateway.js", - "../apps/common/Analytics.js", "../apps/common/main/lib/mods/dropdown.js", "../apps/common/main/lib/mods/modal.js", "../apps/common/main/lib/mods/tooltip.js", @@ -409,4 +402,4 @@ "deploy-app-embed" ] } -} \ No newline at end of file +} diff --git a/build/spreadsheeteditor.json b/build/spreadsheeteditor.json index 6aa6fbfd87..f98241d3f8 100644 --- a/build/spreadsheeteditor.json +++ b/build/spreadsheeteditor.json @@ -38,7 +38,6 @@ "notification": "common/main/lib/core/NotificationCenter", "keymaster": "common/main/lib/core/keymaster", "tip": "common/main/lib/util/Tip", - "analytics": "common/Analytics", "gateway": "common/Gateway", "locale": "common/locale", "irregularstack": "common/IrregularStack" @@ -84,11 +83,6 @@ "deps": [ "jquery" ] - }, - "analytics": { - "deps": [ - "jquery" - ] } } } @@ -359,7 +353,6 @@ "src": [ "../apps/common/locale.js", "../apps/common/Gateway.js", - "../apps/common/Analytics.js", "../apps/common/main/lib/mods/dropdown.js", "../apps/common/main/lib/mods/modal.js", "../apps/common/main/lib/mods/tooltip.js", @@ -422,4 +415,4 @@ "deploy-app-embed" ] } -} \ No newline at end of file +} diff --git a/build/visioeditor.json b/build/visioeditor.json index 6698044a4d..3c4b9630f2 100644 --- a/build/visioeditor.json +++ b/build/visioeditor.json @@ -38,7 +38,6 @@ "notification": "common/main/lib/core/NotificationCenter", "keymaster": "common/main/lib/core/keymaster", "tip": "common/main/lib/util/Tip", - "analytics": "common/Analytics", "gateway": "common/Gateway", "locale": "common/locale", "irregularstack": "common/IrregularStack" @@ -84,11 +83,6 @@ "deps": [ "jquery" ] - }, - "analytics": { - "deps": [ - "jquery" - ] } } } @@ -331,7 +325,6 @@ "src": [ "../apps/common/locale.js", "../apps/common/Gateway.js", - "../apps/common/Analytics.js", "../apps/common/main/lib/mods/dropdown.js", "../apps/common/main/lib/mods/modal.js", "../apps/common/main/lib/mods/tooltip.js", @@ -390,4 +383,4 @@ "deploy-app-embed" ] } -} \ No newline at end of file +}