Merge pull request #279 from LLK/newblock-analytics

update new_block event
This commit is contained in:
chrisgarrity 2020-07-09 13:42:43 -04:00 committed by GitHub
commit fc8fdcecf6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -582,7 +582,7 @@ export default class Palette {
e.preventDefault(); e.preventDefault();
switch (Palette.getLandingPlace(element, e)) { switch (Palette.getLandingPlace(element, e)) {
case 'scripts': case 'scripts':
iOS.analyticsEvent('editor', 'new_block', element.owner.blocktype); iOS.analyticsEvent('editor', 'new_block_' + element.owner.blocktype);
var sc = ScratchJr.getActiveScript(); var sc = ScratchJr.getActiveScript();
var dx = localx(sc, element.left); var dx = localx(sc, element.left);
var dy = localy(sc, element.top); var dy = localy(sc, element.top);