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' ;
@@ -434,6 +435,12 @@ class Blocks extends React.Component {
434435 }
435436 }
436437 handleExtensionAdded ( categoryInfo ) {
438+ analytics . event ( {
439+ category : 'extensions' ,
440+ action : 'added' ,
441+ label : categoryInfo . id
442+ } ) ;
443+
437444 const defineBlocks = blockInfoArray => {
438445 if ( blockInfoArray && blockInfoArray . length > 0 ) {
439446 const staticBlocksJson = [ ] ;
You can’t perform that action at this time.
0 commit comments