This repository was archived by the owner on Aug 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 326
Add more analytics events, and use action as event type #260
Merged
benjiwheeler
merged 4 commits into
scratchfoundation:develop
from
benjiwheeler:analytics
Jun 24, 2020
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
9e30b90
ios and android log event action as event type
benjiwheeler caa7aed
log more events to analytics
benjiwheeler 2762cdf
refactor toggleGrid to be clearer, only send analytics in response to…
benjiwheeler abd8a1b
added project_editor_open and _close analytics events
benjiwheeler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -729,7 +729,7 @@ export default class UI { | |
| UI.creatTopBarClicky(div, 'go', 'go on', UI.toggleRun); | ||
| UI.creatTopBarClicky(div, 'resetall', 'resetall', UI.resetAllSprites); | ||
| UI.creatTopBarClicky(div, 'full', 'fullscreen', ScratchJr.fullScreen); | ||
| UI.toggleGrid(true); | ||
| UI.setShowGrid(false); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that I changed this function to be more clear, and to better distinguish it from |
||
| } | ||
|
|
||
| static resetAllSprites (e) { | ||
|
|
@@ -756,11 +756,12 @@ export default class UI { | |
|
|
||
| static switchGrid () { | ||
| ScratchAudio.sndFX('tap.wav'); | ||
| UI.toggleGrid(!Grid.hidden); | ||
| UI.setShowGrid(Grid.hidden); | ||
| iOS.analyticsEvent('editor', Grid.hidden ? 'hide_grid' : 'show_grid'); | ||
| } | ||
|
|
||
| static toggleGrid (b) { | ||
| Grid.hide(b); | ||
| static setShowGrid (b) { | ||
| Grid.hide(!b); | ||
| gn('grid').className = Grid.hidden ? 'gridToggle off' : 'gridToggle on'; | ||
| } | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this and it seems to only be called when you click the home button while within the project editor. The function name "flip" is a little confusing