Giter Site home page Giter Site logo

matomo-org / plugin-customalerts Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 22.0 4.33 MB

Alerts are a great way to get notified of changes on your website in Matomo.

Home Page: https://plugins.matomo.org/CustomAlerts

License: GNU General Public License v3.0

PHP 83.20% JavaScript 1.75% Less 0.36% Twig 3.59% Vue 10.60% TypeScript 0.50%

plugin-customalerts's People

Contributors

altamashshaikh avatar bx80 avatar diosmosis avatar elliprime avatar halfdan avatar mattab avatar mnapoli avatar mneudert avatar pebosi avatar sgiehl avatar snake14 avatar tsteur avatar weblate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

plugin-customalerts's Issues

Received emails about the same alerts multiple times within 15 minutes

I have 5 alerts configured.

The system sent me 8 same/similar emails when 1 email would have been expected.

This isn't the first time but had this issue before.

Matomo should check if the alert has been processed recently and if so, don't process it again.

I'll post more details internally.

Alert conditions for Events are misleading

Conditions for events give the possibility to compare with event category, action and name.
Contrary to this clear labeling and expectation, however, the comparison takes place with either "Category - Action", "Action-Name" or "Name-Action".
If I don't know that as a user, then I do an "is comparison" e.g. with the action, which will never apply. See screenshot please

It would be better if either the labels are changed (f.e. category - action) or the comparison works as expected from the labels.

Example:
This will never apply:
grafik

Because of the comparison will only happen to "action - name":
grafik

Too many reports shown in dropdown when creating a custom alert

When you select the dropdown "This apples to..." then you might see hundreds of reports in a long list depending on whether you use premium feature, have many goals, forms, etc.

It would be better to instead use the expandable select. This UI control allows you to search and use collapsible groups. Below code should allow you to do this. However, I'm assuming that UI tests will need to be adjusted to make this work.

It would look like this:

image
image

We're using this UI control in custom reports. So the tests could be adjusted similar to plugins/CustomReports/tests/UI/Edit_spec.js eg the changeDimension method

diff --git a/angularjs/managecustomalerts/managecustomalerts.controller.js b/angularjs/managecustomalerts/managecustomalerts.controller.js
index aef933e..7ad2012 100644
--- a/angularjs/managecustomalerts/managecustomalerts.controller.js
+++ b/angularjs/managecustomalerts/managecustomalerts.controller.js
@@ -81,7 +81,7 @@
                     self.alert.report = reportApiMethod;
                 }
 
-                options.push({key: reportApiMethod, value: reportMetadata.name});
+                options.push({key: reportApiMethod, value: reportMetadata.name, group: reportMetadata.category});
 
                 if (reportApiMethod == self.alert.report) {
                     updateMetrics(reportMetadata.metrics);
@@ -272,4 +272,4 @@
             });
         }, 1000);
     }
-})();
\ No newline at end of file
+})();
diff --git a/templates/form.twig b/templates/form.twig
index 66665d8..b5c0092 100755
--- a/templates/form.twig
+++ b/templates/form.twig
@@ -70,10 +70,10 @@
             </div>
         {% endif %}
 
-        <div piwik-field uicontrol="select" name="report"
+        <div piwik-field uicontrol="expandable-select"  name="report"
              ng-model="manageAlerts.alert.report"
              ng-change="manageAlerts.changeReport()"
-             title="{{ 'CustomAlerts_ThisAppliesTo'|translate|e('html_attr') }}"
+             title="{{ 'CustomAlerts_ThisAppliesTo'|translate|e('html_attr') }}: {{ '{{ manageAlerts.actualReportMetadata.name }}' }}"
              introduction="{{ 'CustomAlerts_AlertCondition'|translate|e('html_attr') }}"
              options="manageAlerts.reportOptions"
              {% if reportMetadata and alert %}value="{{ alert.report|e('html_attr') }}"{% endif %}>
@@ -162,4 +162,4 @@
         </div>
     </div>
 
-</div>
\ No newline at end of file
+</div>

Custom variable value not supported

Hi,
It is currently not possible to set an alert based on the value of a custom variable, only by name, as a result, this is not really helpful.

Add "hits" to Actions - Main metrics

Custom alerts does not seem to have a hits metric. This is important metric for the cloud as it would help to keep track of hits quotas without having to login.

Base table or view not found

Hi,
We are on Piwik 2.2.2 and CustomAlerts 0.1.15. On clicking the "Alerts" link on the top, we get error message: "SQLSTATE[42S02]: Base table or view not found: 1146 Table 'piwik.piwik_alert' doesn't exist".
How do we get around this issue? Is it possible to add alert tables manually?
custom alerts - error screen

Cannot create custom alert

Hi,

I have installed & activated the Custom Alert plugin. But when I try to test it. It does not show me any action/button to continue. Am I doing something wrong?

image

False date of triggered alert?

I created an alert when visits is created then "800", on 20.01. the visits overview show 888 visits. the alert was triggered today (22.01.) and the history of alerts show also the 22.01.

Normal behavior?

is Plugin broken in Matomo 3.5.1?

Hi,

I just installed the plugin in my matomo instance, and when I open "Alerts" at "Personal" Section in Administration. The form is empty except the alert name input field. But there should be much more input fields (I guess 😄).

System check is green

screen shot 2018-07-26 at 23 32 01

Wrong cursor on delete icon

When hovering the delete button, then no pointer cursor appears but it does for the edit icon. Thus it's not fully clear it's clickable.

image

Show more units and hints as help to know what to input

A point a first time user (like me) would have helped a lot to set up the very first custom alert:
show more unitsand hints for format and type of input needed on all places where to input anything

  • number: 3,000.5? 3000.5? 3000,5? 3000,500?
  • duration: seconds? minutes? hours?
  • time: hh:mm? hh:mm:ss?
  • date: dd.mm.yyyy? dd.mm.yy? mm.dd.yyyy?

simple example for type problem:
2016-01-14_18h35_47

It's alreay done ok for input of %
2016-01-14_18h19_40

maybe also in text
2016-01-14_17h29_15

Table 'matomo.matomo_alert' doesn't exist

Hi,

After the installation of this plugin we recieve the follow error:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'matomo.matomo_alert' doesn't exist.

We are using a cluster matomo setup with 2 nodes and install the plugins using a python script so the nodes don't get confused.
For some reason the needed table is not created, i would like to add the table myself but i don't know the data needed to create this table.

Please advice.

Not working with Piwik 2.1.1-b1

When changing an alert on latest beta with plugin version 0.1.12, the following error occurs: Variable "sites" does not exist in "@CoreHome/_siteSelect.twig" at line 27

So it's not working with latest site selector / angularjs changes.

show first search suggest directly on click

A point a first time user (like me) would have helped a lot to set up the very first custom alert:
display search-suggest result not only after input of a matching letter or number, but directly on click in search-box (one does not necessarily know what to search for)

Add autocompletion to the value field

Hi team,

Currently there isn't an auto completion field for the custom alert plugin.
So to say, if you select a report, let's say continent, it does not show you the list of possible values (so as it would be for segments).

--> Would it be possible to make this feature available?

Thank you

Unsubscribe from custom alerts

It is currently possible to unsubscribe from email reports but not from custom alerts.
Would it be possible to implement such enhancement?

Add inline help about custom alerts periods

To make it more clear when alerts will be sent, be great to add some inline help:

You can choose one of the available periods:

  • Day - Sent every day around midnight
  • Week - Sent every Monday around midnight
  • Month - Sent every 1st of the month around midnight

Custom Alert Eamils are being sent out multiple times for the same alert

we are running matomo on multiple servers.

we have some alerts setup for things like low conversions

that trigger for the following reason for example:

Conversions is 3 which is less than 5

this alert is getting triggered 7 times, which is seting out 7 emails to everyone suscribed.

we have tried deleting the report and recreating with the same result.

any insights as to how the job runs and what procesees we shoudl look into would be greatly appreciated.

Alert based on user ID does not produce an alert.

We have an alert based on the following criteria:

image

Creating a segment that should include visits that get alerted:

image

We do get results that should be included:

image

But no alert has been created at all over a few days:

image

Error with " History of triggered alerts"

Piwik 2.2.0
PHP 5.3.13 under Suse
Custom Alerts 0.1.17
No other plugins enabled that are not part of Core.

While clicking on "History of triggered alerts", I got:

A fatal error occurred
The following error just broke Piwik (v2.2.0):
Class 'Piwik\Period\Factory' not found
in
/stats/piwik/plugins/CustomAlerts/Controller.php line 278

Changing Site IDs should repopulate available Alert Conditions

