mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 22:27:16 +01:00
Merge pull request #375 from styd/bounce-rate
Fix bounce rate miscalculation
This commit is contained in:
commit
839c6d00da
2 changed files with 14 additions and 14 deletions
|
|
@ -60,7 +60,7 @@ export default function MetricsBar({ websiteId, className }) {
|
|||
/>
|
||||
<MetricCard
|
||||
label={<FormattedMessage id="metrics.bounce-rate" defaultMessage="Bounce rate" />}
|
||||
value={pageviews ? (bounces / pageviews) * 100 : 0}
|
||||
value={uniques ? (bounces / uniques) * 100 : 0}
|
||||
format={n => Number(n).toFixed(0) + '%'}
|
||||
/>
|
||||
<MetricCard
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue