coroxx / evilanalytics
A powerful and opensource analytics tool for your Laravel applications
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 13
Watchers: 2
Forks: 1
Open Issues: 0
Language:Blade
Requires
- matomo/device-detector: dev-master
- stevebauman/location: dev-master
README
EvilAnalytics
Track devices, countries, requests, routes and many other with EvilAnalytics ! Version 1.4
Documentation language
🔒 Privacy
You are the master of your data, all analytical data are stored in your database.
Changelog : V1.4 🤖
Analytical data is now much more accurate !
Changelog : V1.2 🇫🇷-🇬🇧
The dashboard is now available in French 🇫🇷 and English 🇬🇧 languages
Installation problems? Contact me on discord : Corox#2729 👾
Getting Started
Install EvilAnalytics is pretty easy ! 😎
composer require coroxx/evilanalytics
php artisan vendor:publish --provider="coroxx\evilanalytics\EvilanalyticsServiceProvider"
php artisan vendor:publish --provider="Stevebauman\Location\LocationServiceProvider"
To significantly increase the accuracy of the analytical data you should include in your App/Console/Kernel.php file this function in the :
protected function schedule(Schedule $schedule)
(See the Kernel.php file at the root)
Then run the task every hour on your server
php artisan schedule:run
This will eliminate a large part of the bots every hour
You have almost finished your installation 😇
Run your migrations to create the calls table :
php artisan migrate
Now you have to configure the Middleware in your web.php file like this :
Good work! 👍
Now acces to the dashboard with /analytics/en ✅
Caution 🚨
Don't forget to name all your routes, otherwise you won't have an accurate tracking of the number of visits of each page
Don't forget that as such, the panel is accessible by everyone, so don't hesitate to set up a login system to access it :
For this, modify /vendor/coroxx/evilanalytics/src/routes/web.php
Guide d'installation
Installer EvilAnalytics est plutôt simple ! 😎
composer require coroxx/evilanalytics
php artisan vendor:publish --provider="coroxx\evilanalytics\EvilanalyticsServiceProvider"
php artisan vendor:publish --provider="Stevebauman\Location\LocationServiceProvider"
Pour augmenter nettement la précision des données analytiques vous devez inclure dans votre fichier App/Console/Kernel.php cette fonction dans la fonction :
protected function schedule(Schedule $schedule)
(Voir le fichier Kernel.php à la racine)
Puis exécuter la tâche toutes les heures sur votre serveur
php artisan schedule:run
Ce qui va éliminer une grande partie des bots toutes les heures
Vous touchez à la fin de l'installation 😇
Lancez vos migrations pour créer la table calls avec :
php artisan migrate
Il ne vous reste plus qu'à à ajouter le Middleware dans votre fichier web.php comme l'exemple le montre :
Bon travail chef ! 👍
Maintenant accédez au panel avec l'url /analytics/fr ✅
Attention 🚨
N'oubliez pas de nommer toutes vos routes, sinon vous n'aurez pas de suivi précis sur le nombre de visite de chaque pages
N'oubliez pas que comme tel, le panel est accessible par tout le monde, n'hésitez pas à mettre en place à un sytème de login pour y accéder
Pour cela, il faut modifier les routes /vendor/coroxx/evilanalytics/src/routes/web.php