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 Estoy usando el plugin de explorador de datos para crear una tabla de estadísticas diarias. Para user_visits, ¿es posible que un usuario tenga más de una visita en un día? ¿O todas las visitas de un día se agrupan en la misma fila? Estoy viendo 1 visita diaria como máximo y me pregunto si hay un error en mi consulta o si realmente existe un límite en esto.

Gracias por todo lo que haces :slight_smile:

Un usuario solo puede tener una entrada por día en la tabla user_visits. La tabla tiene un índice único en user_id, visited_at. El campo posts_read de las visitas del día se actualizará a medida que el usuario lea más publicaciones.

¿Dónde puedo encontrar la hora en la que Discourse comienza a contar su (nuestro) día para las visitas de los usuarios? O, más precisamente, ¿dónde puedo encontrar la hora en la que se ejecuta la rutina de visitas de los usuarios? Tenemos un usuario que ha estado intentando averiguarlo sin éxito durante varios meses. :slightly_smiling_face: Aparentemente, se le han pasado 2 días en el último trimestre.

Por lo general es 00:00 UTC, que es la hora del servidor.

Hola,

Después de leer este hilo, todavía estamos un poco confundidos sobre qué significan las “visitas de usuarios”. ¿Se refiere a usuarios únicos durante el período de tiempo que seleccionas?

Por ejemplo,

Aquí dice que tuvimos 286 visitas de usuarios en febrero, pero solo tenemos 97 usuarios en nuestro foro.

¿Podrías aclararlo, por favor?

Gracias,
Cat

Hola Cat,

Para responder a tu pregunta aquí:

El Informe de visitas de usuarios muestra el número total de visitas de usuarios en el foro para el período de tiempo seleccionado (hoy, ayer, últimos 7 días, mes, etc.).

Específicamente, se cuenta una Visita de Usuario cada vez que un usuario único registrado visita el sitio, hasta una vez al día.

Por ejemplo, si un usuario visitara un sitio todos los días durante una semana, Discourse lo contaría como 7 visitas de usuario. Es por eso que es posible tener más visitas de usuario en un mes que usuarios totales en tu sitio.

Si estás interesado, también puedes ver el código Ruby para este informe aquí: discourse/app/models/concerns/reports/visits.rb

¡Espero que esto ayude! :slightly_smiling_face: