Difference between revisions of "Statistics"

Jump to: navigation, search

Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Statistics.

m (Statistics not working?)
(location, small re-wording)
Line 1: Line 1:
 
{{Moodle 1.6}}
 
{{Moodle 1.6}}
 +
Location: ''Administration > Server > Statistics''
  
The statistics graphs and tables show how many '''hits''' there have been on various parts of your site during various time frames. They '''do not''' show how mny distinct users there have been. They are processed daily at a time you specify in Administration >> Server >> Statistics. You must enable statistics here before you will see anything.
+
The statistics graphs and tables show how many '''hits''' there have been on various parts of your site during various time frames. They '''do not''' show how many distinct users there have been. They are processed daily at a time you specify. You must enable statistics here before you will see anything.
  
 
==Statistics not working?==
 
==Statistics not working?==
  
If Statistics isn't working and you have checked all the obvious (such as whether it's enabled), please check Administration >> Modules for any old hidden modules in the database which miss the files in the moodle/mod folder on your server. If you find any, they should be deleted via Administration >> Modules.
+
If Statistics isn't working and you have checked all the obvious (such as whether it's enabled), please check ''Administration > Modules'' for any old hidden modules in the database which miss the files in the moodle/mod folder on your server. If you find any, they should be deleted.
  
You can also try limiting the length of time logs are kept for to reduce the size of the tables. Go to Administration >> Cleanup to set this.
+
You can also try limiting the length of time logs are kept for to reduce the size of the tables. Go to ''Administration > Server > Cleanup'' to set this.
  
To run stats manually, go to the database, go to the mdl_config table and set statslastdaily, statslastweekly and statslastmonthly to 0 (leave statslastmonthly alone if you think it might be large logtables causing the problem). Then go to Administration >> Server >> Statistics and set statsruntimestarthour to 5 mins ago. Then visit http://www.yoursite.com/admin/cron.php. You should see output there saying that stats are processing, but be patient if it appears to hang - this can take between 5 mins and several hours depending on how big your site is, so just leave it going.
+
To run stats manually, go to the database, go to the mdl_config table and set statslastdaily, statslastweekly and statslastmonthly to 0 (leave statslastmonthly alone if you think it might be large logtables causing the problem). Then go to ''Administration > Server > Statistics'' and set statsruntimestarthour to 5 mins ago. Then visit <nowiki>http://www.yoursite.com/admin/cron.php</nowiki>. You should see output there saying that stats are processing, but be patient if it appears to hang - this can take between 5 mins and several hours depending on how big your site is, so just leave it going.
 
 
 
 
 
 
 
 
{{stub}}
 
  
 
[[Category:Administrator]]
 
[[Category:Administrator]]
[[Category:Teacher]]
 
 
[[Category:Report]]
 
[[Category:Report]]

Revision as of 14:03, 26 May 2007

Moodle1.6


Location: Administration > Server > Statistics

The statistics graphs and tables show how many hits there have been on various parts of your site during various time frames. They do not show how many distinct users there have been. They are processed daily at a time you specify. You must enable statistics here before you will see anything.

Statistics not working?

If Statistics isn't working and you have checked all the obvious (such as whether it's enabled), please check Administration > Modules for any old hidden modules in the database which miss the files in the moodle/mod folder on your server. If you find any, they should be deleted.

You can also try limiting the length of time logs are kept for to reduce the size of the tables. Go to Administration > Server > Cleanup to set this.

To run stats manually, go to the database, go to the mdl_config table and set statslastdaily, statslastweekly and statslastmonthly to 0 (leave statslastmonthly alone if you think it might be large logtables causing the problem). Then go to Administration > Server > Statistics and set statsruntimestarthour to 5 mins ago. Then visit http://www.yoursite.com/admin/cron.php. You should see output there saying that stats are processing, but be patient if it appears to hang - this can take between 5 mins and several hours depending on how big your site is, so just leave it going.