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?

3 „Gefällt mir“

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.

1 „Gefällt mir“

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

4 „Gefällt mir“

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:

2 „Gefällt mir“

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.

2 „Gefällt mir“

Sounds about right to me!

2 „Gefällt mir“

@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:

1 „Gefällt mir“

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.

4 „Gefällt mir“

Where can I find the time Discourse starts counting it’s (our) day for user visits - or more accurately, where can I find the time the user visit routine runs. We have one user who has been trying to figure it out - to no avail in a couple of months. :slightly_smiling_face: He has apparently missed 2 days in the past quarter.

It’s usually 00:00 UTC which is server time.

2 „Gefällt mir“

Hallo,

Nachdem wir diesen Thread gelesen haben, sind wir immer noch etwas verwirrt, was „Benutzerbesuche“ bedeutet? Sind das eindeutige Benutzer für den von Ihnen ausgewählten Zeitraum?

Zum Beispiel:

Hier steht, dass wir im Februar 286 Benutzerbesuche hatten, aber wir haben nur 97 Benutzer in unserem Forum.

Können Sie das bitte klären?

Vielen Dank,
Cat

2 „Gefällt mir“

Hallo Cat,

Als Antwort auf deine Frage hier:

Der Benutzerbesuchsbericht zeigt die Gesamtzahl der Benutzerbesuche im Forum für den ausgewählten Zeitraum (heute, gestern, letzte 7 Tage, Monat usw.).

Genauer gesagt wird ein Benutzerbesuch jedes Mal gezählt, wenn ein eindeutiger, eingeloggter Benutzer die Website besucht, bis zu einmal pro Tag.

Wenn ein Benutzer beispielsweise eine Woche lang jeden Tag eine Website besucht, zählt Discourse dies als 7 Benutzerbesuche. Deshalb ist es möglich, dass eine Website im Monat mehr Benutzerbesuche hat als insgesamt Benutzer.

Wenn du interessiert bist, kannst du dir hier auch den Ruby-Code für diesen Bericht ansehen: discourse/app/models/concerns/reports/visits.rb

Ich hoffe, das hilft! :slightly_smiling_face:

3 „Gefällt mir“