Send tracks event when historical data is deleted.

This commit is contained in:
Jeff Stieler 2019-07-11 13:50:24 -06:00
parent e5424fdd4d
commit 562a1a231d
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@ import { stringifyQuery } from '@woocommerce/navigation';
*/
import { formatParams } from './utils';
import HistoricalDataLayout from './layout';
import { recordEvent } from 'lib/tracks';
class HistoricalData extends Component {
constructor() {
@ -100,6 +101,7 @@ class HistoricalData extends Component {
this.setState( {
activeImport: false,
} );
recordEvent( 'analytics_import_delete_previous' );
}
onReimportData() {