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
Plugin to send reports by email #5492
Comments
Hi guys, My company’s client want this feature badly and like to have it within this week :), as always. Anyhow, I’d like to implement this feature for our client. First of, I’ve started to working on this plug-in yesterday and here is what I’ve got so far: I created a plugin called “EmailReports”. 3) need to record who want what report(s) via email. ``` login | email_frequency | activated_date | last_sent_date | modules_actions If last_sent_date no null then use last_sent_date else use activated_date (most likely very first email report for this user). (5) On this list is most crucial, and if there is a way for me to know which method is a report method I would love to know. Comment please. Thanks, |
- 1) we are planning to fix this (see edit their info (alias, email, password) #526, display the javascript code for their sites #554, define the website to load by default in the UI #401) But for the plugin, it would be ideal to send “widgets” rather than csv exports of API. You can get the list of all widgets by calling Piwik_GetWidgetsList() that returns a list of Plugin, methods that you can directly call to get the HTML output of the widgets, which would be much easier to understand than plain CSV reports without labels (eg. the getVisits call would return value:1100 and it would be hard to understand as opposed to returning the VisitsSummary widget output). Let me know what you think but all in all it would be a great new feature to Piwik and I’d be happy to review your code and answer your questions! |
btw, there is a plan to use the widgets in a similar way to build RSS feeds (see #5571), which is very similar to email reports. |
Also, how do you plan to provide the UI to choose the reports to send in the emails? |
Attachment: sample of plugin ui |
Attachment: |
Attachment: |
Replying to [matt](comment:3): > – 1) we are planning to fix this (see edit their info (alias, email, password) #526, display the javascript code for their sites #554, define the website to load by default in the UI #401) hi Matt, I’ve got the plugin somewhat working, but need to improve as you mention above: I have to send reports in csv format per our client requests. in the future I will reformat the csv contents. please see reports.csv for example What I’m thinking between widgets and csv is giving the user another option (dropdown box on ui) for formats: e.g: if they want csv in the email attachment we’ll give it to them. If they want widgets we’ll give them widgets. also, I added the feature called “email on Demand”. This would give the user the option of sending email based on the date range that the user picked. Once the user click on “Send Email” button, ajax called to the server to send the email. Now, this feature does not required the user to opt-in to get email on schedule. However the system required the user to picked the report(s) that they want, before they can send email “on demand”. Please see emailReports.png, datepicker.png and reports.csv and let me know what you think. I definitely need more feedback. Thanks again for your feedback, |
Hi Khahn, ok for “Email on demand”, great idea! As you know custom date range reports are not yet a feature in Piwik even though we could build it, so I’m sure how we will integrate that. Does the custom date range work for any report of any plugins? Last time I heard it wasn’t working for all metrics? Here is my feedback. Slightly simplify UI Review Proposal for email customization: Widgets and API calls Your idea of proposing widgets and CSV export at same time is very good idea! There is a difference between the way API calls and Widgets are generated: Therefore if we give user the choice between csv/xml/etc. and widgets, here is a proposal: Open question Hope it helps. It’s a bit long but this is very exciting new feature so.. :-) |
Is it possible to have the code of this plugin ? |
Replying to JeanRey:
Sorry for the delay on this plugin, I will try to remove all text and information regards to my company and will submit the code for you to try, Its not done the way we wanted :( Yet, this plugin needs sometime. thanks, |
what's about this plugin? finished? |
no, kpham never released the source code of his alpha version. |
Thanks for the answer. I wish that the PDF export comes soon |
The idea behind the plugin is to make it possible to export reports by email.
It would be possible also to specify preferences such as
- daily / weekly / monthly reports
- reports contained in the email
The implementation is not defined yet though, as we need to finish the task #54 first.
The text was updated successfully, but these errors were encountered: