mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-28 18:15:37 -05:00
added project_editor_open and _close analytics events
This commit is contained in:
parent
2762cdf271
commit
abd8a1bb86
2 changed files with 2 additions and 0 deletions
|
@ -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 () {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue