From f726710b1d4073234c59486c98cac452791d1930 Mon Sep 17 00:00:00 2001 From: Cvetan Cvetanov Date: Tue, 7 Nov 2023 19:41:14 +0200 Subject: [PATCH] Remove outdated `wcpay_transactions_download` tracking events. (#7627) --- changelog/remove-transactions-download-tracks-event | 4 ++++ client/transactions/list/index.tsx | 12 ------------ 2 files changed, 4 insertions(+), 12 deletions(-) create mode 100644 changelog/remove-transactions-download-tracks-event diff --git a/changelog/remove-transactions-download-tracks-event b/changelog/remove-transactions-download-tracks-event new file mode 100644 index 00000000000..e219486bb36 --- /dev/null +++ b/changelog/remove-transactions-download-tracks-event @@ -0,0 +1,4 @@ +Significance: minor +Type: dev + +Remove outdated wcpay_transactions_download tracking events. diff --git a/client/transactions/list/index.tsx b/client/transactions/list/index.tsx index 8b50c36134c..3dbab3b6fa3 100644 --- a/client/transactions/list/index.tsx +++ b/client/transactions/list/index.tsx @@ -603,12 +603,6 @@ export const TransactionsList = ( userEmail ) ); - - wcpayTracks.recordEvent( 'wcpay_transactions_download', { - exported_transactions: exportedTransactions, - total_transactions: exportedTransactions, - download_type: downloadType, - } ); } catch { createNotice( 'error', @@ -624,12 +618,6 @@ export const TransactionsList = ( generateCSVFileName( title, params ), generateCSVDataFromTable( columnsToDisplay, rows ) ); - - wcpayTracks.recordEvent( 'wcpay_transactions_download', { - exported_transactions: rows.length, - total_transactions: transactionsSummary.count, - download_type: downloadType, - } ); } setIsDownloading( false );