added project_editor_open and _close analytics events

This commit is contained in:
Ben Wheeler 2020-04-20 15:18:14 -04:00
parent 2762cdf271
commit abd8a1bb86
2 changed files with 2 additions and 0 deletions

View file

@ -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 () {

View file

@ -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;