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
18.98k stars 1.02k forks source link

Fix recommending a tier on the upgrade page #4287

Closed RobertJoonas closed 1 day ago

RobertJoonas commented 1 week ago

Changes

A follow-up to https://github.com/plausible/analytics/pull/4277, which started counting pending ownership sites towards usage on the upgrade page. However, it didn't change the logic of how a plan box is highlighted as the "recommended tier".

This PR fixes that by implementing the following logic behind the recommended tier decision:

Tests

Changelog

Documentation

Dark mode