From adfc44368b9adc4a06342418b2ccbe1a8c051000 Mon Sep 17 00:00:00 2001 From: Zep Fietje Date: Thu, 16 Jun 2022 15:37:46 +0200 Subject: [PATCH] No longer send hostname --- CHANGELOG.md | 7 +++++++ src/Http/Middleware/TrackPageview.php | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7567135..09b9307 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [0.2.1] - 2022-06-16 + +### Removed + +- Hostname. + ## [0.2.0] - 2022-06-14 ### Removed @@ -28,6 +34,7 @@ - TrackPageview middleware. +[0.2.1]: https://github.com/pirsch-analytics/laravel-pirsch/releases/tag/0.2.1 [0.2.0]: https://github.com/pirsch-analytics/laravel-pirsch/releases/tag/0.2.0 [0.1.2]: https://github.com/pirsch-analytics/laravel-pirsch/releases/tag/0.1.2 [0.1.1]: https://github.com/pirsch-analytics/laravel-pirsch/releases/tag/0.1.1 diff --git a/src/Http/Middleware/TrackPageview.php b/src/Http/Middleware/TrackPageview.php index c523882..5a9bcd0 100644 --- a/src/Http/Middleware/TrackPageview.php +++ b/src/Http/Middleware/TrackPageview.php @@ -21,7 +21,6 @@ public function terminate(Request $request, mixed $response): void Http::withToken(config('pirsch.token')) ->post('https://api.pirsch.io/api/v1/hit', [ - 'hostname' => $request->getHost(), 'url' => $request->fullUrl(), 'ip' => $request->ip(), 'cf_connecting_ip' => $request->headers->get('CF-Connecting-IP'),