Skip to content

Commit

Permalink
Remove outdated wcpay_transactions_download tracking events. (#7627)
Browse files Browse the repository at this point in the history
  • Loading branch information
mordeth authored Nov 7, 2023
1 parent e3b86b4 commit f726710
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
4 changes: 4 additions & 0 deletions changelog/remove-transactions-download-tracks-event
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: dev

Remove outdated wcpay_transactions_download tracking events.
12 changes: 0 additions & 12 deletions client/transactions/list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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 );
Expand Down

0 comments on commit f726710

Please sign in to comment.