mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 10:14:13 +00:00
feature(config) rm analytics
This commit is contained in:
parent
ae37b43632
commit
af789ae8ee
6 changed files with 0 additions and 43 deletions
|
|
@ -252,8 +252,6 @@ var Util, DOM, CloudFunc, join;
|
|||
dirPath = DOM.getCurrentDirPath(),
|
||||
Listeners = CloudCmd.Listeners;
|
||||
Listeners.init();
|
||||
/* загружаем Google Analytics */
|
||||
Listeners.analytics();
|
||||
|
||||
Listeners.setOnPanel(LEFT);
|
||||
Listeners.setOnPanel(RIGHT);
|
||||
|
|
|
|||
|
|
@ -1,20 +0,0 @@
|
|||
var DOM, ga, GoogleAnalyticsObject;
|
||||
|
||||
(function(DOM) {
|
||||
'use strict';
|
||||
|
||||
GoogleAnalyticsObject = 'ga';
|
||||
|
||||
ga = {
|
||||
l: new Date().getTime(),
|
||||
q: [['create', 'UA-33536569-2', 'auto'], ['send', 'pageview']]
|
||||
};
|
||||
|
||||
DOM.Events.addError(function(msg, url, line) {
|
||||
ga.push(['_trackEvent', 'JS Error', msg,
|
||||
navigator.userAgent + ' -> ' + url + ' : ' + line]);
|
||||
});
|
||||
|
||||
DOM.load.js('//www.google-analytics.com/analytics.js');
|
||||
|
||||
})(DOM);
|
||||
|
|
@ -19,24 +19,6 @@ var Util, DOM, CloudFunc, CloudCmd;
|
|||
'touchstart' : Util.exec.with(execIfNotUL, onTouch)
|
||||
};
|
||||
|
||||
this.analytics = function() {
|
||||
Files.get('config', function(error, config) {
|
||||
var analytics = config.analytics,
|
||||
online = config.online;
|
||||
|
||||
if (analytics && online) {
|
||||
Events.addOnce('mousemove', function() {
|
||||
var FIVE_SECONDS = 5000,
|
||||
url = CloudCmd.LIBDIRCLIENT + 'analytics.js';
|
||||
|
||||
setTimeout(function() {
|
||||
DOM.load.js(url);
|
||||
}, FIVE_SECONDS);
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
this.init = function () {
|
||||
appStorage();
|
||||
contextMenu();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue