Plugins View all plugins
Resources
Live demo ↗ Request a plugin Sign in feinwerk.io ↗ Get the connector
New

The Feinwerk Connector is now in the Matomo Marketplace. Install it right inside Matomo, no download, no FTP. Read the news · Here is how →

On this page
Plugin documentation

Sentinel

Sentinel checks every website's data every hour and alerts you by email, Slack, Microsoft Teams or webhook as soon as tracking looks broken.

Plugin page Download ZIP Try the live demo ↗

Overview

Tracking rarely breaks with an error message. A new consent banner, a tag manager change or a relaunch without the tracking code, and Matomo simply records fewer visits or no conversions at all. Usually nobody notices until the monthly report, and the missing data cannot be recovered.

Sentinel checks every website's data every hour and compares it with what is normal for that very website: the median of the same weekday and hour over the last 8 weeks. When tracking looks broken, Sentinel alerts you by email, Slack, Microsoft Teams or webhook, and sends an all-clear once the data looks normal again. Because Sentinel reads the raw tracking data, late archiving never looks like an outage.

The checks

  • No visits (critical): no visits for some hours (default 3), although the website usually has enough at that time.
  • Drop in visits (critical): a day with far fewer visits than the same weekday usually has.
  • Goal no longer converts (warning): a goal that usually converts, or the orders of an online shop, without a conversion for some days (default 2).
  • Unusual spike (bots, spam) (warning): far more visits than usual together with signs of bots or spam, such as a very high bounce rate, very short visits, one country or provider dominating, or a new referrer.
  • Actions per visit off (warning): actions per visit change sharply, a sign of pageviews tracked twice or not at all.
  • Tracking failures (warning): Matomo rejects tracking requests (unknown site ID, missing authentication).
  • Archiving (warning): archiving does not keep the reports up to date, or a large website is archived in the browser.
  • CNIL exemption on a German site (note): Matomo's CNIL policy is active for a website that targets Germany.

You choose for each website which checks run and how sensitive they are.

Check a single page right now: our free Matomo tracking checker tells you whether Matomo counts there.

Alarms without the flood

Sentinel sends one alarm when a problem starts and one all-clear when it is over, with no repeats in between. When a website gets no visits at all, the follow-up alarms wait instead of flooding your inbox. Critical alarms always go out immediately, warnings can be collected into a daily report at 8:00 site time, and notes are only shown in Matomo. Quiet periods hold back new incidents during maintenance, and every alarm email has an unsubscribe link for its recipient.

At a glance in Matomo

  • Visitors → Tracking health: health score from 0 to 100, open incidents and the last 30 days, also as a dashboard widget.
  • Administration → Diagnostic → Sentinel: checks, recipients, webhooks, quiet periods and test message per website.
  • Administration → Diagnostic → System Check: time of Sentinel's last run and open incidents.

Privacy

Sentinel stores hourly visit counts per website (no personal data, kept 70 days) and the incidents it finds, all in your Matomo database. It sends no data anywhere, only alarms to the email addresses and webhooks you enter.

Requirements

Matomo 6 or Matomo 5, PHP 8.1 or newer and Matomo's cron job (core:archive) or browser-triggered tasks, since Sentinel runs every hour as a scheduled task.

The optional add-on Sentinel Pro adds forecasts as expected values, public holidays per website, checks for single channels and conversion rates, and an external watchdog.

Use cases

  • Notice outages within hours, not weeks: Sentinel checks every hour. When a website stops receiving visits, the alarm arrives a few hours later, not when someone opens the monthly report.
  • Measured against your website's normal: Every website is compared with itself: the same weekday and hour over the last 8 weeks. Quiet nights and weekends do not raise alarms.
  • Goals and shop orders covered: "Goal no longer converts" reports goals that usually convert and online shops that no longer record orders.
  • Bots, spam and double pageviews: Unusual spikes with signs of bots and sharp changes in actions per visit stand out before they distort your reports.
  • Alarms where your team works: Email to the website's administrators and any addresses you add, plus webhooks for Slack, Microsoft Teams or any system that accepts JSON.
  • Calm instead of alarm floods: One alarm when a problem starts, one all-clear when it is over. Warnings as a daily report if you like, quiet periods for maintenance or a closed shop.
  • Archiving and tracking failures too: Sentinel tells you when archiving no longer keeps reports up to date or Matomo rejects tracking requests.
  • Free and open source: GPL v3 or later. All data stays in your Matomo database.

