Skip to content

Commit

Permalink
Add hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
zepfietje committed Jun 14, 2022
1 parent 251ab40 commit b51cf7f
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions src/Http/Middleware/TrackPageview.php
Original file line number Diff line number Diff line change
@@ -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'),

0 comments on commit b51cf7f

Please sign in to comment.