Analyzer plugin for CakePHP
This package is auto-updated.
Last update: 2023-11-06 20:00:26 UTC
This Analyzer Plugin is a plugin that tracks and reports website traffic.
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
composer require cakemanager/cakephp-analyzer:dev-master
Now load the plugin via your shell:
$ bin/cake plugin load -b -r Analyzer
Or put the following in your
Plugin::load('Analyzer', ['bootstrap' => true, 'routes' => true]);
Run the migrations:
$ bin/cake migrations migrate -p Analyzer
From now on all requests will be reported!
You can ignore to register request by putting the following code in your
Configure::write('Analyzer.Ignore.key', [ 'plugin' => 'DebugKit' 'controller' => 'UsersController', 'action' => 'index', 'prefix' => 'admin', ]);
So, for example; this code will ignore all
Configure::write('Analyzer.Ignore.debug_kit', [ 'plugin' => 'DebugKit' ]);
RequestsTable has the following finders:
Set start- and end-date:
$query->find('Between', [ 'start' => '-3 days', 'end' => 'now', ]);
Not valid yet!
Find only unique visitors:
AnalyzerComponent allows you to get insights in your traffic. The following methods are available:
There are no methods yet, they will probably be replaced by the Table's finders.