# How to measure active users?

**URL:** https://meta.discourse.org/t/how-to-measure-active-users/74574
**Category:** Data & reporting
**Tags:** sql-query
**Created:** [11월 22, 2017, 9:39오전 UTC](https://meta.discourse.org/t/how-to-measure-active-users/74574 "2017-11-22T09:39:55Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![sianwhite](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@sianwhite](https://meta.discourse.org/u/sianwhite)
#### Post date: [11월 22, 2017, 9:39오전 UTC](https://meta.discourse.org/t/how-to-measure-active-users/74574/1 "2017-11-22T09:39:55Z")

</div>

How does everyone measure active/super active users? ie people who have logged in or commented in the past month, for example.

The dashboard tells me the number of visits and comments etc, but I don’t know how to chunk this down easily into actual users. We’ve got 1400 members on our community, but I’d like to know how many of those are engaging with it month on month.

Thanks,  
Sian

---

<div class="post-metadata">

### Author: ![JagWaugh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagwaugh/32/69335_2.png) [@JagWaugh](https://meta.discourse.org/u/JagWaugh)
#### Post date: [11월 22, 2017, 10:47오전 UTC](https://meta.discourse.org/t/how-to-measure-active-users/74574/2 "2017-11-22T10:47:04Z")

</div>

The [data explorer](https://meta.discourse.org/t/32566?silent=true) plugin will let you look at the data in a more granular fashion than the basic information which admin\>dashboard shows.

See, for example, [Active users in the last 30 days](https://meta.discourse.org/t/active-users-in-the-last-30-days/275140)

---

<div class="post-metadata">

### Author: ![sianwhite](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@sianwhite](https://meta.discourse.org/u/sianwhite)
#### Post date: [11월 22, 2017, 11:14오전 UTC](https://meta.discourse.org/t/how-to-measure-active-users/74574/3 "2017-11-22T11:14:56Z")

</div>

Oo sounds interesting, how do I go about setting that up? I’m not a developer so have no idea where to begin.

---

<div class="post-metadata">

### Author: ![JagWaugh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagwaugh/32/69335_2.png) [@JagWaugh](https://meta.discourse.org/u/JagWaugh)
#### Post date: [11월 22, 2017, 11:21오전 UTC](https://meta.discourse.org/t/how-to-measure-active-users/74574/4 "2017-11-22T11:21:10Z")

</div>

See “Installation” at the bottom of: [Discourse Data Explorer](https://meta.discourse.org/t/data-explorer-plugin/32566)

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [11월 22, 2017, 5:03오후 UTC](https://meta.discourse.org/t/how-to-measure-active-users/74574/5 "2017-11-22T17:03:01Z")

</div>

These queries will help:

### Top 50 posters

Returns the top 50 posters for a given monthly period. Results are ordered by post\_count. It accepts a ‘months\_ago’ parameter, defaults to 1 to give results for the most recently completed calendar month.

```sql
-- [params]
-- int :months_ago = 1

WITH query_period AS (
SELECT
date_trunc('month', CURRENT_DATE) - INTERVAL ':months_ago months' as period_start,
date_trunc('month', CURRENT_DATE) - INTERVAL ':months_ago months' + INTERVAL '1 month' - INTERVAL '1 second' as period_end
),

user_posts_in_period AS (
SELECT
p.user_id
FROM posts p
INNER JOIN query_period qp
ON p.created_at >= qp.period_start
AND p.created_at <= qp.period_end
WHERE p.user_id > 0
)

SELECT
up.user_id,
count(1) as post_count
FROM user_posts_in_period up
GROUP BY up.user_id
ORDER BY post_count DESC
LIMIT 50

```

### Top 50 likers

Returns the top 50 likers for a given monthly period. Results are ordered by like\_count. It accepts a ‘months\_ago’ parameter, defaults to 1 to give results for the most recently completed calendar month.

```sql
-- [params]
-- int :months_ago = 1

WITH query_period AS (
SELECT
date_trunc('month', CURRENT_DATE) - INTERVAL ':months_ago months' as period_start,
date_trunc('month', CURRENT_DATE) - INTERVAL ':months_ago months' + INTERVAL '1 month' - INTERVAL '1 second' as period_end
)

SELECT
ua.user_id,
count(1) AS like_count
FROM user_actions ua
INNER JOIN query_period qp
ON ua.created_at >= qp.period_start
AND ua.created_at <= qp.period_end
WHERE ua.action_type = 1
GROUP BY ua.user_id
ORDER BY like_count DESC
LIMIT 50
```

---

<div class="post-metadata">

### Author: ![robmc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robmc/32/125900_2.png) [@robmc](https://meta.discourse.org/u/robmc)
#### Post date: [11월 23, 2017, 10:05오전 UTC](https://meta.discourse.org/t/how-to-measure-active-users/74574/8 "2017-11-23T10:05:13Z")

</div>

you could also get in touch with @DiscourseMetrics.com and @Bas (about Community Analytics)

their tools can give you loads of extra stats so you don’t have to do the work … I’m looking at such tools at the moment myself

Up till now I’ve been doing this just in excel - you can export your user data and run a few queries to monitor this. I gave a value to each post read, to posts (replies) and to new threads, then categorised them accordingly

So far it shows 20% are ‘readers’, 25% are ‘participants’ and 15% are ‘creators’

I’ve found that most analysis tools are under-valuing the role of readers because of a focus just on the activity of posting. There is a big difference between inactive members and active readers!

Good luck!

---

<div class="post-metadata">

### Author: ![Bas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bas/32/294929_2.png) [@Bas](https://meta.discourse.org/u/Bas)
#### Post date: [11월 23, 2017, 12:24오후 UTC](https://meta.discourse.org/t/how-to-measure-active-users/74574/9 "2017-11-23T12:24:54Z")

</div>

> [@robmc](#):
>
> I’ve found that most analysis tools are under-valuing the role of readers because of a focus just on the activity of posting. There is a big difference between inactive members and active readers!

I think you are correct in saying this.

There are ways (e.g. separating logged in/out users, measuring read time, collating paged threads etc.) to guide Google Analytics to do quite a bit of this for you; but it takes some proper GA-fu to accomplish.

---

<div class="post-metadata">

### Author: ![SidV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sidv/32/119460_2.png) [@SidV](https://meta.discourse.org/u/SidV)
#### Post date: [11월 23, 2017, 3:12오후 UTC](https://meta.discourse.org/t/how-to-measure-active-users/74574/10 "2017-11-23T15:12:35Z")

</div>

Great queries Sarah! Thanks for share.  
I updated _[the query list](https://github.com/SidVal/discourse-data-explorer/blob/queries/querys.md)_, if you have more to add, please just send PR 🙏

Thanks again !

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [11월 23, 2017, 8:36오후 UTC](https://meta.discourse.org/t/how-to-measure-active-users/74574/11 "2017-11-23T20:36:05Z")

</div>

> [@SidV](#):
>
> Great queries Sarah! Thanks for share.

I can’t take credit – @simon wrote them.

---

<div class="post-metadata">

### Author: ![fbpbdmin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fbpbdmin/32/300893_2.png) [@fbpbdmin](https://meta.discourse.org/u/fbpbdmin)
#### Post date: [1월 4, 2024, 11:29오후 UTC](https://meta.discourse.org/t/how-to-measure-active-users/74574/12 "2024-01-04T23:29:16Z")

</div>

고유 IP를 기준으로 일별 횟수를 가져오는 방법은 무엇인가요?  
대시보드 \> 사용자 방문은 IP를 기준으로 집계되는 것인가요? (로그인한 사용자 및 방문자 포함?)  
감사합니다…

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [1월 5, 2024, 12:02오전 UTC](https://meta.discourse.org/t/how-to-measure-active-users/74574/13 "2024-01-05T00:02:10Z")

</div>

> [@fbpbdmin](#):
>
> 대시보드의 사용자 방문(User Visits)은 IP 기반인가요?

그렇지 않은 것 같습니다. 로그인된 사용자를 기준으로 합니다.

> [@SaraDev](#):
>
> ## 사용자 방문
> 
> 선택된 기간(오늘, 어제, 지난 7일 등) 동안 포럼의 총 사용자 방문 수입니다.
> 
> 사용자 방문은 고유한 로그인된 사용자가 사이트를 방문할 때마다 하루에 한 번씩 계산됩니다. 예를 들어, 사용자가 한 주 동안 매일 사이트를 방문했다면 Discourse는 이를 7회의 사용자 방문으로 계산합니다.
> 
> Ruby 코드: [discourse/app/models/concerns/reports/visits.rb](https://github.com/discourse/discourse/blob/main/app/models/concerns/reports/visits.rb)

[What is "user visits" on the admin dashboard?](https://meta.discourse.org/t/what-is-user-visits-on-the-admin-dashboard/25092) 도 참고해 보실 수 있습니다.

[이 글](https://meta.discourse.org/t/number-of-anonymous-users-per-week/188316/2?u=moin)이 찾으시는 내용과 유사해 보입니다. 모든 사용자가 아닌 익명 사용자만 원하시므로, 사용자가 익명이라는 조건을 제거해야 합니다.

---

<div class="post-metadata">

### Author: ![Isambard](https://avatars.discourse-cdn.com/v4/letter/i/858c86/32.png) [@Isambard](https://meta.discourse.org/u/Isambard)
#### Post date: [10월 6, 2024, 4:02오후 UTC](https://meta.discourse.org/t/how-to-measure-active-users/74574/14 "2024-10-06T16:02:21Z")

</div>

사용자 목록에는 다음 통계 항목이 있습니다:

사용자 이름, 마지막 이메일 발송일, 확인 여부, 확인한 주제 수, 읽은 게시글 수, 읽은 시간, 생성일

다음 항목을 추가할 수 있을까요?

생성한 주제 수, 생성한 게시글 수, 준 좋아요 수, 받은 좋아요 수.

이 항목들은 가장 활발하게 기여한 사용자를 측정하는 데 유용합니다.

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [10월 6, 2024, 4:05오후 UTC](https://meta.discourse.org/t/how-to-measure-active-users/74574/15 "2024-10-06T16:05:09Z")

</div>

> [@Isambard](#):
>
> 생성된 토픽 수, 생성된 게시물 수, 준 좋아요 수, 받은 좋아요 수.

이 모든 것은 [Discourse Meta](https://meta.discourse.org/u) 에 포함되어 있습니다.

---

<div class="post-metadata">

### Author: ![Isambard](https://avatars.discourse-cdn.com/v4/letter/i/858c86/32.png) [@Isambard](https://meta.discourse.org/u/Isambard)
#### Post date: [10월 6, 2024, 10:50오후 UTC](https://meta.discourse.org/t/how-to-measure-active-users/74574/16 "2024-10-06T22:50:34Z")

</div>

감사합니다. 사용자 디렉터리에는 해당 정보가 있는 것 같지만, 관리자 사용자 목록에는 없습니다.

[https://meta.discourse.org/admin/users/list/active](https://meta.discourse.org/admin/users/list/active)

관리자 화면에서도 동일한 필드가 표시될 수 있는지, 아니면 설정에서 비활성화한 사용자 디렉터리도 관리자가 볼 수 있어서 이러한 추가 세부 정보를 확인할 수 있는지에 대해 궁금합니다.

---

<div class="post-metadata">

### Author: ![Mike\_Taku](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mike_taku/32/458580_2.png) [@Mike\_Taku](https://meta.discourse.org/u/Mike_Taku)
#### Post date: [11월 9, 2024, 8:51오전 UTC](https://meta.discourse.org/t/how-to-measure-active-users/74574/17 "2024-11-09T08:51:02Z")

</div>

> [@robmc](#):
>
> @DiscourseMetrics.com과 @Bas(커뮤니티 분석 관련)에게도 연락을 취해볼 수 있습니다.
> 
> 이들의 도구를 사용하면 추가적인 통계 정보를 많이 얻을 수 있어 직접 데이터를 처리할 필요가 없습니다. 저도 현재 그러한 도구들을 검토하고 있습니다.
> 
> 지금까지는 엑셀로만 이 작업을 해왔습니다. 사용자 데이터를 내보낸 후 몇 가지 쿼리를 실행하여 모니터링할 수 있습니다. 각 게시물 읽기, 게시물(답글) 작성, 새 스레드 생성에 각각 값을 부여한 후 이에 따라 분류했습니다.
> 
> 현재까지의 결과에 따르면 20%가 ‘읽는 사람’, 25%가 ‘참여하는 사람’, 15%가 '생성하는 사람’인 것으로 나타났습니다.
> 
> 대부분의 분석 도구가 게시물 작성 활동에만 초점을 맞추고 있어 '읽는 사람’의 역할을 과소평가하고 있다고 생각합니다. 비활동 멤버와 능동적인 독자는 큰 차이가 있습니다!
> 
> 행운을 빕니다!

안녕하세요, 이 스레드를 방금 확인했습니다. 게시 활동 외에도 커뮤니티 참여도를 추적하는 데 도움이 되는 도구가 무엇인지, 특히 능동적인 독자를 측정하는 방법에 대해 알려주시면 감사하겠습니다.  
감사합니다.  
Mike Taku

---

<div class="post-metadata">

### Author: ![copymonopoly](https://avatars.discourse-cdn.com/v4/letter/c/4491bb/32.png) [@copymonopoly](https://meta.discourse.org/u/copymonopoly)
#### Post date: [3월 6, 2025, 1:23오후 UTC](https://meta.discourse.org/t/how-to-measure-active-users/74574/18 "2025-03-06T13:23:53Z")

</div>

이 포스터와 좋아요를 누른 사용자들에게 배지를 만들 수 있나요?