Sentinel watches the tracking data of your websites in Matomo and alerts you as soon as tracking looks broken: missing visits, sudden drops, goals without conversions, bot spikes and archiving problems. It checks every website every hour, compares it with its own normal values and alerts you by email, Slack, Microsoft Teams or webhook. When the problem is over, an all-clear follows.

Step-by-step setup

Installation and activation are covered in Installing plugins. Sentinel needs Matomo 6 or Matomo 5 and PHP 8.1 or newer. Sentinel's page needs admin access to at least one website; the settings of the whole instance need super user access.

1. Install Sentinel

With the connector, open Administration → Feinwerk Plugins → Discover and click Install next to Sentinel. The connector downloads the matching version, installs and activates it. Without the connector, get the ZIP file via Download ZIP on the plugin page, upload it in Matomo and activate Sentinel under Administration → Plugins → Manage Plugins or on the command line:

./console plugin:activate FeinwerkSentinel

Before activating on an instance with real data: by default the administrators of each website receive the alarms (or the super users, if a website has none). The first run reads up to 8 weeks of past visits per website, spread over several runs on large instances, and may already find problems of the past days. So check the recipients right after activation (step 5).

2. Keep scheduled tasks running

Sentinel checks every hour as one of Matomo's scheduled tasks, so it only runs while Matomo's cron job (core:archive) or browser-triggered tasks run. The cron job is recommended: without it, Sentinel runs only when someone opens Matomo. If Sentinel has not run for over two hours, Tracking health shows a hint and the System Check shows a warning.

3. Open Sentinel's page

Open Administration → Diagnostic → Sentinel. The page is available to every user with admin access to at least one website and lists only their websites. At the top, choose the website to configure under Website. All of the following settings apply to that one website. The page has the tabs Checks, Notifications, Quiet periods and, for super users, Whole instance.

4. Adjust the checks

Under Checks every check is listed with its severity, whether it is on, how sensitive it is and how often it reported in the last 30 days. Each check can be switched on or off for the website; all are on by default.

Adjust opens a side panel. At the top it states the check's rule in one sentence, below it asks When should Sentinel report? with three levels: Report earlier, Normal (the default: early warnings with few false alarms) and Report less often. Below that the panel shows the check's messages of the last 30 days. Set exact values holds the exact values; once you enter your own there, the level reads Own values. The exact values and their defaults:

  • No visits (Critical): Hours in the window (default 3), At least expected (default 20) and Share of the usual visits (default 15 %). Sentinel reports when a window brings no visits or less than this share of the usual visits, for example when an outage still lets a few visits through. When fewer visits are expected in that time, Sentinel looks at 6, 12 or up to 24 hours on small websites (below about 160 usual visits a day) and reports when not a single visit came although at least 7 are usual; on larger websites there is no alarm then.
  • Drop in visits (Critical): Sensitivity (k) (default 4) and Share of the usual value (default 0.5: an alarm needs fewer than half of the usual visits).
  • Goal no longer converts (Warning): Missing conversions (default 10). An alarm when no conversion has come for as long as the goal usually needs, at that time of the week, to reach about this many. A goal with 100 conversions a day is noticed after two to three hours, one with three conversions per weekday after about three working days, and a goal without weekend conversions never alarms at a weekend. Higher values alarm later and less often. The alarm ends only when the goal is back at a third of its usual conversions; a single conversion does not end it. Applies to every goal with at least 7 days of history that reaches this number within 14 days and, for online shops, to the Shop orders as well.
  • Unusual spike (bots, spam) (Warning): Sensitivity (k) (default 4). An alarm needs more visits than usual plus signs of bots or spam: a very high bounce rate, very short visits, one country or provider suddenly dominating, or a new referrer sending many visits.
  • Actions per visit off (Warning): Sensitivity (k) (default 4) and Minimum change (default 0.4: the value must change by at least 40 %).
  • Tracking failures (Warning): no settings. Reports when Matomo rejects tracking requests for this website (unknown site ID, missing authentication).
  • CNIL exemption on a German site (Note): no settings. A hint when Matomo's CNIL policy is active for a website that targets Germany.

