April 03, 2007

Statistics:Summary

Quickly Site statistics summaries.

Usage [statistics:summary {count=n} {mode=sum|avg|min|max} {order=asc|desc}]
[statistics:summary:here {template=type.name}]

Type block tag, here tag

Data Fields site, year, month, pages, bytes, bytes.text, pages.bytes, pages.bytes.text, files.bytes, files.bytes.text, feeds, templates, queries, rows, ctime, ctime.text, etime, etime.text, qtime, qtime.text

Description

The [statistics:summary] tag retrieves a set of monthly summary statistics for your site. The values available are:

siteThe id of your site.
yearThe year for this summary record.
monthThe month for this summary record.
pagesThe number of pages (html, text, xml) retrieved.
files  The number of files retrieved.
feedsThe number of RSS/Atom feed requests.1
templatesThe number of templates processed.
queriesThe number of SQL queries executed.
rowsThe number of database rows retrieved.
ctimeThe number of CPU seconds used.
etime
The number of seconds elapsed during processing.
qtime The number of seconds elapsed during queries.
bytes The total number of bytes transferred.
pages.bytesThe number of bytes transferred for pages.
files.bytes 
The number of bytes transferred for files.

Pre-formatted versions are available for each of the time and bytes fields by appending .text.  The pre-formatting takes account of minutes and seconds for times, and of kilobytes, megabytes, and gigabytes for transfers.

Options

count Maximum number of records return.
mode Return an aggregate figure, rather than individual records.  The values are the total (sum), average (avg), minimum (min) or maximum (max) of the respective fields.  In aggregate mode, only one record is returned.
order Sort records in ascending or descending order.  The default is descending.
template Template to be used in here mode.  The default is item.stats.summary.


1 Not yet supported; returns 0.

Posted by: Pixy Misa at 05:12 PM | Comments (1) | Add Comment
Post contains 237 words, total size 6 kb.

1 How to determine the number of views of my blog?

Posted by: Abdul Alhazred at December 02, 2007 11:07 PM (q9XkO)

Hide Comments | Add Comment

Comments are disabled. Post is locked.
13kb generated in CPU 0.0115, elapsed 0.0415 seconds.
32 queries taking 0.0331 seconds, 53 records returned.
Powered by Minx 1.1.6c-pink.