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
100 stars 23 forks source link

Enhance Aggregated Report CSV with URL Column #850

Open gagan0123 opened 1 week ago

gagan0123 commented 1 week ago

Feature Request

Description: Enhance the existing aggregated report.csv report generated by the PSAT CLI to include the URL for each row of cookie data.

Motivation: Currently, the aggregated report.csv file provides a summary of cookie counts across all scanned URLs. However, it lacks the context of which URL each row of data corresponds to. This makes it difficult to analyze and compare cookie usage across different websites directly from the aggregated report.

User Story: As a PSAT CLI user analyzing aggregated reports, I want to see the corresponding URL for each row of cookie data so that I can easily compare cookie usage across multiple websites within a single view.

Acceptance Criteria:

Additional Information: The current format of the aggregated .csv file is:

Total Cookies, 34
Total First Party Cookies, 32
Total Third Party Cookies, 2
...
Uncategorized Cookies with Issues, 8

The desired format after this feature implementation should be:

URL,Total Cookies,First Party,Third Party,Analytics,Functional,Marketing,Uncategorized,Cookies Issues,Analytics Issues,Functional Issues,Marketing Issues,Uncategorized Issues
"Aggregated",46,36,5,2,4,4,24,8,0,0,0,8
"https://example.com",34,32,2,2,4,4,24,8,0,0,0,8
"https://another-example.com",12,10,2,1,3,1,7,3,0,1,0,2 
...

This change will significantly improve the usability of the aggregated .csv report for analysis and comparison purposes.

gagan0123 commented 3 days ago

@amovar18

Just summarizing the changes made to this feature request,

  1. Removed the repeated term "Cookies" from most column titles.
  2. Moved the Aggregated total of all columns for the entire list to the 2nd Row instead of being at the last row.