', 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..4ca64dda88 100644
--- a/apps/presentationeditor/embed/js/ApplicationController.js
+++ b/apps/presentationeditor/embed/js/ApplicationController.js
@@ -40,12 +40,6 @@ PE.ApplicationController = new(function(){
var LoadingDocument = -256,
WarningShown = false;
- // Initialize analytics
- // -------------------------
-
-// Common.Analytics.initialize('UA-12442749-13', 'Embedded Presentation Editor');
-
-
// Check browser
// -------------------------
@@ -149,7 +143,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 +367,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 +515,6 @@ PE.ApplicationController = new(function(){
$('#btn-play').on('click', onPlayStart);
Common.Gateway.documentReady();
- Common.Analytics.trackEvent('Load', 'Complete');
requireUserAction = false;
}
@@ -775,7 +765,6 @@ PE.ApplicationController = new(function(){
Common.Gateway.reportWarning(id, message);
}
- Common.Analytics.trackEvent('Internal Error', id.toString());
}
function onExternalMessage(error) {
@@ -785,7 +774,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..a35c77fcf3 100644
--- a/apps/spreadsheeteditor/embed/js/ApplicationController.js
+++ b/apps/spreadsheeteditor/embed/js/ApplicationController.js
@@ -43,12 +43,6 @@ SSE.ApplicationController = new(function(){
var LoadingDocument = -256,
WarningShown = false;
- // Initialize analytics
- // -------------------------
-
-// Common.Analytics.initialize('UA-12442749-13', 'Embedded Spreadsheet Editor');
-
-
// Check browser
// -------------------------
@@ -165,7 +159,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 +444,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 +553,6 @@ SSE.ApplicationController = new(function(){
});
Common.Gateway.documentReady();
- Common.Analytics.trackEvent('Load', 'Complete');
requireUserAction = false;
onSheetsChanged();
setupScrollButtons();
@@ -820,7 +810,6 @@ SSE.ApplicationController = new(function(){
Common.Gateway.reportWarning(id, message);
}
- Common.Analytics.trackEvent('Internal Error', id.toString());
}
function onExternalMessage(error) {
@@ -830,7 +819,6 @@ SSE.ApplicationController = new(function(){
$('#id-error-mask-text').text(error.msg);
$('#id-error-mask').css('display', 'block');
- Common.Analytics.trackEvent('External Error');
}
}
@@ -1034,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/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..6263dd2310 100644
--- a/apps/visioeditor/embed/js/ApplicationController.js
+++ b/apps/visioeditor/embed/js/ApplicationController.js
@@ -40,12 +40,6 @@ VE.ApplicationController = new(function(){
var LoadingDocument = -256,
WarningShown = false;
- // Initialize analytics
- // -------------------------
-
-// Common.Analytics.initialize('UA-12442749-13', 'Embedded Draw Editor');
-
-
// Check browser
// -------------------------
@@ -146,8 +140,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 +489,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 +579,6 @@ VE.ApplicationController = new(function(){
});
Common.Gateway.documentReady();
- Common.Analytics.trackEvent('Load', 'Complete');
requireUserAction = false;
onPagesChanged();
setupScrollButtons();
@@ -807,8 +795,6 @@ VE.ApplicationController = new(function(){
} else {
Common.Gateway.reportWarning(id, message);
}
-
- Common.Analytics.trackEvent('Internal Error', id.toString());
}
function onExternalMessage(error) {
@@ -817,8 +803,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();
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
+}