diff --git a/app/Http/Middleware/TrackPageview.php b/app/Http/Middleware/TrackPageview.php index 2bf2567..8b27fc9 100644 --- a/app/Http/Middleware/TrackPageview.php +++ b/app/Http/Middleware/TrackPageview.php @@ -41,7 +41,12 @@ public function track( app()->terminating(function () use ($name, $meta) { - Log::info('Pirsch '.($name === null ? 'hit' : 'event'), ['name' => $name, 'meta' => $meta]); + Log::info('Pirsch '.($name === null ? 'hit' : 'event'), [ + 'name' => $name, + 'meta' => $meta, + 'url' => request()->fullUrl(), + 'ip' => request()->ip(), + ]); try { Http::withToken(config('pirsch.token'))