From abd8a1bb86afab1f6b8415a21da8eb7891c80791 Mon Sep 17 00:00:00 2001 From: Ben Wheeler Date: Mon, 20 Apr 2020 15:18:14 -0400 Subject: [PATCH] added project_editor_open and _close analytics events --- src/editor/ScratchJr.js | 1 + src/entry/editor.js | 1 + 2 files changed, 2 insertions(+) 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;