Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email Report files alphabetical order should work in all languages, by eg "Report for URL Website - YYYY-MM-DD to YYYY-MM-D2 - $Translated_Date_string" #19122

Open
atom-box opened this issue Apr 19, 2022 · 2 comments
Labels
c: Consistent Reports & Analytics UX For bugs and features that make Analytics reporting UI behave more consistently. c: Email Reports For bugs and features related to their analytics reports received by email. c: i18n For issues around internationalisation and localisation. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement.
Milestone

Comments

@atom-box
Copy link

atom-box commented Apr 19, 2022

A user suggests the following:

Is there a way to fix the filenames for emailed PDF reports? Matomo defaults to the file name of (for example) "Report abc Website - March 18 - April 16, 2022.pdf" but this makes it impossible to list reports chronologically when they are in alphabetical order.

If archiving PDF reports from Matomo, the problem is severe enough that I would classify it as a bug.

Matomo should be using international ISO 8601 dates by default, i.e. "Report for abc Website - 2022-03-18 to 2022-04-16.pdf". Using "Year-Month-Day" allows sorting the archived PDF files chronologically in alphabetical order. The ability to generate custom report titles (such as "Report for abc Website" instead of "Report abc Website") is a much-needed feature for Matomo.

EDIT from matt: proposed to use Report for URL Website - YYYY-MM-DD to YYYY-MM-D2 - $Translated_Date_string so we still have the nice date, but first have the ISO date.

@atom-box atom-box added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Apr 19, 2022
@bx80
Copy link
Contributor

bx80 commented Apr 22, 2022

Currently the same report description is used both for the email subject and the filename.

The report filename is generated in

return Piwik::translate('General_Report') . ' ' . $this->reportTitle . " - " . $this->prettyDate;

We could add a config option to choose the date format to use for the report filename, possibly defaulting to ISO 8601.
Scheduled reports already have a custom description which should be appended after the 'Report' prefix, a description of 'for abc Website' should result in 'Report for abc Website'

@justinvelluppillai justinvelluppillai added the Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement. label May 1, 2022
@goochj03
Copy link

goochj03 commented May 9, 2023

Similar request from another customer:
"Would it be possible to change the "report period" field?
If I could manage the statistical period as a calendar, that would be great, a calendar to customize certain dates"

@mattab mattab added the c: i18n For issues around internationalisation and localisation. label Dec 11, 2023
@mattab mattab changed the title Enhancement: Date format of emailed report should allow international dates: i.e. "Report for Example.com Website - 2022-03-18 .pdf" Email Report files alphabetical order should work in all languages, by eg "Report for URL Website - YYYY-MM-DD to YYYY-MM-D2 - $Translated_Date_string" Dec 11, 2023
@mattab mattab added c: Consistent Reports & Analytics UX For bugs and features that make Analytics reporting UI behave more consistently. c: Email Reports For bugs and features related to their analytics reports received by email. labels Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Consistent Reports & Analytics UX For bugs and features that make Analytics reporting UI behave more consistently. c: Email Reports For bugs and features related to their analytics reports received by email. c: i18n For issues around internationalisation and localisation. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement.
Projects
None yet
Development

No branches or pull requests

5 participants