For Sensitivity (k), higher values alarm less often; 4 is a good start. All-clears of the hourly checks wait for a second good hour; when a problem returns before that, the same message continues without a new alarm. From version 5.6.0 on, for No visits: hours without any visit during an outage do not count in the comparison, so a long outage never becomes the usual, and a single stray visit does not end it. Where Sentinel has too little to compare with, returning visits end an outage only once they have come in for the whole window. After an all-clear with less than half of the usual visits back, Tracking health shows a new drop within 24 hours without a new mail; if the visits stop entirely, the alarm comes as usual. The Archiving check exists once for the whole instance and is set in step 9.

A bar at the bottom of the page collects your changes until you choose Save or Discard. If you switch to another website or leave the page first, Sentinel asks.

5. Choose recipients

Under Notifications:

  • Notify the administrators of this website (if it has none: the super users): on by default. Each administrator gets the emails in the language set in Matomo.
  • Additional email addresses: type an address and press Enter, at most 20.
  • Send warnings as a daily report: warnings are collected and sent once a day at 8:00 (website time). Critical alarms always go out at once; notes only appear in Matomo.

Who gets what sums up the saved settings: who gets critical alarms at once, who gets warnings at once or in the daily report, and who has unsubscribed. When an alarm currently reaches nobody, the page says so. Anyone who unsubscribed via the link in an alarm email is listed under Unsubscribed via the link in an alarm mail. Add again makes them receive alarms again (see "Good to know").

6. Webhooks for Slack, Microsoft Teams and other systems

Under Webhooks (Slack, Microsoft Teams, others) click Add webhook and enter the URL, the Format and optionally a Secret. Up to 5 webhooks per website are possible, each in a row of its own with Test. Secrets stay hidden; Show reveals one for copying.

  • Slack: the URL of an incoming webhook.
  • Microsoft Teams: the URL of a workflow "When a Teams webhook request is received".
  • Generic JSON: for any other system. Each alarm arrives as a JSON object with, among others, event, site, check, severity, state (open, resolved or test), message, started_at, resolved_at and report_url.

With a secret every request carries the header X-Fw-Sentinel-Signature: sha256=<HMAC>, an HMAC SHA-256 of the body with your secret (at most 200 characters). The receiver can check that the message comes from your Matomo. Only https addresses on the internet are allowed, without user name or password in the URL; Sentinel refuses addresses in internal networks. The host must be a plain name (letters a to z, digits, hyphens and dots) or an IP address; enter an international domain name in its xn-- form. For this, webhooks need PHP's curl extension and the DNS lookups on the server; where the server switches one of them off, Sentinel says so from version 5.4.2 on when the webhook is saved and sends no webhooks through a less safe way. Alarm emails are not affected.

7. Quiet periods and pauses

Under Quiet periods Sentinel opens no new incidents at certain times, for example for planned maintenance or a closed shop. All times are in the website's timezone. A picture of the week shows the weekly quiet periods; adding and editing happen in the side panel.

  • Every week: with Add weekly period choose Days, From and To, for example Sundays from 2:00 to 6:00. Until 24:00 means until the end of the day.
  • Once: with Add period enter the date and time of a single period under From and To, for example a migration or a company holiday.

For short notice there is Pause alarms at the top of the page: no new alarms for 1, 3 or 7 days or Until a moment you choose, for example during a relaunch. Problems that end during the pause close without an all-clear; alarms that were still waiting when it began and the daily report of warnings come after it. Resume alarms ends it early. Sentinel does not take public holidays into account by itself; Sentinel Pro does.

8. Save and send a test message

Click Save in the bar. Then Send test message sends a test to all recipients and webhooks of the website, just as real alarms will arrive; Test in a webhook's row sends it to that webhook only. The test uses the saved settings; there must be a minute between two test messages. Matomo confirms how many email addresses and webhooks it reached.

9. Settings of the whole instance

Super users find them under Administration → Diagnostic → Sentinel on the tab Whole instance. From Sentinel 5.4.1 on, a direct link leads there too: append index.php?module=FeinwerkSentinel&action=index&tab=instance to the address of your Matomo instance. Up to Sentinel 5.3 they were under Administration → System → General settings; the update to 5.4.0 carries your values over, also values set in config.ini.php.

Under Alarms of the whole instance:

  • Automatic alarm emails: who gets alarm emails without entering an address.

    • All administrators (default): website administrators get the alarms of their website, super users the alarms of the whole instance, such as archiving problems, and the alarms of websites without an administrator.
    • Only website administrators.
    • Only super users: the alarms of every website and of the whole instance, even when a website has switched its administrators off.
    • Nobody automatically: alarms only go to addresses and webhooks entered for a website or here for the whole instance.

    Entered addresses and webhooks get the alarms in every mode. In the last two modes Sentinel's page shows a note on this setting instead of the box for the administrators.

  • Additional email addresses for alarms of the whole instance.

  • Webhook for alarms of the whole instance, with its format and a Secret for the signature (optional): as in step 6, https only.

Under Archiving and run time:

  • Alarm after hours without archiving (default 6, allowed 1 to 168). Matomo should run core:archive at least every hour; 6 hours avoids alarms for single slow runs.
  • Limit for browser archiving (default 10,000). With browser-triggered archiving, websites above this value lead to a hint to set up the cron job.
  • Maximum run time per hour in seconds (default 120, allowed 10 to 3,600). Large instances with many websites may need more. Work that does not fit into one run continues in the next.

Direct links also open the other tabs or a single check, for example &tab=notify or &check=S01.

10. Keep an eye on tracking health

Under Visitors → Tracking health Sentinel shows for the selected website:

  • the health from 0 to 100: 100 minus 40 for each open critical incident, 15 for each warning and 5 for each note,
  • the open incidents, each with its start,
  • the time of the last check,
  • the health of the last 30 days,
  • for super users, the open incidents of the whole Matomo instance, such as archiving problems,
  • for a website with No visits on, no alarm of it open and fewer than 20 visits in 7 days, instead of the health a note to check the tracking code, with a link to it.

Administrators of the website get to Sentinel's page straight from Sentinel settings. Tracking health is also available as a dashboard widget. Everyone with view access to the website can see it.

11. Accept, close as one-off, comment

Below each open message in Tracking health, administrators of the website find three links. Messages about the whole Matomo instance are handled by super users.

  • Accept as new normal: the message describes something intended. It closes without an all-clear, and Sentinel adapts:
    • A lasting change of level (Drop in visits, Unusual spike, Goal no longer converts, Actions per visit off, with Sentinel Pro also channels and conversion rates): from then on Sentinel compares only with the days since the change and reports on it again once it has seen enough days at the new level, at least a week.
    • No visits for a website that counts no visits on purpose, such as a closed shop: no alarms about its visits, goals or channels until a whole day counts at least 20 visits again. Tracking health then shows No visits on purpose.
    • Tracking failures: these kinds of failed requests stay quiet for 8 weeks, a new kind is reported.
    • Archiving: this archiving problem stays quiet until archiving works again.
  • Close as one-off: the message was an exception, such as a campaign day or a short server problem. It closes without an all-clear, and Sentinel learns nothing from it. Sentinel does not report the same day again, another day is reported as usual. Hourly checks stay quiet until the values are normal again, for at most 7 days. An outage closed this way takes its consequences on those days along.
  • Add comment: note what it was about. The comment shows below the message, also in the list Closed in the last 30 days, and the all-clear by email and webhook repeats it.

