Attention : vous consultez actuellement la documentation dédiée aux versions 1.x de Moodle. La documentation pour les versions 2.x de Moodle est consultable ici : Statistiques, celle pour les versions 3.x de Moodle est consultable ici : Statistiques et celle pour Moodle 4.x est consultable là : Statistiques.

Statistiques

De MoodleDocs
Aller à :navigation, rechercher

Remarque : la traduction de cet article n'est pas terminée. N'hésitez pas à traduire tout ou partie de cette page ou à la compléter. Vous pouvez aussi utiliser la page de discussion pour vos recommandations et suggestions d'améliorations.

Moodle1.6

Emplacement : Administration > Serveur > Statistiques


If you enable site statistics, Moodle will gather statistics about each course and for the whole site, and produce graphs displaying them.

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 before you will see anything.

Activer les statistiques du site

  1. Accédez à Administration > Serveur > Statistiques.
  2. Cochez la case "Activer les statistiques", et renseignez les choix correspondants.
  3. Le traitement des statistiques étant "lourd", il est recommandé de le lancer à un moment ou le serveur n'est pas sollicité, par exemple très tôt dans la matinée.
  4. Cliquez sur le bouton "Enregistrer les modifications".

Astuce : définissez l'heure de traitement des statistiques deux heures avant celle des sauvegardes automatiques, et réglez la durée maximale de traitement à deux heures. Cela vous assurera que les statistiques ne seront pas traitées en même temps que les sauvegardes.

Les statistiques ne fonctionnent pas?

If statistics isn't working and you have checked all the obvious (such as whether it's enabled), 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.