# Data & reporting

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

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

**Page:** 4

---

## [数据探索器查询所有活跃用户（潜水员+发帖者)](https://meta.discourse.org/t/data-explorer-query-for-all-active-users-lurkers-posters/188343)

<div class="topic-metadata">

**Author:** [@nathank](https://meta.discourse.org/u/nathank)\
**回覆:** 5\
**Last updated:** [2024年十一月25日 07:55 UTC](https://meta.discourse.org/t/data-explorer-query-for-all-active-users-lurkers-posters/188343 "2024-11-25T07:55:42Z")

</div>

I’m looking to give our team stats over how many current active users we have, with the following definition of ‘Active User’: Users who have either read whilst logged in or posted to our forum over the last year We …

---

## [使用数据浏览器获取通过邀请注册的用户列表](https://meta.discourse.org/t/use-data-explorer-to-get-a-list-of-users-who-signed-up-via-invitations/224871)

<div class="topic-metadata">

**Author:** [@a.jaskiewicz](https://meta.discourse.org/u/a.jaskiewicz)\
**回覆:** 7\
**Last updated:** [2024年十一月19日 17:39 UTC](https://meta.discourse.org/t/use-data-explorer-to-get-a-list-of-users-who-signed-up-via-invitations/224871 "2024-11-19T17:39:02Z")

</div>

大家好！ 有没有办法检查通过邀请注册我们论坛的用户列表？ 谢谢！

---

## ["清除Inactive用户的天数"的含义和统计数据](https://meta.discourse.org/t/clean-up-inactive-users-after-days-meaning-and-statistics/335999)

<div class="topic-metadata">

**Author:** [@Jonathan5](https://meta.discourse.org/u/Jonathan5)\
**回覆:** 3\
**Last updated:** [2024年十一月14日 01:10 UTC](https://meta.discourse.org/t/clean-up-inactive-users-after-days-meaning-and-statistics/335999 "2024-11-14T01:10:31Z")

</div>

这被描述为： 移除不活跃用户（信任等级 0 且没有任何帖子）之前的日数。设置为 0 可禁用清理。 您能否确认这些是标准（TL0 和 0 帖子）？是否考虑了他们上次登录和/或阅读帖子的时间，或者天数是从注册开始计算的？ 是否有数据浏览器查询可以显示具有 0 帖子的 TL0 用户以及相关的天数？这将有助于了解为该设置选择特定数字的效果。谢谢。

---

## [社区情绪与有害内容查询](https://meta.discourse.org/t/community-sentiment-and-toxicity-queries/275741)

<div class="topic-metadata">

**Author:** [@SaraDev](https://meta.discourse.org/u/SaraDev)\
**回覆:** 14\
**Last updated:** [2024年十一月13日 16:26 UTC](https://meta.discourse.org/t/community-sentiment-and-toxicity-queries/275741 "2024-11-13T16:26:21Z")

</div>

如果您想查看 Community Sentiment 和 Toxicity 模块的分类结果数据库，可以使用 Data Explorer 插件中的 classification\_results 表。 这对于了解 AI 插件在您的网站上的运行情况以及如何对帖子进行分类非常有用。 AI Sentiment SELECT target\_id as post\_id, model\_used, classification-\>'negative'…

---

## [事后统计每个日历月的用户数量](https://meta.discourse.org/t/retrospectively-pulling-number-of-users-each-calendar-month/334522)

<div class="topic-metadata">

**Author:** [@marvi](https://meta.discourse.org/u/marvi)\
**回覆:** 9\
**Last updated:** [2024年十一月12日 11:50 UTC](https://meta.discourse.org/t/retrospectively-pulling-number-of-users-each-calendar-month/334522 "2024-11-12T11:50:59Z")

</div>

您好！我们正在使用 Discourse 的云托管版本，并且已经运行了大约 1.5 年。我们希望能够获取一些关于平台采用和使用情况的历史指标。我们已经在“管理员报告”选项卡中查看了“注册用户”报告，但我们也想能够显示每月活跃用户总数。有人知道我该如何实现这个目标吗？我在“报告”或“数据浏览器”中找不到合适的方法。

---

## [类别与数据浏览器中的观看次数差异](https://meta.discourse.org/t/view-count-difference-in-category-vs-data-explorer/314227)

<div class="topic-metadata">

**Author:** [@philip-ellis-sp](https://meta.discourse.org/u/philip-ellis-sp)\
**回覆:** 3\
**Last updated:** [2024年十一月9日 09:16 UTC](https://meta.discourse.org/t/view-count-difference-in-category-vs-data-explorer/314227 "2024-11-09T09:16:42Z")

</div>

我正在使用数据浏览器来计算 topic\_views 表中某个类别的浏览量，但当我将该类别的浏览量与主题的浏览量（topic.views）进行比较时，topic\_views 表中的浏览量要少得多。您知道这是为什么吗？

---

## [Google Analytics 4 点击与转化事件追踪](https://meta.discourse.org/t/google-analytics-4-click-and-conversion-event-tracking/309221)

<div class="topic-metadata">

**Author:** [@xingu](https://meta.discourse.org/u/xingu)\
**回覆:** 2\
**Last updated:** [2024年十一月9日 08:38 UTC](https://meta.discourse.org/t/google-analytics-4-click-and-conversion-event-tracking/309221 "2024-11-09T08:38:27Z")

</div>

您好，关于使用 GA4 或 GTM 进行点击跟踪和转化事件跟踪，有什么建议吗？我们希望能够跟踪一些关键的点击事件并在 Google Analytics 中报告转化。谢谢！

---

## [如何在避免内容安全策略（XSS）的情况下添加分析和像素脚本](https://meta.discourse.org/t/how-to-add-analytics-and-pixel-scripts-avoiding-content-security-policy-xss/321022)

<div class="topic-metadata">

**Author:** [@illusionandcards](https://meta.discourse.org/u/illusionandcards)\
**回覆:** 2\
**Last updated:** [2024年九月7日 23:42 UTC](https://meta.discourse.org/t/how-to-add-analytics-and-pixel-scripts-avoiding-content-security-policy-xss/321022 "2024-09-07T23:42:36Z")

</div>

您好， 我尝试通过自定义组件和编辑默认主题的 HTML 来添加 Facebook Pixel 脚本和 Posthog 分析到我的网站。 由于内容安全策略（CSP），这些不起作用。我甚至尝试使用 sha256 对脚本进行哈希处理，但在“内容安全策略脚本源”中添加它时会收到此错误： 我还阅读了此主题：Mitigate XSS Attacks with Content Security Policy 我该如何避免对特定脚本的 C…

---

## [仪表板报告 - 无响应主题](https://meta.discourse.org/t/dashboard-report-topics-with-no-response/294002)

<div class="topic-metadata">

**Author:** [@SaraDev](https://meta.discourse.org/u/SaraDev)\
**回覆:** 8\
**Last updated:** [2024年九月5日 13:44 UTC](https://meta.discourse.org/t/dashboard-report-topics-with-no-response/294002 "2024-09-05T13:44:53Z")

</div>

这是“无回复主题”仪表板报告的 SQL 版本。 仪表板报告旨在计算在指定日期范围内创建但未收到其他用户任何回复的主题数量。此报告可按特定类别进行筛选，并可选择包含子类别。 -- \[params\] -- date :start\_date = 2024-01-01 -- date :end\_date = 2024-02-01 -- null int :category\_id -- boolean :include\_subcate…

---

## [将 Adobe Analytics 与 Discourse 集成](https://meta.discourse.org/t/integrating-adobe-analytics-with-discourse/315670)

<div class="topic-metadata">

**Author:** [@Jaskaran](https://meta.discourse.org/u/Jaskaran)\
**回覆:** 4\
**Last updated:** [2024年九月4日 16:58 UTC](https://meta.discourse.org/t/integrating-adobe-analytics-with-discourse/315670 "2024-09-04T16:58:10Z")

</div>

我想问一下，是否有任何插件可以添加 Adobe Google Analytics 进行报告？我想为我的自托管 Discourse 网站添加它。 Discourse 中的报告是如何工作的？

---

## [对Umami分析的支持](https://meta.discourse.org/t/support-for-umami-analytic/316181)

<div class="topic-metadata">

**Author:** [@Petr\_Mišák](https://meta.discourse.org/u/Petr_Mi%C5%A1%C3%A1k)\
**回覆:** 6\
**Last updated:** [2024年八月31日 07:53 UTC](https://meta.discourse.org/t/support-for-umami-analytic/316181 "2024-08-31T07:53:13Z")

</div>

Discourse 是否计划为 Umami Analytic 提供官方支持？ 我最近发现了它，对此感到很兴奋 :slight\_smile: Umami Analytics 网站链接 https://umami.is/

---

## [两个日期之间的DATEDIFF](https://meta.discourse.org/t/datediff-between-two-dates/323799)

<div class="topic-metadata">

**Author:** [@SStrong](https://meta.discourse.org/u/SStrong)\
**回覆:** 2\
**Last updated:** [2024年八月29日 12:31 UTC](https://meta.discourse.org/t/datediff-between-two-dates/323799 "2024-08-29T12:31:51Z")

</div>

我尝试按照下面的链接自行解决，但无法足够快地完成。 我只想计算主题创建日期和今天的日期之间的差值，以便能够说“这个主题已经存在 6 天了”。 这是我正在使用的两个字段： to\_char(date\_trunc(‘DAY’, t.created\_at)::date,‘DD/MM/YYYY’) AS “主题创建日期”， to\_char(date\_trunc(‘DAY’, now())::date,‘DD/MM/YYYY’) AS “今…

---

## [在数据浏览器查询中添加指向主题的直接链接](https://meta.discourse.org/t/adding-a-direct-link-to-a-topic-in-a-data-explorer-query/322914)

<div class="topic-metadata">

**Author:** [@SStrong](https://meta.discourse.org/u/SStrong)\
**回覆:** 9\
**Last updated:** [2024年八月28日 14:12 UTC](https://meta.discourse.org/t/adding-a-direct-link-to-a-topic-in-a-data-explorer-query/322914 "2024-08-28T14:12:10Z")

</div>

我们目前有一些自动数据探索脚本正在发送给高级利益相关者。 目前出现了一个新主题，上面写着“这个没有回复，需要有人处理。” 他们希望有一个直接链接到需要回复的主题。 当前的数据探索器包含主题标题和 ID，因此您可以搜索它，但我想知道是否有办法以这种方式添加主题的直接链接？ 谢谢。

---

## [发帖徽章](https://meta.discourse.org/t/badges-for-posting/276725)

<div class="topic-metadata">

**Author:** [@PJH](https://meta.discourse.org/u/PJH)\
**回覆:** 4\
**Last updated:** [2024年八月27日 00:41 UTC](https://meta.discourse.org/t/badges-for-posting/276725 "2024-08-27T00:41:41Z")

</div>

Since there deliberately isn’t the concept of achievements for posting, I’ve managed to implement it on ours, since we had it on our old forums and some were complain about the lack thereof. Generic version: SELECT use…

---

## [通过 Data Explorer 获取 Pull Event RSVP 列表](https://meta.discourse.org/t/pull-event-rsvp-list-via-data-explorer/323119)

<div class="topic-metadata">

**Author:** [@putty](https://meta.discourse.org/u/putty)\
**回覆:** 3\
**Last updated:** [2024年八月23日 19:12 UTC](https://meta.discourse.org/t/pull-event-rsvp-list-via-data-explorer/323119 "2024-08-23T19:12:20Z")

</div>

我们正试图通过查找与类似现有内容互动过的用户来增加活动的参与度。在 AI 机器人的帮助下，我们能够制定出以下查询。 -- \[params\] -- text :keyword -- int :min\_engagements -- null string :tag\_name WITH keyword\_posts AS ( SELECT p.id AS post\_id FROM posts …

---

## [用户行为 - 行为类型](https://meta.discourse.org/t/user-actions-action-types/322267)

<div class="topic-metadata">

**Author:** [@SStrong](https://meta.discourse.org/u/SStrong)\
**回覆:** 5\
**Last updated:** [2024年八月22日 07:28 UTC](https://meta.discourse.org/t/user-actions-action-types/322267 "2024-08-22T07:28:05Z")

</div>

是否有方便的方法可以知道操作类型编号的含义？ 我知道可以通过将鼠标悬停在表格上来了解，但能够以这种方式报告而不是必须回溯将是很好的。 谢谢。

---

## [如何将多个跟踪代码传递给 gtag.js（通常用于 Google Analytics）？](https://meta.discourse.org/t/how-to-pass-multiple-tracking-codes-to-gtag-js-usually-used-with-google-analytics/319871)

<div class="topic-metadata">

**Author:** [@wlandgraf](https://meta.discourse.org/u/wlandgraf)\
**回覆:** 0\
**Last updated:** [2024年八月2日 17:56 UTC](https://meta.discourse.org/t/how-to-pass-multiple-tracking-codes-to-gtag-js-usually-used-with-google-analytics/319871 "2024-08-02T17:56:44Z")

</div>

我想知道如何为 Discourse 站点添加多个跟踪代码？例如，我可能有一个分析跟踪代码和一个 Google Ads 跟踪代码。 如果您查看其他工具（如 Gatsby）的文档（此处参考），它们允许这样做： trackingIds: \[ "GA-TRACKING\_ID", // Google Analytics / GA "AW-CONVERSION\_ID", // Google…

---

## [Google Analytics 跟踪。我要在哪个位置添加到 Discourse 中？](https://meta.discourse.org/t/google-analytics-tracking-where-do-i-add-it-in-discourse/319046)

<div class="topic-metadata">

**Author:** [@oga](https://meta.discourse.org/u/oga)\
**回覆:** 2\
**Last updated:** [2024年七月29日 16:20 UTC](https://meta.discourse.org/t/google-analytics-tracking-where-do-i-add-it-in-discourse/319046 "2024-07-29T16:20:17Z")

</div>

您好。也许是我遗漏了什么，但我似乎找不到在哪里可以向 Discourse 添加 Google Analytics 跟踪。 我搜索过了，但找到的都是如何添加 Google 标签。我们不使用标签，我们只想使用 Analytics。有人知道在哪里可以添加它吗？ 谢谢。

---

## [用户统计信息加电子邮件](https://meta.discourse.org/t/user-stats-plus-email/317793)

<div class="topic-metadata">

**Author:** [@Heather13](https://meta.discourse.org/u/Heather13)\
**回覆:** 3\
**Last updated:** [2024年七月24日 10:55 UTC](https://meta.discourse.org/t/user-stats-plus-email/317793 "2024-07-24T10:55:21Z")

</div>

如何在此基础上添加“阅读时长”、“帖子阅读数”和“用户访问次数”列？ 本质上，我想将以下查询与您在此处发布的查询结合起来，并添加“阅读时长”（如果可能）： select user\_id, count(1) as visits, sum(posts\_read) as posts\_read from user\_visits where posts\_read \> 0 and visited\_at \> CURRENT\_T…

---

## [用户过去7天按电子邮件域名的帖子](https://meta.discourse.org/t/user-posts-by-email-domain-over-last-7-days/304560)

<div class="topic-metadata">

**Author:** [@MarkDoerr](https://meta.discourse.org/u/MarkDoerr)\
**回覆:** 3\
**Last updated:** [2024年四月19日 03:51 UTC](https://meta.discourse.org/t/user-posts-by-email-domain-over-last-7-days/304560 "2024-04-19T03:51:08Z")

</div>

查询过去7天按电子邮件域计算帖子数量，排除自动组（机器人、系统） SELECT split\_part(ue.email, '@', 2) AS email\_domain, -- 提取电子邮件的域部分 COUNT(p.id) AS post\_count FROM posts p JOIN users u ON p.user\_id = u.id JOIN user\_emails ue ON u.id = ue.user…

---

## [数据浏览器查询：将用户从一个组转移到另一个组](https://meta.discourse.org/t/data-explorer-query-for-transferring-user-from-one-group-to-another-group/317787)

<div class="topic-metadata">

**Author:** [@Jaskaran](https://meta.discourse.org/u/Jaskaran)\
**回覆:** 4\
**Last updated:** [2024年七月23日 09:39 UTC](https://meta.discourse.org/t/data-explorer-query-for-transferring-user-from-one-group-to-another-group/317787 "2024-07-23T09:39:48Z")

</div>

大家好， 您是否知道可以帮助执行以下操作的数据浏览器查询： 从“Employees”组中删除使用电子邮件地址的用户列表 将同一用户添加到“Employee Emeritus”组 将用户配置文件权限“Silenced”设置为“Yes” 感谢您的所有帮助。

---

## [去除管理员/版主搜索的热门搜索词？](https://meta.discourse.org/t/trending-search-terms-with-admin-moderator-searches-removed/316002)

<div class="topic-metadata">

**Author:** [@Kieran\_Berryman](https://meta.discourse.org/u/Kieran_Berryman)\
**回覆:** 2\
**Last updated:** [2024年七月15日 16:04 UTC](https://meta.discourse.org/t/trending-search-terms-with-admin-moderator-searches-removed/316002 "2024-07-15T16:04:32Z")

</div>

我正处于开始整理网站每周数据报告的早期阶段。目前我正在查看一些我想要积极跟踪的指标。我对热门搜索词报告感兴趣，但当我查看其历史记录时，看起来数据可能会受到管理员/版主搜索的严重影响。 该论坛部分充当了我公司制造产品的支持知识库，因此，我们在回复工单时经常搜索相关的故障排除帖子。有没有一种简单的方法可以从该报告中删除管理员/版主搜索？

---

## [有办法计算主题的CTR（点击率）吗？](https://meta.discourse.org/t/any-way-to-calculate-ctr-for-topics-click-through-rate/316228)

<div class="topic-metadata">

**Author:** [@jrgong](https://meta.discourse.org/u/jrgong)\
**回覆:** 1\
**Last updated:** [2024年七月15日 11:48 UTC](https://meta.discourse.org/t/any-way-to-calculate-ctr-for-topics-click-through-rate/316228 "2024-07-15T11:48:14Z")

</div>

各位， 对于我们的广告客户，我们希望计算主题的点击率 (CTR)，以衡量主题标题等的性能。 在 Discourse 核心中，“主题列表”中“主题标题”的展示次数/浏览量是否实际被计算在内？ 那样的话，我们可能会尝试通过数据探索器 (data explorer) 来获取数据。

---

## [匿名用户到底是什么](https://meta.discourse.org/t/what-are-anonymous-users-exactly/315898)

<div class="topic-metadata">

**Author:** [@Andro](https://meta.discourse.org/u/Andro)\
**回覆:** 1\
**Last updated:** [2024年七月11日 10:21 UTC](https://meta.discourse.org/t/what-are-anonymous-users-exactly/315898 "2024-07-11T10:21:32Z")

</div>

我的网站仪表板统计数据显示有很多匿名用户。但匿名用户究竟是什么？鉴于该网站具有非常专业化的音乐学性质，我不认为这些人是随意浏览而没有账户的人类——他们太多了。我对统计数据单独显示爬虫感到困惑。 任何有助于理解统计数据这一方面的信息都将不胜感激。

---

## [用户列表导出中的差异：总用户数的减少](https://meta.discourse.org/t/discrepancy-in-user-list-export-decrease-in-total-users/313385)

<div class="topic-metadata">

**Author:** [@NebulaWhisper](https://meta.discourse.org/u/NebulaWhisper)\
**回覆:** 2\
**Last updated:** [2024年七月1日 14:41 UTC](https://meta.discourse.org/t/discrepancy-in-user-list-export-decrease-in-total-users/313385 "2024-07-01T14:41:09Z")

</div>

大家好， 我遇到了一个关于用户列表导出的的问题，希望有人能帮忙澄清。在四月，我们的用户列表显示共有28,798个用户。然而，当我导出五月份的用户列表的CSV文件时……

---

## [允许在报告中点击主题链接](https://meta.discourse.org/t/allow-topic-links-in-reports-to-be-clickable/314438)

<div class="topic-metadata">

**Author:** [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)\
**回覆:** 2\
**Last updated:** [2024年七月1日 12:56 UTC](https://meta.discourse.org/t/allow-topic-links-in-reports-to-be-clickable/314438 "2024-07-01T12:56:59Z")

</div>

在我运行的报告中，我发现它显示了所有主题ID以及主题链接，但链接并不能点击；它只是普通文本。有办法让它变成可点击的吗？

---

## [非管理员角色用于查看报告](https://meta.discourse.org/t/non-admin-role-for-viewing-reports/314168)

<div class="topic-metadata">

**Author:** [@msohm](https://meta.discourse.org/u/msohm)\
**回覆:** 3\
**Last updated:** [2024年六月28日 13:51 UTC](https://meta.discourse.org/t/non-admin-role-for-viewing-reports/314168 "2024-06-28T13:51:37Z")

</div>

您好， 根据我所读到的和测试的内容，用户必须是完全管理员才能查看报告。这是正确的吗？有没有办法授予非管理员用户查看报告的权限？ 我们希望让市场部的一些人能够读取和运行报告，但又不让他们成为完全管理员。 Mark

---

## [首次回复时间 - 查找特定主题](https://meta.discourse.org/t/time-to-1st-response-find-specific-topic/313947)

<div class="topic-metadata">

**Author:** [@per\_coh](https://meta.discourse.org/u/per_coh)\
**回覆:** 6\
**Last updated:** [2024年六月27日 17:16 UTC](https://meta.discourse.org/t/time-to-1st-response-find-specific-topic/313947 "2024-06-27T17:16:06Z")

</div>

大家好。我正在查看“首次响应时间”报告，里面提到有一个主题响应时间非常迟，但报告只显示数字。 我如何找到那个具体的主题？

---

## [如何应对数据探索器的1万条结果限制？](https://meta.discourse.org/t/working-around-the-10-000-result-limit-of-data-explorer/315395)

<div class="topic-metadata">

**Author:** [@vladyslav](https://meta.discourse.org/u/vladyslav)\
**回覆:** 2\
**Last updated:** [2024年六月26日 17:49 UTC](https://meta.discourse.org/t/working-around-the-10-000-result-limit-of-data-explorer/315395 "2024-06-26T17:49:44Z")

</div>

有没有办法绕过这个限制？我想下载所有未列出的主题，而这些主题有很多。远超 10k

---

## [导出用户数据的技巧](https://meta.discourse.org/t/tips-for-exporting-user-data/313711)

<div class="topic-metadata">

**Author:** [@SaraDev](https://meta.discourse.org/u/SaraDev)\
**回覆:** 0\
**Last updated:** [2024年六月26日 00:04 UTC](https://meta.discourse.org/t/tips-for-exporting-user-data/313711 "2024-06-26T00:04:06Z")

</div>

当用户需要超出偏好页面提供的基本用户数据导出以外的定制或详细数据导出时，管理员可以使用Data Explorer插件执行用户数据导出。 此过程…

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

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