This ticket is a placeholder to improve the current feature of Scheduled email reports (PDF and HTML).
See the following tickets for new feature requests:
High impact features:
Other cool features:
Please comment if you have other ideas to improve Scheduled reports.
Replying to matt:
The Piwik scheduled reports timeout when all the options are selected. Due to which the weekly report are not sent out. The weekly scheduled reports also wont work when there is more data in the reports.
@nouman.qureshi, thanks for the report. Does it also fail if you disable all graphs from the report?
There are 2 issues here:
I suggest for example:
Thanks for the suggestion.
Can you please provide a particular example of how can i do this? i.e:-
Generating PDF in a separate http request profiling the code using XDebug.
Any help in this matter will be highly appreciated.
In [ticket:291#comment:47] it is suggested that we could implement a new very useful feature:
'Compare values to last [day/week/month/year]'
For a CEO receiving the weekly Piwik report by email, it would be extremely useful to be able to have a clear view of the evolution of the metrics compared to the last week.
There could be a new checkbox in the report Edit "Compare reports to the previous $period".
This would be a great improvement to the report analysis & data driven reporting!
little feature request regarding scheduled reports:
the possibility to limit i.e. referring websites, keyword etc. to display only 10 or 25 items...like it is possible to do this in the dashboard overview.
Scheduled reports are feature that is widely used by Piwik users (people are lazy so in many cases they don't log into Piwik, but only read e-mail reports). I think that is the reason why we should increase priority of this ticket.
List of things to improve:
You see, logo is rendered as a linked img but doing this it gets caught by MCA not loading external images (outlook, gmail web).
So Logo image should be sent as attachment and all the icons too.
(search engines and various favicons)
@quba Moved the ticket to
Mid Term as you're right it's a key feature of Piwik and it would be high value to improve it.
Here's another suggestion:
Users who use mainly custom date ranges in Piwik are used to seeing the sums for the whole period in tables and the days within the period in graphs. The scheduled reports on the other hand behave like days/weeks/months/years in Piwik: The tables show the selected period and graphs show the past periods, e.g. for a week you see the week in the table and the last few weeks in graphs.
Can we offer both behaviors in the scheduled reports?
I suggest adding a selection like this:
A. In graphs, show the evolution across multiple periods (default)
B. In graphs, show the evolution within the selected period
For a weekly report,
I've looked into the suggestion above and it's not a good idea to change the parameters of ScheduledReports.generateReport. This would impact the regular data tables as well, e.g. there would be no unique visitors.
So we need to adjust only the period/date parameters of the API calls for image graphs. However, this is not possible on a per report basis because the scheduled reports use the imageGraphEvolutionUrl metadata which is generated independently. I think the easiest way would be to add a config option that allows changing the behavior of evolution graphs (e.g., "General.graphs_show_evolution_within_selected_period"). This would impact the imageGraphEvolutionUrl assigned in ImageGraph::getReportMetadata.
I already have an implementation for that. If the feature request is accepted, I can push it.
this is not possible on a per report basis because the scheduled reports use the imageGraphEvolutionUrl metadata which is generated independently.
Maybe a good solution would be to add a new parameter to the metadata API to let user change the period being plotted on the graph. There are already several parameters to
ImageGraph.get API so it would make sense to add a new one. See: http://developer.piwik.org/api-reference/reporting-api#ImageGraph
Matt, what you say also was my first idea. But the problem is that the ImageGraph plugin adds an imageGraphEvolutionUrl to the metadata of all reports (see https://github.com/piwik/piwik/blob/master/plugins/ImageGraph/ImageGraph.php#L163). At this point, it is not known how the image graph is going to be used. The ScheduledReports plugin uses this URL to render the report and does not look at or know about the parameters.
So either the ImageGraph plugin has to offer two URLs for the two different behaviors or the ScheduledReports plugin has to change the ImageGraph parameters. Or we keep everything as it is and add a config option that is used by the ImageGraph plugin when the imageGraphEvolutionUrl is generated.
As I said, I have an implementation for the latter option. If we want to go with this option I can push the code. Otherwise I'll just create a ticket as you suggested.
add a config option that allows changing the behavior of evolution graphs (e.g., "General.graphs_show_evolution_within_selected_period
OK as there is already setting
In general, and this is what this issue really shows us, we need to refactor the Scheduled reports PHP code and front-end with AngularJS, to make this kind of features available via the UI rather than have to use a new config setting. because the Scheduled Reports feature is the most common way that users will access their data outside of Piwik, it is an essential part of the platform that we can give more love. cc @JulienMoumne
Hi guys, closing this issue, feel free to comment in any existing Scheduled Reports issues, or create new ones!