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