mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 16:45:35 +01:00
change bounce rate to use visits
This commit is contained in:
parent
d24634ffbb
commit
895398bebf
1 changed files with 4 additions and 4 deletions
|
|
@ -57,11 +57,11 @@ export function WebsiteMetricsBar({
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: formatMessage(labels.bounceRate),
|
label: formatMessage(labels.bounceRate),
|
||||||
value: (Math.min(visitors.value, bounces.value) / visitors.value) * 100,
|
value: (Math.min(visits.value, bounces.value) / visits.value) * 100,
|
||||||
prev: (Math.min(visitors.prev, bounces.prev) / visitors.prev) * 100,
|
prev: (Math.min(visits.prev, bounces.prev) / visits.prev) * 100,
|
||||||
change:
|
change:
|
||||||
(Math.min(visitors.value, bounces.value) / visitors.value) * 100 -
|
(Math.min(visits.value, bounces.value) / visits.value) * 100 -
|
||||||
(Math.min(visitors.prev, bounces.prev) / visitors.prev) * 100,
|
(Math.min(visits.prev, bounces.prev) / visits.prev) * 100,
|
||||||
formatValue: n => Number(n).toFixed(0) + '%',
|
formatValue: n => Number(n).toFixed(0) + '%',
|
||||||
reverseColors: true,
|
reverseColors: true,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue