Send tracks event when advanced filter match type is changed.

This commit is contained in:
Jeff Stieler 2019-07-09 16:45:31 -06:00
parent a13487265c
commit ce731b958a
2 changed files with 7 additions and 0 deletions

View File

@ -54,6 +54,9 @@ export default class ReportFilters extends Component {
case 'clear_all':
recordEvent( 'analytics_filters_clear_all', { report } );
break;
case 'match':
recordEvent( 'analytics_filters_all_any', { report, value: data.match } );
break;
}
}

View File

@ -75,7 +75,11 @@ class AdvancedFilters extends Component {
}
onMatchChange( match ) {
const { onAdvancedFilterAction } = this.props;
this.setState( { match } );
onAdvancedFilterAction( 'match', { match } );
}
onFilterChange( key, property, value ) {