Skip to content

Commit b51cf7f

Browse files
committed
Add hostname
1 parent 251ab40 commit b51cf7f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [0.1.2] - 2022-06-14
4+
5+
### Added
6+
7+
- Hostname.
8+
39
## [0.1.1] - 2022-06-14
410

511
### Added
@@ -16,5 +22,6 @@
1622

1723
- TrackPageview middleware.
1824

25+
[0.1.2]: https://github.com/pirsch-analytics/laravel-pirsch/releases/tag/0.1.2
1926
[0.1.1]: https://github.com/pirsch-analytics/laravel-pirsch/releases/tag/0.1.1
2027
[0.1.0]: https://github.com/pirsch-analytics/laravel-pirsch/releases/tag/0.1.0

src/Http/Middleware/TrackPageview.php

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public function terminate(Request $request, mixed $response): void
2525

2626
Http::withToken(config('pirsch.token'))
2727
->post('https://api.pirsch.io/api/v1/hit', [
28+
'hostname' => $request->getHost(),
2829
'url' => $request->fullUrl(),
2930
'ip' => $request->ip(),
3031
'cf_connecting_ip' => $request->headers->get('CF-Connecting-IP'),

0 commit comments

Comments
 (0)