Latest Register Log In

+ Advanced Search

Statistics

Statistics
By
Oct 09, 2010 (Edited Oct 20, 2018)

Turning on the statistics tweak at Admin -> Settings -> Switches -> "Statistics" will enable a member home area option for members to view statistics and graphs of who's been clicking their links, downloading their files and viewing their listings.

By default, statistics are kept for 30 days. If your site is especially busy you may wish to remove them sooner to keep the database smaller -- you can change the number of days statistics are retained at Admin -> Settings -> General -> "Retain statistics for: ___ days"

Registrations and submissions are also recorded in the statistics table, and you can show these via a toplist if you wish:

<!-- BEGIN TOPLIST -->
<CONFIG>stats,time,20,descending,action='submitted' OR action='registered'</CONFIG>
<IF {STATACTION} is submitted><a href="{LINKDETAILSURL}">{LINKTITLE}</a> was submitted on {STATDATE}</IF>
<IF {STATACTION} is registered><a href="{STATMEMBERPROFILEURL}">{STATMEMBERNAME}</a> registered on {STATDATE}</IF>
<br >
<!-- END TOPLIST -->

The above shows the last 20 submissions or registrations. You can use Admin -> Themes -> Toplist Generator to generate statistics toplists.

To change the visitor statistics page, edit the template at Admin Panel -> Themes -> Manage Templates -> Member Templates -> Visitor Statistics.

Note that busy sites may lead to large statistics databases which may cause slow queries. If you're seeing poor performance, test whether turning off statistics helps.

Admin Statistics

Note there's also a statistics page in the admin panel. That page shows many of the same things and some different things, but on a global scale instead of for a particular listing.

Adding New Statistics

If you want to track another type of click that's not presently tracked, all you need to do is is add id="your_stat_type{LINKID}" class="clicktracking" to the <a> link tag that you want to track-- or leave out the {LINKID} if it's a global stat not associated with a particular listing. It'll replace the underscores with spaces in displaying the name of the stat and capitalization will be automatically adjusted to context.





Rating
Views 220 views. Averaging 0 views per day.
Similar Listings