Skip to content

Avoids regular users choosing date ranges as their default setting trying to save server resources

License

Notifications You must be signed in to change notification settings

gaumondp/RerUserDates

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Piwik RerUserDates Plugin

Description

This Piwik Plugin avoids regular users choosing date ranges as their default setting trying to save server resources, then removes custom range selection from the calendar.

Each time users asks for ranged date reports, Piwik builds it on the fly during user's request. This slows down the server when you have a big amount of visits and a large number of tracked websites. This action is resource intensive so when it happens, live tracking may become slow or inaccurate.

Installing this plugin you remove choices in the field "Report date to load by default" in User Settings page for all regular users. Superadmin users setting page remains untouched and adminstrators will see only a notification about plugin's behavior.

Since version 1.1.0 regular users can't select any more a custom range in the calendar but Superadmins still can build reports.

This plugin is translated in: English and Italian (just send a pull request to include your favourite language, see Can I contribute f.a.q.)

Installation

Please, read official Piwik's documentation about it.

FAQ

I would like to see a demonstration... Just take a look at screenshots directory.

Is there any user interface configuration? No, any. You don't have to configure things, only to activate or deactivate the plugin.

Can I contribute on development? For sure! Just send a pull request on Github!

Changelog

1.0.0

Repository configuration

1.0.1

First release and Marketplace integration

1.0.2

User Manager screen shot and better readme documentation

1.1.0

Custom date range selection is disabled in the calendar only for regular users. A shorts jQuery snippet hides radio input and submit button.

Regular users who chose a range date as their default are now forced to yesterday report just visiting the index page with a warning notification.

License

GPL v3 or later

Support

Any feedback is welcome at the plugin's issues center on Github. https://github.com/RegioneER/RerUserDates/issues

About

Avoids regular users choosing date ranges as their default setting trying to save server resources

Resources

License

Stars

Watchers

Forks

Packages

No packages published