1.41 Usage figures
Last updated
Was this helpful?
Last updated
Was this helpful?
The Goobi viewer can automatically collect usage figures for individual data sets. The following can be collected:
the absolute number of page views (each time a page of a work is called up)
unique page views (each view of a page of a work is counted only once per user session)
absolute number of downloads (each download of a file)
unique downloads (each download of a file is counted only once per user session).
A user session is the session as seen by the Goobi viewer.
The logic is that all calls that open a record are cached in a database. Full days can then be transferred to the Solr search index. Once the data is in the search index, it can either be displayed in a widget or retrieved via the REST API.
The following setting options are available for the configuration:
The enabled
attribute switches the functionality on or off. If it is active, a widget is also displayed in the sidebar showing the usage figures - provided that data is available.
The regular expression in the element crawlerDetection
defines which UserAgents are treated as search engines. These are not counted.
The following two REST endpoints are available for querying the usage figures:
/statistics/usage/{date}
date to observe, in format yyyy-mm-dd
additional SOLR query to filter records which should be counted. Only requests to records matching the query will be counted
the format in which to return the data. May be json, text or csv. Default is json
No body
/statistics/usage/{startDate}//{endDate}
first date to observer, in format yyyy-mm-dd
last date to observer, in format yyyy-mm-dd
additional SOLR query to filter records which should be counted. Only requests to records matching the query will be counted
the format in which to return the data. May be json, text or csv. Default is json
the number of time units (default: days) each statistics should span
The time unit to use for 'step' paramter. May be years, months, weeks or days
No body