hbernaciak/laravel-piwik-tracking

There is no license information available for the latest version (1.0) of this package.

Prepend to body closing tag Piwik tracking code

1.0 2016-01-10 12:17 UTC

This package is auto-updated.

Last update: 2024-12-14 19:48:11 UTC


README

My first Laravel package via composer done just for learning :) But works, if you want to use Piwik tracking code in your project :)

Usage

Add this middleware to the last array element to $middleware array in /app/Http/Kernel.php:

protected $middleware = [
        \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
        ...
        \App\Http\Middleware\PiwikCode::class
    ];