0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-11 02:59:07 +08:00
discourse/spec/system/admin_dashboard_redesign
Alan Guo Xiang Tan ad3b6b56c4
FIX: Exclude direct visits from top referrers percent denominator (#40358)
On the admin dashboard's Top Referrers card, each referrer's percentage
was divided by a total that included direct (no-referrer) pageviews.
Direct traffic usually dominates, so every external referrer's share
came out very small and was hard to compare at a glance.

This commit changes the percent denominator to count external referred
pageviews only, so each percentage now reads as a referrer's share of
referred traffic. Self-referrals were already excluded and the displayed
rows are unchanged. The denominator spans every external referrer in the
period rather than just the rows shown, so a referrer's percentage stays
stable regardless of the display limit. Follow-up to 9520d10c07, which
excluded internal referrers from the same denominator.
2026-05-28 14:19:04 +08:00
..
reports_section_spec.rb FEATURE: Customisable Reports section on the new admin dashboard (#40264) 2026-05-25 13:55:25 +03:00
site_traffic_section_spec.rb FIX: Exclude direct visits from top referrers percent denominator (#40358) 2026-05-28 14:19:04 +08:00