pirsch-analytics / pirsch

Pirsch is a drop-in, server-side, no-cookie, and privacy-focused analytics solution for Go.
https://pirsch.io
GNU Affero General Public License v3.0
918 stars 42 forks source link

Support Client Hints #243

Closed Kugelschieber closed 1 year ago

Kugelschieber commented 2 years ago
Kugelschieber commented 1 year ago
req.Header.Get("Sec-CH-UA")
req.Header.Get("Sec-CH-UA-Mobile")
req.Header.Get("Sec-CH-UA-Platform")
req.Header.Get("Sec-CH-UA-Platform-Version")
req.Header.Get("Sec-CH-Width")
req.Header.Get("Sec-CH-Viewport-Width")

https://user-agent-client-hints.glitch.me/headers?uach=Sec-CH-UA-Arch&uach=Sec-CH-UA-Bitness&uach=Sec-CH-UA-Full-Version&uach=Sec-CH-UA-Full-Version-List&uach=Sec-CH-UA-Mobile&uach=Sec-CH-UA-Model&uach=Sec-CH-UA-Platform-Version&uach=Sec-CH-UA-Platform&uach=Sec-CH-UA-Wow64&uach=Sec-CH-UA

Sec-CH-UA: "Not/A)Brand";v="99", "Google Chrome";v="115", "Chromium";v="115"
Sec-CH-UA-Mobile: ?0
Sec-CH-UA-Full-Version: "115.0.5790.170"
Sec-CH-UA-Full-Version-List: "Not/A)Brand";v="99.0.0.0", "Google Chrome";v="115.0.5790.170", "Chromium";v="115.0.5790.170"
Sec-CH-UA-Platform: "Linux"
Sec-CH-UA-Platform-Version: "6.4.10"
Sec-CH-UA-Arch: "x86"
Sec-CH-UA-Wow64: ?0
Sec-CH-UA-Bitness: "64"
Sec-CH-UA-Model: ""

Sec-CH-UA: "Not/A)Brand";v="99", "Google Chrome";v="115", "Chromium";v="115"
Sec-CH-UA-Mobile: ?0
Sec-CH-UA-Full-Version: "115.0.5790.173"
Sec-CH-UA-Full-Version-List: "Not/A)Brand";v="99.0.0.0", "Google Chrome";v="115.0.5790.173", "Chromium";v="115.0.5790.173"
Sec-CH-UA-Platform: "Windows"
Sec-CH-UA-Platform-Version: "10.0.0"
Sec-CH-UA-Arch: "x86"
Sec-CH-UA-Wow64: ?0
Sec-CH-UA-Bitness: "64"
Sec-CH-UA-Model: ""

Sec-CH-UA: "Not/A)Brand";v="99", "Google Chrome";v="115", "Chromium";v="115"
Sec-CH-UA-Mobile: ?1
Sec-CH-UA-Full-Version: "115.0.5790.166"
Sec-CH-UA-Full-Version-List: "Not/A)Brand";v="99.0.0.0", "Google Chrome";v="115.0.5790.166", "Chromium";v="115.0.5790.166"
Sec-CH-UA-Platform: "Android"
Sec-CH-UA-Platform-Version: "13.0.0"
Sec-CH-UA-Arch: ""
Sec-CH-UA-Wow64: ?0
Sec-CH-UA-Bitness: ""
Sec-CH-UA-Model: "Pixel 7"
Kugelschieber commented 1 year ago

Sec-CH-UA-Platform: "Android", "Chrome OS", "Chromium OS", "iOS", "Linux", "macOS", "Windows", or "Unknown"

Kugelschieber commented 1 year ago

Chrome: image Edge: image Opera: image