0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Fixed bounce rate on stats page (#21097)

closes
https://linear.app/tryghost/issue/ANAL-81/investigate-bounce-rate-looks-incorrect

- Think I've figured out what was wrong
- TODO: Figure out TinyBird's test pipeline, so we can verify this
This commit is contained in:
Hannah Wolfe 2024-09-24 15:52:57 +01:00 committed by GitHub
parent 7e27b1cb36
commit 45211b2f4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -96,7 +96,7 @@ export default class KpisOverview extends Component {
avg_session_sec: Math.floor(_ponderatedKPIsTotal('avg_session_sec') / 60),
pageviews: formatNumber(_KPITotal('pageviews')),
visits: formatNumber(totalVisits),
bounce_rate: _ponderatedKPIsTotal('bounce_rate').toFixed(2)
bounce_rate: (_ponderatedKPIsTotal('bounce_rate') * 100).toFixed(0)
};
}

View file

@ -147,7 +147,7 @@ SQL >
a.date as date,
sum(b.visits) as visits,
sum(b.pageviews) as pageviews,
sum(b.bounce_rate) as bounce_rate,
avg(b.bounce_rate) as bounce_rate,
sum(b.avg_session_sec) as avg_session_sec
from timeseries a
left join data b using date