usefathom / fathom

Fathom Lite. Simple, privacy-focused website analytics. Built with Golang & Preact.
https://usefathom.com/
MIT License
7.52k stars 364 forks source link

Allow Tracking From Electron Applications #328

Closed beeequeue closed 2 years ago

beeequeue commented 3 years ago

In Electron the application can be served from the file system, meaning tracking is impossible with the original check in place.

Electron apps have a user agent like

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) {{app_name}}/{{app_version}} Chrome/83.0.4103.122 Electron/9.4.4 Safari/537.36

so we can check if it contains Electron and continue if it it does.

LKaemmerling commented 2 years ago

Hey @BeeeQueue,

thank you for your change. It will be in the next release!