切换以从合并页面浏览量中隐藏爬虫

首先,我非常喜欢从 2.2.0.beta9 版本开始在仪表板上显示的新的整合页面浏览量图表!我觉得这里还有更多的改进空间。也许这是特定于我的社区的情况,但爬虫占据了总体页面浏览量的相当一部分:

这使得难以直观地检查日常变化,例如已登录用户的页面浏览量。

我的建议是提供一个切换开关来隐藏爬虫的页面浏览量,另一个切换开关来隐藏匿名用户的页面浏览量(并根据相应的最大值调整图表尺寸)。

这样,如果隐藏了爬虫的页面浏览量,实际用户的数据将更加清晰可见。如果再隐藏匿名用户的页面浏览量,就可以更仔细地检查已登录用户方面的社区健康状况。

您怎么看?

6 个赞

It will come in a future update, at least on the dedicated report page : /admin/reports/consolidated_page_views?start_date=2018-12-23&end_date=2019-01-23

We are working on a PR to have this kind of arbitrary filters easier to do: https://github.com/discourse/discourse/pull/6816

Doing this on the chart itself would be very easy to do, but I think this is a lot of visual space, for something you will end up clicking rarely. But I totally support it on the standalone report page.

9 个赞

That’s good news! Thanks for pointing to the PR.

One option would be to toggle-cycle through the different views by clicking on the graph itself. Not sure if this is something you’re up to. Maybe it’s too non-obvious (is this even a word?) and would result in more support overhead.

I do have some ideas to bring it on the chart directly, but it’s more involved and also requires the PR.

3 个赞

I want to come back to this again and propose another change, which might be easier to realize:

What do you think about rearranging the different bars so that logged in users are at the bottom, anonymous users in the middle and crawlers on top? This would allow for a better understanding of the differences in traffic of real users.

5 个赞

:100: And now that I look at the graph again after reading your suggestion, I realised that the color coding could be improved too: currently the web crawlers get the highest visual ‘weight’ and logged in users the lowest. This should be reversed (but maybe that will automatically happen once the order is changed?).

4 个赞

For inspiration I think grafana does a good job here so its a reasonable idea to emulate it.

In particular on /admin/reports/consolidated_page_views?start_date=2019-01-09&end_date=2019-02-09 you can display the label names and have them clickable, when bold they show when non bold they do not show the series.

One extra bit of interesting fancy grafana has is that you can use control as well which lets you select 2 out of 4.

Eg:

Not saying we emulate this 1-1, but its an interesting and nicely established pattern.

3 个赞

I do think this is a good idea. Your “base” is logged in users, the next most valuable is anonymous real users, bots and crawlers least valuable of all. Value :up: :arrow_up: @j.jaffeux

8 个赞

Ok done in:

6 个赞