Reset Statistics count (dashboard)

Permalink
Hi all,

Does anyone know what core file needs to be changed to reset the site statistics captured for the dashboard graph?

Thanks,
-Mark

marxion
 
ScottC replied on at Permalink Reply
ScottC
I personally turn these off and rely on google analytics or mint statshttp://haveamint.com/ for my data. I know that the stats are tied to page loads and are javascript agnostic and thus will catch those that do not have javascript enabled (which is quite a bit, like 22% from some recent research, maybe all bots) but that is ok.

So in config.php add

define('STATISTICS_TRACK_PAGE_VIEWS', false);


and use the new field in the 5.2RC dashboard to insert your adsense code. You will need to include something that used to not be standard, it is a footer_required or something of that sort. Look at the core vanilla theme for guidance, otherwise it doesn't append it to any old page :).

I hope this helps. If you decide to stick with the standard stat tracking then you would have to delete * from pagestatistics in the db every once in a while :). I figure i trust google with my email, why not my page stats.

Hope this helps.

-Scott C
marxion replied on at Permalink Reply
marxion
You're right about google, that's what I have been using but was curious about the stats in C5. I haven't tried haveamint. I just took a quick spin of the 5.2 RC last night and it looks good.

I'll likely disable the C5 stats in the config file.

Thanks,
-Mark
jjhanks replied on at Permalink Reply
jjhanks
Can you explain in simple terms how to disable or reset the page stats in the new version of concrete?