Tracking health lists everything accepted under Accepted. Watch again undoes an acceptance.

Feedback and support

Below Tracking health and at the end of Sentinel's page, the plugin asks whether Sentinel works for you. Tell us with thumbs up or down; next to it, Support opens Feinwerk's contact form. Your Matomo server sends only the answer with the plugin and Matomo version, the browser and the interface language to Feinwerk, nothing about you, your websites or your visitors. To switch the question off, add this to config/config.ini.php:

[FeinwerkSentinel]
feedback = 0

If you switched off Matomo's internet features (enable_internet_features = 0 in the [General] section), nothing is sent.

Practical examples

Relaunch without the tracking code. A new version of the website goes live in the morning, and the tracking snippet is missing from the new template. After three hours without visits, No visits opens a critical incident and alerts the administrators and the Slack channel. The follow-up alarms for drops and goals wait as long as no visits arrive at all. Once the code is back, the all-clear follows.

Consent banner after an update. After an update, tracking starts for only a small share of visitors. Visits still arrive, but far fewer. The next morning Drop in visits reports that the previous day had only a fraction of that weekday's usual visits, with the measured and the expected value.

Form goal after a tag manager change. The thank-you page of a contact form has a new URL, and the goal no longer matches. As soon as no conversion has come for as long as the form usually needs for about ten enquiries, Goal no longer converts reports the goal by name. For online shops the same applies to the orders.

Maintenance every Sunday. A shop is serviced every Sunday from 2:00 to 6:00. A weekly quiet period for those hours prevents alarms. The team receives warnings as a daily report at 8:00, while critical alarms still go out immediately.

New event tracking. Since Monday a shop records clicks on product images as events. On Tuesday Actions per visit off reports far more actions per visit than usual and names new event tracking as a possible cause. The team clicks Accept as new normal and adds "Event tracking for product images since Monday". From then on Sentinel compares with the new level and reports only when something changes after that.

