mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 02:59:07 +08:00
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
|
||
|---|---|---|
| .. | ||
| reports_section_spec.rb | ||
| site_traffic_section_spec.rb | ||