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 Sto utilizzando il plugin data explorer per creare una tabella con le statistiche giornaliere. Per user_visits, è possibile che un utente abbia più di una visita in un giorno? O tutte le visite di un giorno vengono raggruppate nella stessa riga? Sto vedendo un massimo di 1 visita giornaliera e mi chiedo se ci sia un errore nella mia query o se esista effettivamente un limite in tal senso.

Grazie per tutto quello che fai :slight_smile:

Un utente può avere solo una voce al giorno nella tabella user_visits. La tabella ha un indice univoco su user_id,visited_at. Il campo posts_read delle visite del giorno verrà aggiornato mentre l’utente legge altri post.

Dove posso trovare l’ora in cui Discourse inizia a contare il giorno (il nostro) per le visite degli utenti, o più precisamente, dove posso trovare l’orario in cui viene eseguita la routine di visita degli utenti? C’è un utente che sta cercando di scoprirlo da un paio di mesi, senza successo. :slightly_smiling_face: Sembra che abbia saltato due giorni nel trimestre scorso.

Di solito è 00:00 UTC, che è l’orario del server.

Ciao,

Dopo aver letto questa discussione, siamo ancora un po’ confusi su cosa significhi “visite utente”? Si tratta di utenti unici per l’intervallo di tempo selezionato?

Ad esempio,

Qui dice che abbiamo avuto 286 visite utente a febbraio, ma abbiamo solo 97 utenti nel nostro forum.

Puoi per favore chiarire?

Grazie,
Cat

Ciao Cat,

Per rispondere alla tua domanda qui:

Il Report Visite Utenti mostra il numero totale di Visite Utenti nel forum per il periodo selezionato (oggi, ieri, ultimi 7 giorni, mese, ecc.).

Nello specifico, una Visita Utente viene conteggiata ogni volta che un utente unico registrato visita il sito, fino a una volta al giorno.

Ad esempio, se un utente visitasse un sito ogni giorno durante una settimana, Discourse lo conterebbe come 7 visite utente. Questo è il motivo per cui è possibile avere più visite utente in un mese rispetto al numero totale di utenti del tuo sito.

Se sei interessato, puoi anche visualizzare il Codice Ruby per questo report qui: discourse/app/models/concerns/reports/visits.rb

Spero che questo aiuti! :slightly_smiling_face: