diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c38013..d301a24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [0.1.2] - 2022-06-14 + +### Added + +- Hostname. + ## [0.1.1] - 2022-06-14 ### Added @@ -16,5 +22,6 @@ - TrackPageview middleware. +[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 [0.1.0]: https://github.com/pirsch-analytics/laravel-pirsch/releases/tag/0.1.0 diff --git a/src/Http/Middleware/TrackPageview.php b/src/Http/Middleware/TrackPageview.php index 82b751f..ec3f13a 100644 --- a/src/Http/Middleware/TrackPageview.php +++ b/src/Http/Middleware/TrackPageview.php @@ -25,6 +25,7 @@ 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'),