ocPortal Tutorial: Activity statistics for your site
Written by Philip Withnall, ocProducts
{!DOC_STATISTICS}Table of contents
The administration interface
The administration interface resides quite obviously in the adminzone, under the name "admin_stats". On a default ocPortal installation, the statistics link section is in the "Usage" section of the admin zone.Installing geo-location data
|
The menu link to install geolocation data |
|
The message shown when installing geolocation data |
Important note
Do not disturb the geolocation data installation process. You will be informed when it is complete.
Once the geo-location data is installed, all the extra statistics can be used.
Page view statistics
{!DOC_PAGE_STATISTICS}Per-page breakdowns
The per-page breakdowns list more detailed statistics for each page, in various forms, but all have a graph. The following statistics are present:- Views per hour
- Views per day
- Views per week
- Views per month
- Browsers used to view this page
- Referrers to this page
- Operating Systems used to view this page
- Regionalities this page has been viewed from
Users online statistics
{!DOC_USERS_ONLINE_STATISTICS}Submission statistics
{!DOC_SUBMISSION_STATISTICS}Top referrers
{!DOC_TOP_REFERRERS}Top Google keywords
{!DOC_INSTALL_GEOLOCATION_DATA}Page load times
{!DOC_LOAD_TIMES}Download statistics
|
The download statistics box |
Most popular downloads
|
The most popular downloads block |
|
The most recently-added downloads block |
The most popular downloads block obviously displays the most popular (i.e. most frequently downloaded) downloads. In a default ocPortal installation, it's found on the front page, but can be added using the following Comcode:
If you want to change the number of downloads shown from the default, add a parameter:
Code
[block]main_top_downloads[/block]
Code
[block="10"]main_top_downloads[/block]
When rendered, these blocks also show how many downloads each listed download has received, and when they were added.
Most recently-added downloads
The most-recently added downloads block does indeed display the most recently-added downloads. In a default ocPortal installation, it's found on the front page, but can be added using the following Comcode:Code
[block]main_recent_downloads[/block]
Code
[block="10"]main_recent_downloads[/block]
Other statistics
|
View statistics are shown for various forms of content |
An example of this would be news items: each news item records how many times it is viewed, and displays this number on its view page.
Concepts
- SVG
- Scaleable Vector Graphics, a text-markup-based graphics format that allows infinite scalability of graphics without texture loss due to being vector-based (co-ordinate-delimited shapes) instead of pixel based (specific data for each pixel).
- Geo-location
- The process of using some type of individually-identifiable information to find out where in the world somebody is. (Don't worry: none of this data is sent to ocProducts.)



