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.stopStripsFromTop(e);
ScratchJr.unfocus(e); ScratchJr.unfocus(e);
ScratchJr.saveProject(e, ScratchJr.flippage); ScratchJr.saveProject(e, ScratchJr.flippage);
iOS.analyticsEvent('editor', 'project_editor_close');
} }
static flippage () { static flippage () {

View file

@ -5,6 +5,7 @@ import Record from '../editor/ui/Record';
export function editorMain () { export function editorMain () {
iOS.getsettings(doNext); iOS.getsettings(doNext);
iOS.analyticsEvent('editor', 'project_editor_open');
function doNext (str) { function doNext (str) {
var list = str.split(','); var list = str.split(',');
iOS.path = list[1] == '0' ? list[0] + '/' : undefined; iOS.path = list[1] == '0' ? list[0] + '/' : undefined;