File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
packages/scratch-gui/src/containers Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import React from 'react';
77import VMScratchBlocks from '../lib/blocks' ;
88import VM from '@scratch/scratch-vm' ;
99
10+ import analytics from '../lib/analytics' ;
1011import log from '../lib/log.js' ;
1112import Prompt from './prompt.jsx' ;
1213import BlocksComponent from '../components/blocks/blocks.jsx' ;
@@ -440,6 +441,12 @@ class Blocks extends React.Component {
440441 }
441442 }
442443 handleExtensionAdded ( categoryInfo ) {
444+ analytics . event ( {
445+ category : 'extensions' ,
446+ action : 'added' ,
447+ label : categoryInfo . id
448+ } ) ;
449+
443450 const defineBlocks = blockInfoArray => {
444451 if ( blockInfoArray && blockInfoArray . length > 0 ) {
445452 const staticBlocksJson = [ ] ;
You can’t perform that action at this time.
0 commit comments