-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
New plugin: define Custom Alerts and receive email when triggered #1486
Comments
Feedback
|
Attachment: |
Note: Custom Alert plugin UI html/js/css controller that allows to select one or several websites will be reused for sure in the PDF plugin. It would be great if this bit of code was made reusable, thanks! |
Thought dump about unit tests // test alert on one website // test all metrics matches/contains/etc. conditions // test different periods // tests searched string matches several rows (ie. keywords matching 'test') // + test Goal metrics for one website, General goal metric alert.. For each of these tests, or maybe once for all tests, you could generate tracking hits using the code from Main.test.php For example you would generate 10 or 15 visits to try and match all your use cases, then you would run in one test method all sub tests. (otherwise, generating visits for each test case would make tests run very slow). In UI, important to test alert name has ', " for sql, and check chinese characters. |
(In [2585]) * Small modifications to UI
|
(In [2594]) Refs #1485
Refs #1486
|
(In [2701]) Refs #1486
|
I'm uploading a current status here - not quite working, more for code review and feedback. I'm half-way through migrating to the new UI that was introduced with PDFReports. Integration.test is testing addAlert/editAlert (success!) and processing of alerts (little buggy). I'll be travelling for some days and will finish Alerts when I'm back. |
Attachment: Current status - not for production |
delaying for now, even though I hope it makes the cut :) |
Halfdan, do you think the plugin can be put into trunk at some point? This would be a great feature and it is more than half done for sure :) |
An interesting article about Custom Alerts: http://www.kaushik.net/avinash/2010/06/leverage-web-analytics-custom-alerts.html http://support.google.com/analytics/bin/answer.py?hl=en&answer=1011356 |
@halfdan Have you had a chance to make progress on the feature? Even if not complete we'd be very interested to see what you've done and if we can reuse it. Thanks! |
Hi, I would be very interested to help or to continue this project. @halfdan, it would be very nice if you could report what is working and what not, and which kind of problems you encountered. |
Hi @Codalibre, I will let you know if I need any help. |
If you are interested in this feature, please pledge now! We are running a campaign for Custom Alerts: http://crowdfunding.piwik.org/custom-alerts-plugin/ It will be awesome, but we need your support! |
I'd love to see another feature. There are a lot of things that can go wrong after updating your website. You have a lot of log files and tests but nevertheless sometimes there goes something wrong on the website (e.g. browser problems with js, layout problems, ...). Sure, you could have an alert for higher bounce rates on critical pages (e.g. product pages). It would be great if there were alerts that are a bit more complex. |
@mohelten Piwik does not yet support conversion funnel, so this is not possible, but it's a good idea for the future. |
I got a few emails in the last few weeks from funders asking about Custom Alerts. We have some news: while unfortunately Fabian @halfdan is right now in hospital recovering from accident but will be out soon. AND he has a version of the plugin for beta which we'll release as part of Piwik 2.0 as a core plugin, as announced. Stay tuned & halfdan hope you get well! |
@fabian any update for our community of funders eagerly waiting to hear an update? hope you are well! |
hey @fabian any update? |
No update yet, so likely won't make it to 2.0 (sorry for such long wait to all funders!) |
|
I stopped using refs once we created the CustomAlerts repository. We have a nice history just for this plugin there and the refs are not being displayed here anyway. I think only for Piwik repository. We changed this recently with the Git problems and I think we even did not process all repositories before. |
…k 2.0 and added the possibility to actually list, create and edit alerts
…ler, api and plugin class. Put them in a model, makes it also better testable
…trics/group conditions to the processor as only this class can know which ones it supports
… is list of all alerts
…emails without the html for graph type
… current action is index
…n) css selector works. Otherwise sometimes two rows have same backgroundcolor in an entitytable
… to validate report and metric is still valid
…f someone switches the website in website selector
…g on the websites timezone
…, the value was of the site selector was never updated. Also do not toggle the name of the current selected website with the clicked website as it is kinda confusing and leads to website names appearing multiple times
… prevents an issue when filter_truncate and flat=1 is used in Actions.getPageUrls: Trying to add two strings values in DataTable\Row::sumRowArray
…niqueId instead of module.action to support all reports (goals etc)
…ep them in the new data table. Otherwise we cannot apply them later in the customAlerts plugin manually
…r week run one day too late under circumstances.
UPDATE January 26th: Custom Alerts plugin is now available in the Marketplace! Test it by using the latest Piwik beta version, and then installing the Custom Alerts plugin in one click: go to Piwik, click Settings then click Marketplace and click Install button.
Create custom alerts:
See attached screenshot for preview.
Note: Autocomplete the dimensions will probably not be in the V1 of the script. Autocomplete would be a nice feature as it helps users not making mistakes (eg. is it Germany or DE or germany?).
This plugin requires each Piwik plugin to define their API metadata (list of reports callable, and list of metrics + translations for each metric). Covered in #1485
The text was updated successfully, but these errors were encountered: