Tags:
create new tag
view all tags

Feature Proposals » Most viewed and most updated webs on SiteStatistics

Summary

Current State: Developer: Reason: Date: Concerns By: Bug Tracking: Proposed For:
MergedToCore HideyoImazu AcceptedByReleaseMeeting 2013-09-11   TWikibug:Item7340 JerusalemRelease

Edit Form

TopicSummary:
CurrentState:
CommittedDeveloper:
ReasonForDecision:
DateOfCommitment:   Format: YYYY-MM-DD
ConcernRaisedBy:
BugTracking:
OutstandingIssues:
RelatedTopics:
InterestedParties:
ProposedFor:
TWikiContributors:
 

Motivation

With MostPopularWebsInSiteStatistics, SiteStatistics has the "Top Web Views" column. At the same token, the list of most updated webs should be there.

Description and Documentation

Instead of adding another column to the table, the list of most updated webs will be put on the "Webs updated" column. For consistency and compactness, the list of most viewed webs will move to the "Webs viewed" column eliminating the "Top Web Views" column.

Month Webs
Total
Webs
Viewed
Webs
updated
Topics
Total
2013-09 4215 3080
133348 Mercury
  45357 Venus
  40304 Earth
  26624 Mars
  26569 Jupiter
  26461 Saturn
179
398 Saturn
336 Jupiter
213 Mars
185 Earth
172 Venus
155 Mercury
72725

To make use of MostPopularWebsInSiteStatistics after upgrade, you need to modify the existing SiteStatistics. This proposal still needs slight modification to the existing SiteStatistics, but it's only with the template row (the second row of the table having | <!--statDate--> | ...). Specifically One space preceding <!--statWebsViews--> and <!--statWebsUpdated--> needs to be removed.

Given TopViewersOnStatistics, it's logical for tools/cvt_stats_twiki6 of TopViewersOnStatistics to do the above modification in addition to the column addition.

The second line onwards on "Webs Viewed" and "Webs Updated" columns have the numbers of views and updates, which are different in nature from the first line values. This will be clearly described under the table.

Those additional lines are confirmed not to affect ChartPlugin picking up the number at the beginning of those columns.

The number of webs listed is specified by {Stats}{SiteTopViews} and {Stats}{SiteTopUpdates}. Both are 0 by default, in which case, the webs lists are not put on SiteStatistics.

Examples

The following setting (default) suppresses the lists of most viewed webs and most updated webs.

$TWiki::cfg{Stats}{SiteTopViews} = 0;
$TWiki::cfg{Stats}{SiteTopUpdates} = 0;

The following setting specifies that 20 most viewed webs and 20 most updated webs are listed.

$TWiki::cfg{Stats}{SiteTopViews} = 20;
$TWiki::cfg{Stats}{SiteTopUpdates} = 20;

Impact

WhatDoesItAffect: Usability

Implementation

-- Contributors: Hideyo Imazu - 2013-09-11

Discussion

Looks good. A table row is already taller than one line due to the "Top Contributors" column, so this new feature will not use more screen real estate.

Make sure this works also when the ChartPlugin is used to visualize the statistics data.

-- Peter Thoeny - 2013-09-11

One point of confusion might be the units for the numbers. The first number in "Webs Viewed" is the number of webs viewed in that month. The numbers below for the top webs seem to be topic views in each web? It needs to be documented.

-- Peter Thoeny - 2013-09-11

I've addressed those points in the description above.

-- Hideyo Imazu - 2013-09-12

This feature is accepted by JerusalemReleaseMeeting2013x09x12.

-- Peter Thoeny - 2013-09-12

Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2013-10-11 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.