From a14c4051d2606a6dc9070d0e4a8588a280819ab5 Mon Sep 17 00:00:00 2001 From: Alexis Saettler Date: Sun, 10 Mar 2024 11:22:32 +0100 Subject: [PATCH] update --- app/Http/Middleware/TrackPageview.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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'))