Reports > Top Traffic Sources - Topics Stat Issue

AI-generated summary

A bug is reported in the “Top Traffic Sources” report, specifically with the “Topics” stat. markersocial observes that changing the date range does not affect the Topics count, which seems to be fixed to the last 30/31-day period. This issue is confirmed by simon, who reproduces it on Meta. The problem appears to be with the date filter, causing the Topics count to be inconsistent with the selected time frame.

So for the report ‘Top Traffic Sources’, I believe there is a bug for the ‘Topics’ stats. Unless I am misunderstanding the report.

The issue is that when you adjust the date range, the Topics count doesn’t seem to adjust to match the time frame, those values seems mostly unaffected by changing the time frame. I’d guess that the amount is fixed to the last 30/31 day period. The amount of clicks per source does adjust as expected for different time frames.

I’m under the impression that:
Clicks = Amount of clicks from external sources within the selected time frame.
Topics = Amount of unique topics, that these clicks arrived to per external source.

If I adjust the time frame for this report to say, a period of 1 day. I see a ‘Topics’ amount that is higher than the amount of total clicks for each source. Which isn’t possible, unless I’m misunderstanding the report.

Observed on 2.6.0 and 2.6.1 stable.

2 Likes

Something is wrong with the date filer on that report. I can reproduce the issue you’re describing with the Top Traffic Sources report on Meta.

3 Likes

Fixed now via FIX: Respect date range in top traffic sources report by pmusaraj · Pull Request #25599 · discourse/discourse · GitHub