1
0
mirror of https://github.com/adobe/brackets.git synced 2024-11-20 09:53:00 +01:00

Sending New File Save/Open Analytics Data (#14700)

This commit is contained in:
Nitesh Kumar 2019-04-12 23:49:00 +05:30 committed by Shubham Yadav
parent 6f80d3c8c2
commit aa085a16e0
2 changed files with 11 additions and 0 deletions

View File

@ -689,6 +689,15 @@ define(function (require, exports, module) {
var doc = DocumentManager.createUntitledDocument(_nextUntitledIndexToUse++, defaultExtension);
MainViewManager._edit(MainViewManager.ACTIVE_PANE, doc);
HealthLogger.sendAnalyticsData(
HealthLogger.commonStrings.USAGE +
HealthLogger.commonStrings.FILE_OPEN +
HealthLogger.commonStrings.FILE_NEW,
HealthLogger.commonStrings.USAGE,
HealthLogger.commonStrings.FILE_OPEN,
HealthLogger.commonStrings.FILE_NEW
);
return new $.Deferred().resolve(doc).promise();
}
@ -968,6 +977,7 @@ define(function (require, exports, module) {
} else {
openNewFile();
}
HealthLogger.fileSaved(doc);
})
.fail(function (error) {
_showSaveFileError(error, path)

View File

@ -42,6 +42,7 @@ define(function (require, exports, module) {
var commonStrings = { USAGE: "usage",
FILE_OPEN: "fileOpen",
FILE_NEW: "newfile",
FILE_SAVE: "fileSave",
FILE_CLOSE: "fileClose",
LANGUAGE_CHANGE: "languageChange",