Hope you are doing well.
Can I get the DAU and MAU data separately? I can only get the DAU/MAU ratio now.
Another question, can I customise the report type?
Could you send me a document that can introduce the data types to me?
Hope you are doing well.
Can I get the DAU and MAU data separately? I can only get the DAU/MAU ratio now.
Another question, can I customise the report type?
Could you send me a document that can introduce the data types to me?
The weekly and monthly active user numbers are available on the /about page of your forum.
https://meta.discourse.org/about
| Last 7 | Last 30 | All Time | |
|---|---|---|---|
| Active Users | 1.8k | 3.6k | — |
是否有办法追溯性地提取这些统计数据?
我想获取过去 12 个月的月活跃用户总数,以查看一年中每个月的活跃用户数量趋势。
@michebs 可能会为 Data Explorer 魔法般地解决一些问题。
那将太棒了
这周我收到了很多关于“每月有多少论坛用户活跃”之类的问题,一直在寻找获取这些数据的方法。
编辑:不过仔细想想,这两种“活跃”的定义都是基于用户登录网站吗?还是需要检查登录的独立用户,而不是总登录次数? ![]()
如果月活跃用户(MAU)仅仅是登录访问网站的用户数量,我想这可以从现有的用户访问报告中提取(累加月度总数)。
是的,您可以使用用户访问报告来计算 MAU。
下面的查询详细说明了 DAU、MAU 和百分比。希望对您有所帮助。
--[params]
-- date :start_date = 2021-01-01
-- date :end_date = 2022-01-01
WITH dau AS (
SELECT date_trunc('day', user_visits.visited_at)::DATE AS date,
count(distinct user_visits.user_id) AS dau
FROM user_visits
WHERE user_visits.visited_at::DATE BETWEEN :start_date AND :end_date
GROUP BY date_trunc('day', user_visits.visited_at)::DATE
ORDER BY date_trunc('day', user_visits.visited_at)::DATE
),
data AS (SELECT
date,
dau,
(SELECT count(distinct user_visits.user_id)
FROM user_visits
WHERE user_visits.visited_at::DATE BETWEEN dau.date - 29 AND dau.date
) AS mau
FROM dau)
SELECT
date "day",
dau,
mau,
ROUND((dau/mau::numeric)*100,2)||'%' AS Percent
FROM DATA
| day | dau | mau | percent |
|---|---|---|---|
| 2021-01-01 | 300 | 2500 | 12.00% |
| 2021-01-02 | 350 | 3000 | 11.66% |
| 2021-01-03 | 400 | 3500 | 11.42% |
谢谢 @michebs - 这太棒了 ![]()
这是否已成为产品的一部分,还是仍然需要运行查询?(我们有一个托管计划,我什至不确定在哪里可以提取这些数字)
我认为这还没有添加到库存报告中,但您可以将其复制到数据浏览器中的新查询中,它应该可以正常工作。
![]()
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.