Opened 17 months ago

Closed 15 months ago

Last modified 15 months ago

#3551 closed Bug (fixed)

Show a warning banner to notify when tracker's record_statistics is not enabled

Reported by: kiddo Owned by: halfdan
Priority: low Milestone: 1.11 - Piwik 1.11
Component: UI - UX (AngularJS, twig, less) Keywords: usability
Cc: Sensitive: no

Description

It can happen to the best of us, either because of forgetfulness or because piwik somehow reordered the contents of config.ini.php (I'm not 100% sure it is possible, but it seemed to happen to me recently, and I wrongly assumed that the line I had added to the top of the file had been simply removed by piwik... leading to weeks of lost statistics).

If this is present in the configuration:

[Tracker]
record_statistics = 0

...simply tell the user. There are a couple of ways to do so, which are not mutually exclusive:

  • After running the upgrade script (from the commandline or the web UI)
  • When inside the piwik's admin settings, or even directly in the main web interface, as a banner/infobar at the top above (or below) the dashboard menu

In the web UI, not only could we show the warning message, but it could also contain a button [Re-enable tracking], if such a thing is easy and safe to do.

Change History (5)

comment:1 Changed 15 months ago by halfdan

  • Owner set to halfdan
  • Status changed from new to assigned

comment:2 Changed 15 months ago by halfdan

I believe it is enough to show the warning message in the admin menu (and only for the superadmin, since he is the only one who likely has access to the config).

comment:4 Changed 15 months ago by Fabian Becker

  • Resolution set to fixed
  • Status changed from assigned to closed

In 84a2e9e92e909fa7d60abfde6c78e4f79ded4c6b:

Warning is now shown on General Settings page to warn user
when tracking is disabled via record_statistics = 0.

fixes #3551

comment:5 Changed 15 months ago by matt (mattab)

In 8ac1bc28ddb67c441f8088a3c22b1e8a38d81493:

Refs #3551 Display message in all admin controlllers

Note: See TracTickets for help on using tickets.