GoogleChromeLabs / ps-analysis-tool

Privacy Sandbox Analysis Chrome Extension and CLI for analysis and understanding of cookie usage on web pages, and new privacy-preserving Chrome APIs
https://www.privacysandbox.com
Apache License 2.0
90 stars 19 forks source link

Add option to export the cookie list #275

Closed nyb1030 closed 5 months ago

nyb1030 commented 8 months ago

Feature Request

Description: It is similar to this issue #228 , but it would be great to have an option to export cookie table. According to the Wiki, the developer should compare and contrast cookies between Chrome open (Chrome instance with 3P cookies enabled) and Chrome private (Chrome instance with 3P cookies disabled). However currently it is not possible to export the cookie table, which means that the developers should manually compare the cookie table side-by-side. This might be ok for sites using a few cookies, but would become impossible for any sites using several hundred cookies.

In the Application tab on DevTool, it is possible to copy & paste the table (source). However, on PSAT, when trying to copy and paste in this manner, the column / row data is lost, and all data in different column falls into single column, like below: 574eNLWr4rh7XLX

The best possible solution would be to have a dedicated "export to" button, but if it's difficult, the tool should offer functionality to copy and paste while sustaining the format.

amedina commented 8 months ago

This feature is already supported in the CLI. Not clear what use case this would enable for users using the extension. We may add this capability in later versions.

nyb1030 commented 7 months ago

Thanks! Some partners mentioned that using command line is hard for non-technical members. I think it is important that we make this tool somewhat non-technical friendly to scale the 3PCD preparation. Also, I have found some potentially bugs in the CLI tool version. I will file them later.

amedina commented 7 months ago

We are aware of a few issues with the CLI, which are being fixed and will be part of 0.4.

Regardless, we can add a feature for exporting the cookies from PSAT in CSV format so that they can be loaded side by side on a spreadsheet to compare the results from different testing environments. We will added to the prioritization queue.

ayushnirwal commented 7 months ago

@amedina Yes, this can be seen as a potential feature in v0.5 release. Since, CLI does not support targeting a particular CUJ, It will be a nice addition.

maitreyie-chavan commented 5 months ago

Addressed and released as a part of v0.5