mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Fixed bounce rate calculation.
This commit is contained in:
parent
13ec32b1c9
commit
2addb96e4b
2 changed files with 3 additions and 3 deletions
|
|
@ -236,7 +236,7 @@ export function getMetrics(website_id, start_at, end_at) {
|
|||
`
|
||||
select sum(t.c) as "pageviews",
|
||||
count(distinct t.session_id) as "uniques",
|
||||
sum(case when t.c = 1 then t.c else 0 end) as "bounces",
|
||||
sum(case when t.c = 1 then 1 else 0 end) as "bounces",
|
||||
sum(t.time) as "totaltime"
|
||||
from (
|
||||
select session_id,
|
||||
|
|
@ -260,7 +260,7 @@ export function getMetrics(website_id, start_at, end_at) {
|
|||
`
|
||||
select sum(t.c) as "pageviews",
|
||||
count(distinct t.session_id) as "uniques",
|
||||
sum(case when t.c = 1 then t.c else 0 end) as "bounces",
|
||||
sum(case when t.c = 1 then 1 else 0 end) as "bounces",
|
||||
sum(t.time) as "totaltime"
|
||||
from (
|
||||
select session_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue