Is there a way to track profile page views

I know Discourse tracks topic and post views and reads, but does it also track the number of views on user profiles? I would really like to run some statistics on how user activity relates to profile views.

I could always mine the nginx access logs, but that would require ongoing external saving of the numbers.

Storing this profile view data in one of the Discourse tables would be so nice and clean…

7 Likes

+1 :slight_smile:

Would love to see this as a metric in admin too “total profile views”.

1 Like

As long as individual profile view statistics are also accessible, very much yes to this too.

Since we’re also talking about displaying these stats, as a user, it would be great to know how many times my profile has been viewed. It would be a great tool to encourage users to make sure their profiles are populated.

1 Like

Sure! Counting views to the profile page would be a nice stat cc: @tgxworld

8 Likes

I’ll have a look once I’m done with the Cakeday plugin :cake:

7 Likes

Hey hey, you just made my day!

Here are the specs for this feature.

  1. When a user visits my profile page, my profile page views should increase by 1.
  2. When a user visits his own profile page, his profile page views should not be increased.
  3. Each page view is incremented per unique IP/username in the last 8 hours. Assumed rules are the same as topic views tracking.
  4. As an admin, I should be able to see total number of profile views for all user profiles in a table.

Let me know if I missed anything :smile:

11 Likes

All of those specs are good.

Would there be any way to track when the profile views took place? The Discourse dashboard shows changes over time (Today, Yesterday, Last 7 Days, Last 30 Days, All) for the stats it currently tracks.

1 Like

What about listing who viewed your page? That’s where it really gets interesting!

Do we really need to see this? I’m curious. What’s the use case? I just can’t think of one, but that doesn’t mean there isn’t one…

For privacy reasons I’m strongly against that. In my opinion nobody should see when and how often I visit a profile. Sites that show such things creep me out. It takes away from the experience if I have to think every time I visit a profile: “Did I visit this before?”, “Do I look at this too often?”, …

@tgxworld I’d really like to have a site setting to completely disable profile views. It shouldn’t even save those views to the database. And, in my opinion tracking of profile views should be off by default.

Just my 2 cents.

2 Likes

Our use case is using this to track engagement over time - which includes users interest in each other, hence wanting to see metrics here.

We’d also rather that profile views be visible only to moderators & admins. No specific need to know who looked, but user-user profile views over time are an interesting statistic for us.

2 Likes

There is definitely a value to tracking profile views over time. Are profile views up or down from the previous day, week or month? You wouldn’t be able to see any trends if you didn’t track the time as well. This is also consistent with the way other statistics are shown in the Dashboard.

4 Likes

Hmm it does seem like that this is an admin/moderator only feature since the use cases mentioned above is only concerned with performing some sort of trend analysis.

1 Like

You would still show view counts to everyone on the profile, though, just like we do for topics…

5 Likes

“4. As a user, only I can see the number of profile page views for my profile.”

As per your comment, this should be removed from the specs? :thought_balloon:

1 Like

If topic view counts are visible I don’t see why profile view counts should be an international secret or anything…

6 Likes

Google+ also operates with public view counts on profiles:

https://plus.google.com/+LinusTorvalds/posts

On the other hand, most other social networks and forums do not.

For my own forum, I wouldn’t want profile page views as anything more than an administrative feature. Even if my own view count is visible to me alone, seeing it every time I open my profile is just going to be an unwelcome distraction.

7 Likes

I would love it.

Facebook becomes more and more boring the latest years, because they don’t showing anything like that. The newsfeed isn’t as much interesting like any of my discourse communities I’m in. Overall they recently kicked out the plugin support for www.sadlyunfriended.com – They informed me at least about cancelled friendships via email who and when. This was pretty great.

Back to Discourse: Viewing (by myself) who visited my profile page and (publicly visible) how many people, would be a killer feature :wink:

1 Like

Any thoughts on the position of the views count? Welcoming suggestions :smile:

Anyway, placing the views count on the user-card is intentional. If sort of acts like a call to action “O this guy has alot of profile views, let me find out why”.

2 Likes

Shouldn’t we be consistent and keep the same order for the Joined date/Last post/Views count?

I personally prefer the order shown in the profile page.

5 Likes