plausible / analytics

Simple, open source, lightweight (< 1 KB) and privacy-friendly web analytics alternative to Google Analytics.
https://plausible.io
GNU Affero General Public License v3.0
19.69k stars 1.05k forks source link

Some browser name is missing from the collected data #2524

Closed tpimh closed 1 year ago

tpimh commented 1 year ago

Past Issues Searched

Issue is a Bug Report

Using official Plausible Cloud hosting or self-hosting?

Self-hosting

Describe the bug

After an upgrade to 1.5.1 according to the migration guide (analytics, clickhouse and postgres upgraded), I noticed that one of the browsers lost its name. Now it's shown as an empty bar as seen on the screenshot below.

This issue is not critical. It's rather an unpopular browser (if it was chrome, firefox or safari, I would've cared much), and I don't know what it showed as before upgrade, but I definitely recall that there were no empty bars under the browsers. I would be okay with just removing it from the statistics, but I don't know how to do it.

Expected behavior

The browser name (I don't know what it was), should be kept between upgraded.

Screenshots

image

Environment

- OS: Alpine Linux
- Browser: Firefox (reproducible on other browsers)
- Browser Version: 107 (reproducible on other versions)
ruslandoga commented 1 year ago

@tpimh 👋

I wonder if that browser shows up in the CSV export?

tpimh commented 1 year ago

Thanks for your quick reaction! Nope, in CSV export it's line shows as this: ,2.

ruslandoga commented 1 year ago

There seems to be an empty browser name on https://plausible.io/plausible.io/browsers?period=all as well, at the very bottom. I'd guess it's an aggregate of all sessions that didn't have a browser extracted from the user-agent header. Maybe in the prev version something else was being returned instead of an empty string or it was not being returned at all.

metmarkosaric commented 1 year ago

Yeah I don't think this is related to self hosting. It happens on cloud too and is nothing new. Happens on Google Analytics too. We plan to categorize these visits as "(not set)" in the future like GA does rather than blank as they're now.

tpimh commented 1 year ago

@ruslandoga I just noticed that there's also a size with no name, that's interesting.

ukutaht commented 1 year ago

The empty name means that the browser could not be determined. We now show an explicit (not set) entry instead of an empty line to make it clearer. Fixed in #2646