DSpace Statistics A.R.D. Prasad DRTC, Indian Statistical Institute [email protected]
Why Statistics ? Usage statistics justifies the expenditure on a digital repository The popularity of a repository is reflected by its usage Serves as a feed back mechanism to improve your repository 2 of 17
DSpace 1.6 and later versions use the Apache SOLR Each time a page or file gets requested, this request is being logged Statistics are generated from files in – [dspace]/log directory 3 of 17
[dspace]/log/ directory − contains log files − dspace.log.yyyy-mm-dd: Main DSpace log file. This is where the DSpace code writes log of events and errors. − One can control the verbosity of this by editing the [dspace- source]/config/templates/log4j.properties file and then running \"ant init_configs“. [dspace]/reports/ directory – contains reports generated by statistical report generator as html files 4 of 17
Modify Parameters in ... [dspace]/solr/statistics/conf/schema.xml contains parameters regarding what should be stored [dspace]/config/log4j.properties parameters regarding how and where log files are created 5 of 17
The following statistics are collected from log files Number of items archived Number of item views User logins Actions performed Search terms used Workflow information 6 of 17
Configuring Stat System Edit file [dspace]/config/dstat.cfg to generate reports Start Year and Month The various actions like – Community, collections, item, bitstream views, items archived, number of logins etc. Exclude puff words from the list of words searched Items archived by type – theses, preprints etc. 7 of 17
Cron Jobs # Cleanup Web Spiders from DSpace Statistics Solr Index at 01:00 every day 0 1 * * * $DSPACE/bin/dspace stats-util -i # Re-Optimize DSpace Statistics Solr Index at 01:30 every day 30 1 * * * $DSPACE/bin/dspace stats-util -o # To periodically generate statistics and reports $DSPACE/bin/dspace stat-general $DSPACE/bin/dspace stat-monthly $DSPACE/bin/dspace stat-report-general $DSPACE/bin/dspace stat-report-monthly 8 of 17
URL to View Statistics Default: admin login is required to view statistics http://localhost:8080/xmlui/statistics http://localhost:8080/jspui/statistics Cont... 9 of 17
URL to View Statistics To allow anybody to view statistics In dspace.cfg Change ‘report.public = false’ to ‘report.public=true’ 10 of 17
http://localhost:8080/solr/#/statistics By default Solr can only be accessed on the host machine running dspace. Hence the usage of ‘localhost’ in the URL By default, one can not access solr from any other machine 11 of 17
12 of 17
Stats on jspui 13 of 17
Google Analytics Time visitors spent on the site Where did they come from Search Terms they used Country of the visitors How may pages they visited What was the starting and ending page 14 of 17
15 of 17
16 of 17
Registering with Google Analytics Go to http://www.google.com/analytics/ Singin has pull down menu, choose ‘Google Analytics’ using your google mailid Click ‘Sign Up’ Add new account and provide the website/DSpace address which you want to track Accept Google agreement and get the tracking ID 17 of 17
Search
Read the Text Version
- 1 - 17
Pages: