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:
1 parent
c5b5931e11
commit
e746b98d83
8 files changed
-46
No files matched your search
@@ -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({
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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 => ({
|
||||
|
||||
@@ -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, '.');
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in new issue
Block a user