Site Activity Counter

Permalink
Hi - I'm looking at my dashboard (particularly the site activity graph) and wondering if its possible to edit this to see farther back (previous days)rather than just a few days? (I would like to see a wider range of days).

Also, when I log into edit under admin, does this count towards the activity?

 
Tony replied on at Permalink Reply
Tony
the stats package does this:
http://www.concrete5.org/marketplace/addons/stats...

...although after a week you'll have to view it based on weekly or monthly traffic. (it's just too much data to process otherwise)
setsail replied on at Permalink Reply
Just in case someone else gets here like I did, and finds no real answer. I hacked around and figured out a simple tweak. Change, or override:

/concrete/core/controllers/single-pages/dashboard/reports/statistics.php

Change line 41 from this:
for ($i = -4; $i < 1; $i++) {

(The "4" is how many days to look back.)

to this:
for ($i = -10; $i < 1; $i++) {

(looks back 10 days, this is about the max that fits)

Change line 46 from this:
$label = $dh->date('D', strtotime($i . ' days'));


to this:
$label = $dh->date('dS', strtotime($i . ' days'));
exchangecore replied on at Permalink Reply
exchangecore
Just a recommendation, turn off concrete5 statistics, and use google analytics if it is possible. There is a performance hit using the statistics with c5 and the table builds up pretty fast if you have any sizable amount of traffic.

Also, don't ever modify the core files directly. They will be wiped out during any core updates.