Tracks event prop representing the number of exported transactions is inaccurate #10172
Labels
focus: reporting
priority: medium
The issue/PR is medium priority—non-critical functionality loss, minimal effect on usability
type: bug
The issue is a confirmed bug.
Milestone
Describe the bug
The tracks event
wcpay_transactions_download_csv_click
→exported_transactions
property does not accurately represent the number of exported transactions when the async, server-based export method is used.The inaccuracy of this data has made it more difficult to understand how many transactions are being exported by merchants, which is important to help inform us how this flow is being utilised.
The tracks event property description (found on the
wcpay_transactions_download_csv_click
tracks event listing) describes it as the "Number of transactions included in the downloaded report". Instead, what is provided is the number of transactions currently visible in the UI (rows.length
).woocommerce-payments/client/transactions/list/index.tsx
Lines 703 to 708 in a904341
This correct value to use here is provided by the
/transactions/download
POST responseexported_transactions
value.To Reproduce
&per_page=1
to force this)t.gif
, representing tracks eventsDownload
t.gif
network with the_en
query paramwcadmin_wcpay_transactions_download_csv_click
. Theexported_transactions
query param incorrectly provides the current page value (default25
), rather than the total number of transactions that will be exported.Expected behavior
The tracks event
wcpay_transactions_download_csv_click
→exported_transactions
property should accurately represent the "Number of transactions included in the downloaded report" when the async, server-based export method is used. This correct value to use is provided by the/transactions/download
POST responseexported_transactions
value.Additional information
The text was updated successfully, but these errors were encountered: