diff --git a/src/editor/ScratchJr.js b/src/editor/ScratchJr.js index 1d8fc38..52c2cf8 100644 --- a/src/editor/ScratchJr.js +++ b/src/editor/ScratchJr.js @@ -381,6 +381,7 @@ export default class ScratchJr { ScratchJr.stopStripsFromTop(e); ScratchJr.unfocus(e); ScratchJr.saveProject(e, ScratchJr.flippage); + iOS.analyticsEvent('editor', 'project_editor_close'); } static flippage () { diff --git a/src/entry/editor.js b/src/entry/editor.js index 2b3be6e..74d6925 100644 --- a/src/entry/editor.js +++ b/src/entry/editor.js @@ -5,6 +5,7 @@ import Record from '../editor/ui/Record'; export function editorMain () { iOS.getsettings(doNext); + iOS.analyticsEvent('editor', 'project_editor_open'); function doNext (str) { var list = str.split(','); iOS.path = list[1] == '0' ? list[0] + '/' : undefined;