Remove some of the high-volume analytics events

Too much traffic, not enough value. Leaving stuff having to do with tips library/tutorial card navigation as well as hardware extension connectivity, as those help us find issues with Scratch.
This commit is contained in:
Paul Kaplan committed 2019-03-11 15:14:30 -04:00
1 parent c5b5931e11
commit e746b98d83
8 files changed
-46

No files matched your search

-1
View File
@@ -60,7 +60,6 @@ class LibraryComponent extends React.Component {
}
handleClose () {
this.props.onRequestClose();
analytics.pageview(`/${this.props.id}/search?q=${this.state.filterQuery}`);
}
handleTagClick (tag) {
this.setState({
-5
View File
@@ -36,11 +36,6 @@ class BackdropLibrary extends React.Component {
};
this.props.vm.setEditingTarget(this.props.stageID);
this.props.vm.addBackdrop(item.md5, vmBackdrop);
analytics.event({
category: 'library',
action: 'Select Backdrop',
label: item.name
});
}
render () {
return (
-8
View File
@@ -24,19 +24,11 @@ class Controls extends React.Component {
this.props.vm.start();
}
this.props.vm.greenFlag();
analytics.event({
category: 'general',
action: 'Green Flag'
});
}
}
handleStopAllClick (e) {
e.preventDefault();
this.props.vm.stopAll();
analytics.event({
category: 'general',
action: 'Stop Button'
});
}
render () {
const {
-5
View File
@@ -38,11 +38,6 @@ class CostumeLibrary extends React.PureComponent {
skinId: null
};
this.props.vm.addCostumeFromLibrary(item.md5, vmCostume);
analytics.event({
category: 'library',
action: 'Select Costume',
label: item.name
});
}
render () {
return (
-12
View File
@@ -46,18 +46,6 @@ class ExtensionLibrary extends React.PureComponent {
});
}
}
let gaLabel = '';
if (typeof (item.name) === 'string') {
gaLabel = item.name;
} else {
// Name is localized, get the default message for the gaLabel
gaLabel = item.name.props.defaultMessage;
}
analytics.event({
category: 'library',
action: 'Select Extension',
label: gaLabel
});
}
render () {
const extensionLibraryThumbnailData = extensionLibraryContent.map(extension => ({
-5
View File
@@ -119,11 +119,6 @@ class SBFileUploader extends React.Component {
const filename = this.fileToUpload && this.fileToUpload.name;
this.props.vm.loadProject(this.reader.result)
.then(() => {
analytics.event({
category: 'project',
action: 'Import Project File',
nonInteraction: true
});
// Remove the hash if any (without triggering a hash change event or a reload)
try { // Can fail e.g. when GUI is loaded from static file (integration tests)
history.replaceState({}, document.title, '.');
-5
View File
@@ -125,11 +125,6 @@ class SoundLibrary extends React.PureComponent {
this.props.vm.addSound(vmSound).then(() => {
this.props.onNewSound();
});
analytics.event({
category: 'library',
action: 'Select Sound',
label: soundItem.name
});
}
render () {
// @todo need to use this hack to avoid library using md5 for image
-5
View File
@@ -32,11 +32,6 @@ class SpriteLibrary extends React.PureComponent {
this.props.vm.addSprite(JSON.stringify(item.json)).then(() => {
this.props.onActivateBlocksTab();
});
analytics.event({
category: 'library',
action: 'Select Sprite',
label: item.name
});
}
render () {
return (