Skip to content

exarcheia/laravel-analytics

 
 

Repository files navigation

Laravel Analytics

Easily collect page view analytics with a beautifully simple to use dashboard.

Laravel Analytics Dashboard

Installation

Install the package:

composer require andreaselia/analytics

Publish the configuration with the install command:

php artisan analytics:install

Don't forget to run the migrations:

php artisan migrate

You can add the page view middleware to a specific route group, e.g. web.php like so:

Route::middleware('analytics')->group(function () {
    // ...
});

Or add the page view to all middlewares/on an application level like so:

// app/Http/Kernel.php

protected $middleware = [
    // ...
    \AndreasElia\Analytics\Http\Middleware\Analytics::class,
];

Contributing

You're more than welcome to submit a pull request, or if you're not feeling up to it - create an issue so someone else can pick it up.

About

Analytics for the Laravel framework.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 54.4%
  • Blade 45.6%