Good to know

  • How Sentinel compares: "usual" means the median of the same weekday and hour over the last 8 weeks. Statistical checks start after three weeks of data. Statistical checks do not judge websites with very little traffic, to avoid false alarms; No visits looks at longer windows there (see step 4). No visits and Goal no longer converts check every hour; Drop in visits, Unusual spike and Actions per visit off judge completed days.
  • Raw data, not reports: Sentinel reads Matomo's raw tracking data, so late or failed archiving never looks like missing visits; the Archiving check covers that separately.
  • One alarm per problem: one alarm when a problem starts, one all-clear when it is over, no repeats. Where it fits, alarms name the measured and the expected value and link to the report in Matomo.
  • Accept or close as one-off? Accept when the new state stays, such as new tracking or a website that was shut down. Close as one-off when it was an exception; then Sentinel learns nothing from it. Neither sends an all-clear, and Watch again undoes an acceptance.
  • Unsubscribing and adding people again: every alarm email has an unsubscribe link for its recipient and website. The link opens the page Unsubscribe from Sentinel alarms, and a click on Unsubscribe confirms. From then on the person receives no alarms for that website, even as an administrator or a listed address. The same page offers Unsubscribe from all websites, which ends the alarms of every website the person gets them for with one click. On Sentinel's page they appear under Unsubscribed via the link in an alarm mail, and an administrator can bring them back with Add again. Super users see unsubscriptions from the alarms of the whole instance at the top of the page. If every recipient of a website has unsubscribed, the test message sends nothing either.
  • System Check: under Administration → Diagnostic → System Check the entry Sentinel (tracking health) shows the time of the last run and the open incidents. If the last run is more than two hours ago, it shows a warning.
  • Stored data: hourly visit counts per website (no personal data, kept 70 days), the normal values computed from them, the incidents (resolved ones for up to 400 days), your settings and the unsubscriptions, stored as keys and never as addresses. Sentinel keeps daily totals of up to 400 days only when an add-on such as Sentinel Pro needs them. All of it stays in your Matomo database.
  • Nothing leaves your server: Sentinel sends no data anywhere except the alarms to the email addresses and webhooks you enter. When uninstalled, Sentinel removes its tables and settings.
  • Command line: ./console feinwerksentinel:run starts a run right away, with --idsite=N for one website only. --dry-run only prints the results, --no-notify updates the incidents without sending alarms.
  • Sentinel Pro: the optional add-on adds forecasts as expected values, public holidays per website, checks for single channels and conversion rates, and an external watchdog. Its checks appear on the same page next to Sentinel's.
  • Goes with Uptime Monitor: Sentinel notices when visits stop; Uptime Monitor checks from the Matomo server whether Matomo, the tracker, your websites and Tag Manager containers can be reached and when certificates expire. Sentinel sends its alarms the same ways.
  • Goes with Tracking Advisor: Sentinel tells you when the tracking fails; the free Tracking Advisor finds gaps in the setup, such as missing goals, e-commerce switched off or URL parameters that split pages, and suggests fixes.
  • Troubleshooting: if Tracking health says "Sentinel has not checked this site yet" or shows the cron job hint, check cron and scheduled tasks. If no email arrives, send a test message and check Matomo's email settings. More in Troubleshooting.

Technical reference

PropertyValue
Technical nameFeinwerkSentinel
Current version5.6.0
Matomo≥ 5.0.0, < 7.0.0-b1
PHP≥ 8.1.0
Licensefree
Database changesnone in the current version

FAQ

Why does broken tracking in Matomo go unnoticed for so long?

Matomo shows no error, it simply records less. A changed consent banner, a tag manager change or a relaunch without the tracking code usually only shows when someone opens the monthly report. By then the missing data cannot be recovered.

How does Sentinel know what is normal for my website?

For every website Sentinel takes the median of the same weekday and hour over the last 8 weeks. Statistical checks start once a website has three weeks of data. Websites with very little traffic are not judged.

Will late archiving cause false alarms?

No. Sentinel reads Matomo's raw tracking data, not the archived reports, so late archiving never looks like missing visits. If archiving stops for too long, a check of its own reports that.

Who receives the alarms?

By default the website's administrators (or the super users, if a website has none), plus the email addresses and webhooks you add. Every alarm email has an unsubscribe link for its recipient.

Can I pause alarms during maintenance?

Yes. With quiet periods, every week or once, Sentinel opens no new incidents for those times.

What do I need?

Matomo 6 or Matomo 5, PHP 8.1 or newer and Matomo's cron job (core:archive) or browser-triggered tasks. Sentinel runs every hour as one of Matomo's scheduled tasks.

Is any data sent to Feinwerk or third parties?

No. Sentinel keeps everything in your Matomo database and sends alarms only to the email addresses and webhooks you enter.

What does Sentinel cost?

Nothing, Sentinel is free and open source. For forecasts, public holidays and checks per channel, add the optional add-on Sentinel Pro.

Does Sentinel advertise Sentinel Pro?

Sparingly, and only to super users and the website's administrators. On Sentinel's page they see Sentinel Pro's two checks greyed out with "With Sentinel Pro", under an open "No visits" or "Drop in visits" incident one sentence about the website check, and at the end of the widget a small card that every user can hide for 90 days. Alarm emails about new alarms carry one small grey line at the end; all-clear emails and webhooks do not. Users with view access see none of it. Once Sentinel Pro is active, all hints disappear.