Send tracks event when adding dashboard section.
This commit is contained in:
parent
29a46f0665
commit
314e6d90e0
|
@ -103,7 +103,9 @@ class CustomizableDashboard extends Component {
|
|||
toggledSection.isVisible = ! toggledSection.isVisible;
|
||||
sections.push( toggledSection );
|
||||
|
||||
if ( ! toggledSection.isVisible ) {
|
||||
if ( toggledSection.isVisible ) {
|
||||
recordEvent( 'dash_section_add', { key: toggledSection.key } );
|
||||
} else {
|
||||
recordEvent( 'dash_section_remove', { key: toggledSection.key } );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue