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

1.4.7 2021-09-16 07:31 UTC

This package is auto-updated.

Last update: 2024-04-16 13:17:14 UTC


README

68747470733a2f2f656d6f6a6970656469612d75732e73332e6475616c737461636b2e75732d776573742d312e616d617a6f6e6177732e636f6d2f7468756d62732f3132302f6170706c652f3238352f76616d706972655f6c696768742d736b696e2d746f6e655f31663964622d31663366625f31663366622e706e67

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)

code

(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 :

code

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)

code

(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 :

code

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




Screenshots / Captures d'écran

code code code