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 أستخدم إضافة مستكشف البيانات لإنشاء جدول إحصائيات يومي. بالنسبة إلى user_visits، هل من الممكن أن يكون للمستخدم أكثر من زيارة في يوم واحد؟ أم أن جميع الزيارات في اليوم تُجمع في نفس الصف؟ ألاحظ أن الحد الأقصى للزيارة اليومية هو واحدة، وأتساءل عما إذا كان هناك خطأ في استعلامي أم أن هناك حدًا فعليًا لذلك.

شكرًا لك على كل ما تفعله :slight_smile:

لا يمكن للمستخدم أن يكون له سوى إدخال واحد في اليوم في جدول user_visits. يحتوي الجدول على فهرس فريد على user_id,visited_at. سيتم تحديث حقل posts_read لزيارات اليوم مع قراءة المستخدم لمزيد من المنشورات.

أين يمكنني العثور على الوقت الذي يبدأ فيه Discourse عدّه ليومنا (للمستخدمين) لزيارات المستخدمين - أو بالأدق، أين يمكنني العثور على الوقت الذي تُنفَّذ فيه روتين زيارة المستخدم. لدينا مستخدم واحد يحاول معرفة ذلك منذ بضعة أشهر دون جدوى. :slightly_smiling_face: يبدو أنه فاتته يومين في الربع الماضي.

عادةً ما يكون الوقت 00:00 بتوقيت تنسيق UTC، وهو وقت الخادم.

مرحباً،

بعد قراءة هذا الموضوع، ما زلنا في حيرة من أمرنا بشأن معنى “زيارات المستخدمين”؟ هل هم مستخدمون فريدون للمدة الزمنية التي تحددها؟

على سبيل المثال،

هنا يقول أن لدينا 286 زيارة مستخدم في فبراير، ولكن لدينا 97 مستخدمًا فقط في منتدانا.

هل يمكنك التوضيح؟

شكراً لك،
Cat

مرحباً يا Cat،

للإجابة على سؤالك هنا:

يعرض تقرير زيارات المستخدم العدد الإجمالي لزيارات المستخدمين في المنتدى للفترة الزمنية المحددة (اليوم، أمس، آخر 7 أيام، الشهر، إلخ).

على وجه التحديد، يتم احتساب زيارة المستخدم في كل مرة يزور فيها مستخدم مسجل الدخول فريد الموقع، بحد أقصى مرة واحدة في اليوم.

على سبيل المثال، إذا زار مستخدم موقعًا كل يوم خلال أسبوع، فسيحتسب Discourse ذلك كـ 7 زيارات للمستخدم. هذا هو السبب في أنه من الممكن أن يكون لديك عدد زيارات مستخدمين في شهر أكثر من إجمالي عدد المستخدمين في موقعك.

إذا كنت مهتمًا، يمكنك أيضًا عرض كود Ruby لهذا التقرير هنا: discourse/app/models/concerns/reports/visits.rb

آمل أن يكون هذا مفيدًا! :slightly_smiling_face: