The Active Social Group Statistics Control provides a template based display of various group statistics.
| Property |
Description |
| GroupId |
Required - The numeric value that is used to identify a particular group. |
| TimePeriod |
Optional - A text value used to represent a period of time for statistics reporting. Possible values are listed below:
CurrentMonth
PreviousMonth
YearToDate
|
| StartDate |
Optional - A date value used to represent the starting date for statistics reporting.
|
| EndDate |
Optional - A date value used to represent the end date for statistics reporting. |
StatsToDisplay
|
Optional - A comma separated list of Statistic Keys. Allows for greater control over the selection and order for data to be presented.
|
| HeaderTemplate |
Optional - HTML or text that will be rendered above the statistics output. |
FooterTemplate
|
Optional - HTML or text that will be rendered below the statistics output.
|
ItemTemplate
|
Optional - HTML or text that contains tokens for displaying the name and value for each statistic.
|
|
|
Available Tokens
| Token |
Description |
[AS:STATS:STATNAME] and
[AS:STATS:STATVALUE]
|
Useful for displaying a quick list of available statistics. The remaining tokens below will not be available when either of these tokens are present in the template.
|
[AS:STATS:STATNAME:TOTALMEMBERCOUNT:LABEL]
[AS:STATS:STATNAME:NEWMEMBERS:LABEL]
[AS:STATS:STATNAME:VISITCOUNT:LABEL]
[AS:STATS:STATNAME:GROUPJOIN:LABEL]
[AS:STATS:STATNAME:FORUMTOPIC:LABEL]
[AS:STATS:STATNAME:FORUMREPLY:LABEL]
[AS:STATS:STATNAME:LINK:LABEL]
[AS:STATS:STATNAME:NOTE:LABEL]
[AS:STATS:STATNAME:VIDEO:LABEL]
[AS:STATS:STATNAME:PHOTO:LABEL]
[AS:STATS:STATNAME:STATUS:LABEL]
[AS:STATS:STATNAME:POST:LABEL]
[AS:STATS:STATNAME:DOCUMENT:LABEL]
[AS:STATS:STATNAME:FEED:LABEL]
[AS:STATS:STATNAME:SIGNUP:LABEL]
[AS:STATS:STATNAME:GROUPUPDATE:LABEL]
[AS:STATS:STATNAME:UPLOADPHOTO:LABEL]
[AS:STATS:STATNAME:CREATEEVENT:LABEL]
|
Each of the tokens to the left will match a corresponding localization value. For example, [AS:STATS:STATNAME:TOTALMEMBERCOUNT:LABEL] will display the value assigned to [RESX:STATS:TOTALMEMBERCOUNT].Text in the SharedResources.resx file.
|
| [AS:STATS:STATNAME:TOTALMEMBERCOUNT:VALUE] |
The total number of approved members for the group.
|
[AS:STATS:STATNAME:NEWMEMBERS:VALUE]
|
The total number of new members for the specified time period. The new member value will be the same as total member count when a reporting time period has not been specified.
|
[AS:STATS:STATNAME:VISITCOUNT:VALUE]
|
The total number of page views the group has received for the specified time period.
|
Journal Statistics
[AS:STATS:STATNAME:GROUPJOIN:VALUE]
[AS:STATS:STATNAME:FORUMTOPIC:VALUE]
[AS:STATS:STATNAME:FORUMREPLY:VALUE]
[AS:STATS:STATNAME:LINK:VALUE]
[AS:STATS:STATNAME:NOTE:VALUE]
[AS:STATS:STATNAME:VIDEO:VALUE]
[AS:STATS:STATNAME:PHOTO:VALUE]
[AS:STATS:STATNAME:STATUS:VALUE]
[AS:STATS:STATNAME:POST:VALUE]
[AS:STATS:STATNAME:DOCUMENT:VALUE]
[AS:STATS:STATNAME:FEED:VALUE]
[AS:STATS:STATNAME:GROUPUPDATE:VALUE]
[AS:STATS:STATNAME:UPLOADPHOTO:VALUE]
[AS:STATS:STATNAME:CREATEEVENT:VALUE]
|
Available tokens for returning statistics for specific journal types.
|
|
|
Statistic Keys for Groups
TotalMemberCount
NewMembers
VisitCount
PhotoCount
ForumTopic
ForumReply
Link
Note
Video
Photo
Status
Post
Document
Feed
GroupUpdate
UploadPhoto
CreateEvent
Repeating List Using StatsToDisplay Property
<active:groupstats runat="server" GroupId="[AS:GROUPINFO:GROUPID]" TimePeriod="CurrentMonth" StatsToDisplay="NEWMEMBERS,VISITCOUNT,FORUMTOPIC">
<headertemplate>
<table>
</headertemplate>
<itemtemplate>
<tr>
<td>[AS:STATS:STATNAME]</td>
<td>[AS:STATS:STATVALUE]</td>
</tr>
</itemtemplate>
<footertemplate>
</table>
</footertemplate>
</active:groupstats>