# Data & reporting

**URL:** https://meta.discourse.org/c/community-building/data-reporting/148.md?page=14

[最新版本](https://meta.discourse.org/latest.md) · [分類](https://meta.discourse.org/categories.md) · [標簽](https://meta.discourse.org/tags.md)

**Page:** 15

---

## [仪表盘自定义时间段](https://meta.discourse.org/t/custom-time-period-in-dashboard/164838)

<div class="topic-metadata">

**Author:** [@Jamie\_Liu1](https://meta.discourse.org/u/Jamie_Liu1)\
**回覆:** 7\
**Last updated:** [2022年一月27日 16:31 UTC](https://meta.discourse.org/t/custom-time-period-in-dashboard/164838 "2022-01-27T16:31:03Z")

</div>

你好， 目前统计数据仅提供固定时间段： 是否有计划支持自定义时间段？例如，我想获取论坛从四月到九月的 pv 和 uv 数据。但是，数据不…

---

## [数据浏览器查询 - 按标签/类别划分的用户新主题](https://meta.discourse.org/t/data-explorer-query-new-topics-for-user-by-tag-category/214303)

<div class="topic-metadata">

**Author:** [@Krischan](https://meta.discourse.org/u/Krischan)\
**回覆:** 2\
**Last updated:** [2022年一月25日 21:08 UTC](https://meta.discourse.org/t/data-explorer-query-new-topics-for-user-by-tag-category/214303 "2022-01-25T21:08:47Z")

</div>

我正尝试通过 Discourse API 为用户构建一个“推荐引擎”，该引擎可以按标签/类别列出用户尚未阅读的所有主题。我浏览了各种现有查询，但毫无头绪……

---

## [显示过去 X 天的数据](https://meta.discourse.org/t/show-data-for-last-x-days/215810)

<div class="topic-metadata">

**Author:** [@Amine\_Akkar](https://meta.discourse.org/u/Amine_Akkar)\
**回覆:** 2\
**Last updated:** [2022年一月24日 14:52 UTC](https://meta.discourse.org/t/show-data-for-last-x-days/215810 "2022-01-24T14:52:34Z")

</div>

你好 我正在尝试运行一个报告，显示过去30天的访问情况，所以我使用了这个查询，但显然是错误的： select distinct user\_id, max(visited\_at) as visited\_at from user\_visits WHERE CAST(visit…

---

## [Get list of topics pinned globally](https://meta.discourse.org/t/get-list-of-topics-pinned-globally/68972)

<div class="topic-metadata">

**Author:** [@adopilot](https://meta.discourse.org/u/adopilot)\
**回覆:** 7\
**Last updated:** [2022年一月20日 10:08 UTC](https://meta.discourse.org/t/get-list-of-topics-pinned-globally/68972 "2022-01-20T10:08:34Z")

</div>

Is there a way to get list of topics which are pinned globally. In advanced search there is “are pinned” but it does list all pined topics. We wold like to find globally pined topics so we can clear our latest list…

---

## [按注册“自定义字段”筛选用户的查询](https://meta.discourse.org/t/query-to-filter-users-by-sign-up-custom-fields/100837)

<div class="topic-metadata">

**Author:** [@Henry\_Cooper](https://meta.discourse.org/u/Henry_Cooper)\
**回覆:** 11\
**Last updated:** [2022年一月17日 20:15 UTC](https://meta.discourse.org/t/query-to-filter-users-by-sign-up-custom-fields/100837 "2022-01-17T20:15:45Z")

</div>

我在注册时设置了一个自定义下拉字段，用户可以选择最适合他们的“类别”。 我如何根据用户在该下拉菜单中的选择来查找用户？

---

## [通过使用 Matomo 保护用户隐私，是否应放弃 Google Analytics？](https://meta.discourse.org/t/protect-user-privacy-by-using-matomo-dumping-google-analytics/96837)

<div class="topic-metadata">

**Author:** [@Bretty](https://meta.discourse.org/u/Bretty)\
**回覆:** 18\
**Last updated:** [2022年一月13日 12:22 UTC](https://meta.discourse.org/t/protect-user-privacy-by-using-matomo-dumping-google-analytics/96837 "2022-01-13T12:22:09Z")

</div>

你好， 我逐渐熟悉了 Discourse 社区。我正在考虑为两个完全不同的社区搭建 Discourse。我已经在其他网站（如 letsencrypt）上慢慢熟悉了它。 我……

---

## [查看访客/匿名访客的IP地址？](https://meta.discourse.org/t/view-ip-address-of-guests-anonymous-visitors/214577)

<div class="topic-metadata">

**Author:** [@Richie](https://meta.discourse.org/u/Richie)\
**回覆:** 13\
**Last updated:** [2022年一月13日 09:13 UTC](https://meta.discourse.org/t/view-ip-address-of-guests-anonymous-visitors/214577 "2022-01-13T09:13:21Z")

</div>

是否有办法查看匿名用户/访客的IP地址？以及/或者每个连接的数量？我的网站在过去几个小时内，每分钟都有数百甚至数千次的页面浏览量，处理器...

---

## [筛选或创建统计信息](https://meta.discourse.org/t/filter-or-create-statistics/214393)

<div class="topic-metadata">

**Author:** [@warri0r](https://meta.discourse.org/u/warri0r)\
**回覆:** 2\
**Last updated:** [2022年一月11日 17:46 UTC](https://meta.discourse.org/t/filter-or-create-statistics/214393 "2022-01-11T17:46:53Z")

</div>

是否有按国家筛选统计数据的方法，或者为每个国家创建新的统计数据？也许可以通过插件实现？我需要一个比较，看看哪个国家最活跃。谢谢。

---

## [Consolidated Pageviews 中的匿名用户](https://meta.discourse.org/t/anonymous-users-in-consolidated-pageviews/214442)

<div class="topic-metadata">

**Author:** [@Mr.X\_Mr.X](https://meta.discourse.org/u/Mr.X_Mr.X)\
**回覆:** 1\
**Last updated:** [2022年一月10日 20:25 UTC](https://meta.discourse.org/t/anonymous-users-in-consolidated-pageviews/214442 "2022-01-10T20:25:56Z")

</div>

在控制面板中，汇总页面视图列出了登录用户、匿名用户和爬虫的每日统计数据。我的网站有一个访客墙，它限制未登录的访客只能访问一页......

---

## [如何在数据探索器中使用正则表达式的捕获组？](https://meta.discourse.org/t/how-to-use-capture-groups-in-a-regex-in-data-explorer/139519)

<div class="topic-metadata">

**Author:** [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)\
**回覆:** 1\
**Last updated:** [2021年十二月8日 19:22 UTC](https://meta.discourse.org/t/how-to-use-capture-groups-in-a-regex-in-data-explorer/139519 "2021-12-08T19:22:37Z")

</div>

当我尝试使用带问号的捕获组 (...) 时，会出现错误。例如： select p.raw from posts p where p.raw ~\* '^(muchas )?gracias$' limit 1; 错误信息如下： ActiveRecord::PreparedStatementIn…

---

## [查询用户的电子邮件设置](https://meta.discourse.org/t/query-for-users-email-settings/203646)

<div class="topic-metadata">

**Author:** [@Jonathan5](https://meta.discourse.org/u/Jonathan5)\
**回覆:** 1\
**Last updated:** [2021年十一月29日 20:21 UTC](https://meta.discourse.org/t/query-for-users-email-settings/203646 "2021-11-29T20:21:08Z")

</div>

我怎样才能知道有多少用户拥有每种电子邮件设置？我之所以这样问，是因为在关注某个话题的用户中，只有大约十分之一的用户收到了帖子通知邮件。谢谢。谢谢。

---

## [数据探索器查询：列出“估计阅读时间”最长的主题？](https://meta.discourse.org/t/data-explorer-query-to-list-the-longest-estimated-read-time-topics/196761)

<div class="topic-metadata">

**Author:** [@Richie](https://meta.discourse.org/u/Richie)\
**回覆:** 14\
**Last updated:** [2021年十一月27日 10:49 UTC](https://meta.discourse.org/t/data-explorer-query-to-list-the-longest-estimated-read-time-topics/196761 "2021-11-27T10:49:05Z")

</div>

大家好， 是否可以创建一个数据浏览器查询，列出按“估计阅读时间”排序的“前 X 名”主题？ 我想知道我们的 Discourse 上哪些主题最耗时 :smiley: （而且……

---

## [为什么仅限登录的论坛会累积匿名页面浏览量？](https://meta.discourse.org/t/why-do-anonymous-page-views-accumulate-on-login-only-forum/105108)

<div class="topic-metadata">

**Author:** [@L30110](https://meta.discourse.org/u/L30110)\
**回覆:** 3\
**Last updated:** [2018年十二月27日 01:45 UTC](https://meta.discourse.org/t/why-do-anonymous-page-views-accumulate-on-login-only-forum/105108 "2018-12-27T01:45:56Z")

</div>

我的整个论坛仅限登录访问。但在仪表板中，我看到一些匿名页面浏览量正在累积，它们似乎并非来自 404 错误（我真的很想从 Discourse 的“页面不存在或已”页脚中移除该部分。

---

## [应用使用数据](https://meta.discourse.org/t/data-on-app-use/209989)

<div class="topic-metadata">

**Author:** [@Jonathan5](https://meta.discourse.org/u/Jonathan5)\
**回覆:** 0\
**Last updated:** [2021年十一月23日 16:31 UTC](https://meta.discourse.org/t/data-on-app-use/209989 "2021-11-23T16:31:35Z")

</div>

能否提供一些关于 iOS/Android 应用使用情况的信息？ 例如，有多少用户通过它们登录，以及有多少比例的浏览是通过它们完成的。 谢谢。

---

## [查询当前投票数](https://meta.discourse.org/t/query-for-current-vote-count/240985)

<div class="topic-metadata">

**Author:** [@icaria36](https://meta.discourse.org/u/icaria36)\
**回覆:** 4\
**Last updated:** [2021年十一月20日 17:07 UTC](https://meta.discourse.org/t/query-for-current-vote-count/240985 "2021-11-20T17:07:05Z")

</div>

您好，我是一名完全的 SQL 新手。 我想得到一个列表，显示“多少用户”投了“多少票”。在我们的实例中，每人最多可以投10票。 结果表看起来会是这样： 投票数 N…

---

## [Help finding some monthly site stats about topics and user trust levels](https://meta.discourse.org/t/help-finding-some-monthly-site-stats-about-topics-and-user-trust-levels/42560)

<div class="topic-metadata">

**Author:** [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)\
**回覆:** 20\
**Last updated:** [2018年十二月20日 13:57 UTC](https://meta.discourse.org/t/help-finding-some-monthly-site-stats-about-topics-and-user-trust-levels/42560 "2018-12-20T13:57:08Z")

</div>

I’d like to track the following stats on a monthly basis and am finding them hard to find retroactively. I’d be grateful for any advice on how to proceed - maybe others would also be interested. Number of topics start…

---

## [用户登录历史](https://meta.discourse.org/t/user-login-history/207564)

<div class="topic-metadata">

**Author:** [@skins](https://meta.discourse.org/u/skins)\
**回覆:** 1\
**Last updated:** [2021年十一月2日 16:53 UTC](https://meta.discourse.org/t/user-login-history/207564 "2021-11-02T16:53:38Z")

</div>

大家好， 我能在 Discourse 的某个表中找到登录历史记录吗？ 我使用数据浏览器，但表太多了 有什么想法吗？

---

## [筛选工作人员未回复的主题](https://meta.discourse.org/t/filter-topics-not-answered-by-staff/207739)

<div class="topic-metadata">

**Author:** [@karen1](https://meta.discourse.org/u/karen1)\
**回覆:** 4\
**Last updated:** [2021年十一月2日 11:17 UTC](https://meta.discourse.org/t/filter-topics-not-answered-by-staff/207739 "2021-11-02T11:17:41Z")

</div>

我是一个 Discourse 论坛的管理员：forum.testproject.io，并且想要筛选出尚未被工作人员专门回复的帖子。https://forum.testproject.io/latest?max\_posts=1 这个 URL 只过滤了…

---

## [谁禁言/忽略了用户](https://meta.discourse.org/t/list-who-muted-ignored-users/206857)

<div class="topic-metadata">

**Author:** [@ondrej](https://meta.discourse.org/u/ondrej)\
**回覆:** 3\
**Last updated:** [2021年十月24日 10:12 UTC](https://meta.discourse.org/t/list-who-muted-ignored-users/206857 "2021-10-24T10:12:05Z")

</div>

大家好！:smiley: 使用数据浏览器，能否在表格中显示哪些用户被静音和忽略了，以及是谁操作的？如果有人能帮我一把，我将非常感激 :heart: 谢谢

---

## [正在关注特定类别的用户电子邮件列表](https://meta.discourse.org/t/list-of-emails-of-users-watching-a-specific-category/198171)

<div class="topic-metadata">

**Author:** [@alehandrof](https://meta.discourse.org/u/alehandrof)\
**回覆:** 6\
**Last updated:** [2021年十月11日 12:05 UTC](https://meta.discourse.org/t/list-of-emails-of-users-watching-a-specific-category/198171 "2021-10-11T12:05:31Z")

</div>

我有一个Data Explorer查询，它运行如下： SELECT \* FROM category\_users WHERE category\_id = 这给了我一个类似这样的结果： 我该如何在此输出中也显示用户的电子邮件？ （为防止…

---

## [显示主题名称列表以及自加入以来选择它们的人员的数据浏览器查询代码？](https://meta.discourse.org/t/data-explorer-query-code-to-show-list-of-topic-names-and-who-has-selected-them-since-joining/203598)

<div class="topic-metadata">

**Author:** [@Solly](https://meta.discourse.org/u/Solly)\
**回覆:** 3\
**Last updated:** [2021年九月22日 05:00 UTC](https://meta.discourse.org/t/data-explorer-query-code-to-show-list-of-topic-names-and-who-has-selected-them-since-joining/203598 "2021-09-22T05:00:06Z")

</div>

有人能提供一个Data Explorer查询代码，让我可以看到在他们加入论坛时被选中的人数、他们拥有的标签以及这些标签是什么吗？例如，导出到Excel时，标签列表（标签是什么……

---

## [在特定时期内，有多少浏览者浏览了某个主题？](https://meta.discourse.org/t/how-many-viewers-viewed-a-topic-during-a-certain-period/203486)

<div class="topic-metadata">

**Author:** [@gassim](https://meta.discourse.org/u/gassim)\
**回覆:** 3\
**Last updated:** [2021年九月15日 19:23 UTC](https://meta.discourse.org/t/how-many-viewers-viewed-a-topic-during-a-certain-period/203486 "2021-09-15T19:23:44Z")

</div>

我正在尝试找出一种方法，以确定在特定时期内有多少观众（登录或未登录）查看了某个主题。我搜索了答案，但找不到确切的解决方案。使用数据浏览器，我尝试……

---

## [看到匿名用户和爬虫流量，虽然网站是私有的](https://meta.discourse.org/t/seeing-anonymous-user-and-crawler-traffic-even-though-site-is-private/181051)

<div class="topic-metadata">

**Author:** [@sudoman](https://meta.discourse.org/u/sudoman)\
**回覆:** 3\
**Last updated:** [2021年九月9日 22:08 UTC](https://meta.discourse.org/t/seeing-anonymous-user-and-crawler-traffic-even-though-site-is-private/181051 "2021-09-09T22:08:08Z")

</div>

我帮助管理一个私有的 Discourse 实例，并且注意到我的仪表板上显示了一些匿名的用户和网络爬虫流量记录。现在仔细一看，我发现这种情况之前就发生了……

---

## [是否有办法禁用 Consolidated Pageview 中的“爬虫”？](https://meta.discourse.org/t/anyway-to-disable-crawlers-in-consolidated-pageview/200657)

<div class="topic-metadata">

**Author:** [@hyphalos](https://meta.discourse.org/u/hyphalos)\
**回覆:** 2\
**Last updated:** [2021年八月18日 02:07 UTC](https://meta.discourse.org/t/anyway-to-disable-crawlers-in-consolidated-pageview/200657 "2021-08-18T02:07:59Z")

</div>

大家好！ 由于图表显示了爬虫和匿名用户，登录用户有点难看清，是否可以在图表中过滤掉爬虫，只显示匿名用户和登录用户……

---

## [复杂的用户活动报告要求](https://meta.discourse.org/t/complex-user-activity-report-requirement/198641)

<div class="topic-metadata">

**Author:** [@Paul\_King](https://meta.discourse.org/u/Paul_King)\
**回覆:** 22\
**Last updated:** [2021年八月5日 22:30 UTC](https://meta.discourse.org/t/complex-user-activity-report-requirement/198641 "2021-08-05T22:30:36Z")

</div>

我正在寻找一种方法，让 Discourse 生成活动报告，提供任意两个自定义日期之间的所有用户活动概览（当前内置功能似乎只有预设范围…）。

---

## [基于特定类别已解决主题数量的自定义徽章 SQL 查询](https://meta.discourse.org/t/custom-badge-sql-query-based-on-how-many-solved-topics-in-a-certain-category/198865)

<div class="topic-metadata">

**Author:** [@AquaL1te](https://meta.discourse.org/u/AquaL1te)\
**回覆:** 0\
**Last updated:** [2021年八月2日 04:52 UTC](https://meta.discourse.org/t/custom-badge-sql-query-based-on-how-many-solved-topics-in-a-certain-category/198865 "2021-08-02T04:52:44Z")

</div>

继续讨论自 "What cool badge queries have you come up with?": 我正在尝试弄清楚以下内容。我希望下面的 SQL 查询能够在一个类别 ID 中工作： SELECT id user\_id, current\_timestamp gr…

---

## [数据浏览器 - 各类别通知状态列表](https://meta.discourse.org/t/data-explorer-list-of-notification-status-per-category/198070)

<div class="topic-metadata">

**Author:** [@Jonathan5](https://meta.discourse.org/u/Jonathan5)\
**回覆:** 3\
**Last updated:** [2021年七月26日 11:57 UTC](https://meta.discourse.org/t/data-explorer-list-of-notification-status-per-category/198070 "2021-07-26T11:57:28Z")

</div>

如何获取正在关注/跟踪/等类别的人员列表？或者仅仅是每个通知级别的用户数？谢谢。

---

## [在外部网站上展示 Data Explorer 数据的最佳方法？](https://meta.discourse.org/t/best-way-to-show-data-explorer-data-on-an-external-website/197861)

<div class="topic-metadata">

**Author:** [@gbain](https://meta.discourse.org/u/gbain)\
**回覆:** 5\
**Last updated:** [2021年七月22日 17:53 UTC](https://meta.discourse.org/t/best-way-to-show-data-explorer-data-on-an-external-website/197861 "2021-07-22T17:53:50Z")

</div>

首先，我想说明的是，我是 Discourse 的新手。我在 Data Explorer 中构建了一个查询，希望用它来填充我们网站上的一个特定页面（该页面将主要显示特定…下的主题…

---

## [Fathom Analytics 统计的页面浏览量远超 Discourse 自带统计。有什么想法吗？](https://meta.discourse.org/t/fathom-analytics-counting-way-more-page-views-than-discourses-own-stats-any-ideas/196975)

<div class="topic-metadata">

**Author:** [@jrgong](https://meta.discourse.org/u/jrgong)\
**回覆:** 2\
**Last updated:** [2021年七月13日 12:29 UTC](https://meta.discourse.org/t/fathom-analytics-counting-way-more-page-views-than-discourses-own-stats-any-ideas/196975 "2021-07-13T12:29:47Z")

</div>

大家好 我们按照这里的步骤为我们的 discourse 论坛设置了 Fathom 分析： Fathom 支持已确认这应该是可行的方法 安装一周后，Fathom 的计数方式似乎有些问题……

---

## [如何在 Discourse 中嵌入跟踪 JS](https://meta.discourse.org/t/how-can-i-embed-tracking-js-into-discourse/161129)

<div class="topic-metadata">

**Author:** [@jakubgs](https://meta.discourse.org/u/jakubgs)\
**回覆:** 2\
**Last updated:** [2021年六月25日 21:57 UTC](https://meta.discourse.org/t/how-can-i-embed-tracking-js-into-discourse/161129 "2021-06-25T21:57:56Z")

</div>

我正在使用 Fathom Analytics 并尝试嵌入一些用于网站跟踪的 JS 脚本，它看起来像这样： (function(f, a, t, h, o, ...

[上一頁](https://meta.discourse.org/c/community-building/data-reporting/148.md?page=13)

[下一頁](https://meta.discourse.org/c/community-building/data-reporting/148.md?page=15)
