arnoson/kirby-stats

Idea: Add config option to enable/disable statistics

Closed this issue · 2 comments

It would be nice to have a kirby config option to enable/disable statistics. This would easily avoid counts on development.

We could disable on local environments (e.g. config.example.test.php):

'arnoson.kirby-stats' => [
  'enabled' => false,
],

And enable it on server (e.g. config.example.tld.php):

'arnoson.kirby-stats' => [
  'enabled' => true,
],

Sounds great! Do you wan't to create a PR? Otherwise I can look into this as soon as I find some time. I guess the best place for this check would be in the handle method where we also check for logged in users

Created a pull request!