diff --git a/CHANGELOG.md b/CHANGELOG.md index 65c79e4..fb3e253 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [0.4.8] - 2023-09-22 + +### Added + +- Support client hints. + ## [0.4.7] - 2023-08-02 ### Changed @@ -110,6 +116,7 @@ - TrackPageview middleware. +[0.4.8]: https://github.com/pirsch-analytics/laravel-pirsch/releases/tag/0.4.8 [0.4.7]: https://github.com/pirsch-analytics/laravel-pirsch/releases/tag/0.4.7 [0.4.6]: https://github.com/pirsch-analytics/laravel-pirsch/releases/tag/0.4.6 [0.4.5]: https://github.com/pirsch-analytics/laravel-pirsch/releases/tag/0.4.5 diff --git a/src/Pirsch.php b/src/Pirsch.php index e0c3305..2a125eb 100755 --- a/src/Pirsch.php +++ b/src/Pirsch.php @@ -31,6 +31,12 @@ public static function track( 'ip' => request()->ip(), 'user_agent' => request()->userAgent(), 'accept_language' => request()->header('Accept-Language'), + 'sec_ch_ua' => request()->header('Sec-CH-UA'), + 'sec_ch_ua_mobile' => request()->header('Sec-CH-UA-Mobile'), + 'sec_ch_ua_platform' => request()->header('Sec-CH-UA-Platform'), + 'sec_ch_ua_platform_version' => request()->header('Sec-CH-UA-Platform-Version'), + 'sec_ch_width' => request()->header('Sec-CH-Width'), + 'sec_ch_viewport_width' => request()->header('Sec-CH-Viewport-Width'), 'referrer' => request()->header('Referer'), ...$name === null ? []