When creating a new alter, changing the Site ID has no impact on the list of possible alert conditions such as Goals and Custom Reports. The available conditions are set to the site ID in the address bar and are not impacted by the drop down 'Website' menu.

For example, if the site ID in the address bar was set to "1" prior to clicking "Create new alert", only the Goals associated with site ID 1 will be available as alter conditions, regardless of the website selected in the report settings...

Screenshot from 2023-07-31 15-58-45

Screenshot from 2023-07-31 15-59-10

Erweiterung bestehender Funktion möglich?

Hey, über Manage Custom Alerts gibt es eine Möglichkeit, diverse Daten per E-Mail zu erhalten, jedoch ist der Zeitraum begrenzt (Tag, Woche, Monat). Wäre super, wenn man dies noch erweitern könnte auf "sofort" oder "1 Stunde". Ebenfalls wäre es super, wenn man Benutzer ID´s auch mit eintragen könnte, sodass wenn ein bestimmter Benutzer die Seite aufruft, auch eine E-Mail sam allen Daten IP, etc. per E-Mail verschickt wird. Ich denke, die Funktion wird jeden interesieren :-))) Vielen Dank..

some small design problems

some small design problems:

  • not enough room within dropdowns (similar to #27 and #22 )
  • changing spaces between rows

maybe this should be fixed after looking at #26

please see attachements
all from FF and plugin v0.1.22

2016-01-14_23h05_07
2016-01-14_23h06_51
2016-01-14_23h08_28

NEW Functionality: Instance alert

It would be nice to have some instant alerts on things like revenue, or a spike in traffic, etc to allow us to keep a better eye on what's happening with our sites.

Redesign Custom Alerts emails notifications to look like Scheduled Reports emails

Email for Custom Alerts notifications should have a consistent design with the Scheduled Reports emails. The design was slightly improved in: matomo-org/matomo#6988 and we haven't updated the custom alerts emails yet. (Note that we are still not 100% happy with the design of scheduled reports emails. and hope to improve it in the future - covered in matomo-org/matomo#9191)

Custom Alert design

Here is the current design of Custom Alerts email notification:

design

Showcase some useful Custom Alerts to inspire users

The goal of this issue is to enhance the CustomAlerts plugin to inspire users to create useful custom alerts.

Maybe this could be done by simply displaying some inline help text, or maybe some "templates" of useful custom alerts.

7 Must-Have Custom Alerts

  1. Spike in Traffic
  2. Spike in Goal Completions
  3. Drop in Goal Completions
  4. No Traffic
  5. Spike in Referral Traffic / Conversions from Syndicated Content
  6. Spike in Goal Conversions / Goal Value via Your Email Campaigns
  7. Spike in Goal Conversions via Your Blog

Reference: 7 Essential Intelligence Events for Your Google Analytics Account

Link Custom Alerts with Segments

Hi,
Currently custom alerts are supporting only 1 condition.
For example, if we want to be alerted when a visit coming from a specific campaign reached a goal... we cannot know that.
One way to do it (this is what Google Analytics is doing) is to support segments within the alert.
As a result it will be possible to amplify the custom alerts possibilities. For example the segment include only the visits from a specific campaign, then the condition of the alert is the goal report, when the number of visits is higher than 1 then fire the alert.
Do you think it is feasible?

Create a visualization to show alerts in the report itself

We could create a visualization that adds an icon to the widget footer listen all related alerts for the current report and selected date period.

Eg if someone creates a PageURL alert we could show all alerts related to this in the "Actions => Pages" report. If there are multiple alerts available for the selected report we could also display the number of alerts "in the alerts icon" or on top of the icon.

Alternatively we could maybe sometimes show alerts even inline. Eg if there's an alert checking for pages starting with /index, we could give all those pages a different color / background color / icon / ... but this is probably not easily doable.

Alert for multiple websites (or all websites)

Hi guys,

Could it be possible to add the functionality to add multiple sites for a single alert? I believe this could be a feature used by many.

Thanks and keep up the good work!

Regards, Heine

Hourly Alerts

I would be nice to add the feature of hourly alerts.
Wouldn't it? What do you think?

Alert definition input fields can be too small

See screenshot on 2.15.0 and latest CustomAlerts: input fields and Select boxes are slightly too small to fit the numbers and strings:

  • Input box too small for text to fit
  • Select box text is too wide and overlaps

invisible inputs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.