mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Fixed bounce rate calculation.
This commit is contained in:
parent
13ec32b1c9
commit
2addb96e4b
2 changed files with 3 additions and 3 deletions
|
|
@ -35,7 +35,7 @@ export default function MetricsBar({ websiteId, startDate, endDate, className })
|
|||
<MetricCard label="Visitors" value={uniques} format={formatFunc} />
|
||||
<MetricCard
|
||||
label="Bounce rate"
|
||||
value={uniques ? (bounces / uniques) * 100 : 0}
|
||||
value={pageviews ? (bounces / pageviews) * 100 : 0}
|
||||
format={n => Number(n).toFixed(0) + '%'}
|
||||
/>
|
||||
<MetricCard
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue