What is "user visits" on the admin dashboard?

I am trying to understand how many people are logging into my discourse every day, and tracking that from day to day. Is that the “user visits” stat, or does that include multiple visits by the same user?

Is there a way to see who precisely has logged in on a given day?

The closest I know of is by going to Users → Active (currently not filterable by date)

Less that what I think you’re asking for, but depending on how many visitors you get and how often you check it might be of some help.

The /about page has the number of users who were seen in the last week+month.

That’s awesome - thanks! I had actually turned that page off for reasons that I will post in a new topic.

Does “user visits” only include logged in users, or does it include anonymous users as well?

Nope only registered, logged in users are counted there.

If “user visit” is only logged in users, is there a metric that tracks visits from everyone?

Yes, that is called Google Analytics :wink:

Or Mixpanel for analytics :).

Got it, “Total visits” metric is not in the /admin dashboard.

What does “User Visits” mean exactly?
If I go to the Discourse site, browse a bit, close the tab and come back an hour later in a new browser tab/window, while I am still the same person, same browser, will this count as 2 user visits or just 1?
What if I do the same, but my second visit is from a different device with the same user account?
What about users who are not logged in and only read? Do they count as user visits too?

BTW: The post below is not an answer, it lacks a precise definition of what the user visits are.

No. It means logged in users. You could be on 50 different devices and you are the same logged in user.

Not logged in users come through as anonymous users.

I think I am a little confused on how “User Visits” varies from “Logged In” pageviews.

My current understanding after reading a few different threads is:

User visits are unique logged in users that have been in the forum per the time period (today, yesterday, last 7 days, etc).
Logged In Pageviews are every pageview for those same logged in users.

So if a user was in the forum and viewed 10 different pages, their user visit would be 1 and logged in pageviews would be 10.

Please correct me if I am wrong.

Sounds about right to me!

@codinghorror I’m using the data explorer plugin to create a daily stats table. For user_visits, is it possible for a user to have more than one visit in a day? Or do all visits in a day get chunked into the same row? I’m seeing 1 daily visit as the max and I’m wondering if there’s an error in my query or if there’s actually a limit on this.

Thanks for everything you do :slight_smile:

A user can only have one entry per day in the user_visits table. The table has a unique index on user_id,visited_at. The posts_read field of the day’s visits will get updated as the user reads more posts.

시간이 Discourse에서 사용자 방문을 위한 하루를 카운트하기 시작하는 위치를 어디서 찾을 수 있나요? — 또는 더 정확히 말하면, 사용자 방문 루틴이 실행되는 시간을 어디서 확인할 수 있나요. 한 사용자가 몇 달 동안 알아내려고 노력했지만 실패했습니다. :slightly_smiling_face: 그는 지난 분기에 2일을 놓친 것으로 보입니다.

보통 서버 시간인 UTC 00:00입니다.

안녕하세요,

해당 스레드를 읽어 보았지만 "user visits(사용자 방문)"가 정확히 무엇을 의미하는지 여전히 조금 혼란스럽습니다. 선택한 기간 동안의 고유 사용자 수를 의미하는 것인가요?

예를 들어,

여기서 2월에 사용자 방문이 286건이라고 표시되어 있지만, 우리 포럼에는 총 97명의 사용자만 있습니다.

설명해 주실 수 있을까요?

감사합니다.
Cat

Cat님, 안녕하세요.

질문에 대한 답변을 드리겠습니다:

User Visits 리포트는 선택된 기간(오늘, 어제, 지난 7일, 월 등) 동안 포럼의 총 사용자 방문 횟수를 보여줍니다.

구체적으로, 사용자 방문(User Visit)은 로그인된 고유한 사용자가 사이트를 방문할 때마다 하루에 최대 1회씩 집계됩니다.

예를 들어, 사용자가 한 주 동안 매일 사이트를 방문했다면, Discourse는 이를 7회의 사용자 방문으로 계산합니다. 이것이 한 달 동안의 사용자 방문 수가 사이트의 총 사용자 수보다 많을 수 있는 이유입니다.

관심 있으시다면, 이 리포트의 Ruby 코드도 여기서 확인하실 수 있습니다: discourse/app/models/concerns/reports/visits.rb

도움이 되셨기를 바랍니다! :slightly_smiling_face: