Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

The logging happens at the server side, and doesn't require a javascript like Google Analytics does, to provide usage data. Definition of which fields are to be stored happens in the file dspace/solr/statistics/conf/schema.xml.

Although they are stored in the same index, the stored fields for views, search queries and workflow events are different. A new field, statistics_type determines which kind of a usage event you are dealing with. The three possible values for this field are view, search and workflow.

Code Block
languagehtml/xml
<field name="statistics_type" type="string" indexed="true" stored="true" required="true" />

...

Common stored fields for

...

all usage events

Code Block
languagehtml/xml
<field name="type" type="integer" indexed="true" stored="true" required="true" />
<field name="id" type="integer" indexed="true" stored="true" required="true" />
<field name="ip" type="string" indexed="true" stored="true" required="false" />
<field name="time" type="date" indexed="true" stored="true" required="true" />
<field name="epersonid" type="integer" indexed="true" stored="true" required="false" />
<field name="continent" type="string" indexed="true" stored="true" required="false"/>
<field name="country" type="string" indexed="true" stored="true" required="false"/>
<field name="countryCode" type="string" indexed="true" stored="true" required="false"/>
<field name="city" type="string" indexed="true" stored="true" required="false"/>
<field name="longitude" type="float" indexed="true" stored="true" required="false"/>
<field name="latitude" type="float" indexed="true" stored="true" required="false"/>
<field name="owningComm" type="integer" indexed="true" stored="true" required="false" multiValued="true"/>
<field name="owningColl" type="integer" indexed="true" stored="true" required="false" multiValued="true"/>
<field name="owningItem" type="integer" indexed="true" stored="true" required="false" multiValued="true"/>
<field name="dns" type="string" indexed="true" stored="true" required="false"/>
<field name="userAgent" type="string" indexed="true" stored="true" required="false"/>
<field name="isBot" type="boolean" indexed="true" stored="true" required="false"/>
<field name="bundleNamereferrer" type="string" indexed="true" stored="true" required="false" multiValued="true" />

The combination of type and id determine which resource (either community, collection, item page or file download) has been requested.

Stored fields for search queries

Code Block
languagehtml/xml
<field name="queryuid" type="stringuuid" indexed="true" stored="true" requireddefault="falseNEW" multiValued="true"/>
<field name="scopeTypestatistics_type" type="integerstring" indexed="true" stored="true" required="falsetrue" default="view" />

The combination of type and id determines which resource (either community, collection, item page or file download) has been requested.

Unique stored fields for bitstream downloads

Code Block
languagehtml/xml
<field name="scopeIdbundleName" type="integerstring" indexed="true" stored="true" required="false" />
<field namemultiValued="rpptrue" />

Unique stored fields for search queries

Code Block
languagehtml/xml
<field name="query" type="stringtype="integer" indexed="true" stored="true" required="false" multiValued="true"/>
<field name="sortByscopeType" type="stringinteger" indexed="true" stored="true" required="false" />
<field name="sortOrderscopeId" type="stringinteger" indexed="true" stored="true" required="false" />
<field name="pagerpp" type="integer" indexed="true" stored="true" required="false" />

Stored fields for workflow events

Code Block
languagehtml/xml

<field name="workflowStepsortBy" type="string" indexed="true" stored="true" required="false" multiValued="true"/>
<field name="previousWorkflowStepsortOrder" type="string" indexed="true" stored="true" required="false" multiValued="true"/>
<field name="page" type="integer" indexed="true" stored="true" required="false" />

Unique stored fields for workflow events

Code Block
languagehtml/xml
<field name="workflowStepowner" type="string" indexed="true" stored="true" required="false" multiValued="true"/>
<field name="submitterpreviousWorkflowStep" type="integerstring" indexed="true" stored="true" required="false" multiValued="true"/>
<field name="actorowner" type="integerstring" indexed="true" stored="true" required="false" multiValued="true"/>
<field name="workflowItemIdsubmitter" type="integer" indexed="true" stored="true" required="false" />
<field name="actor" type="integer" indexed="true" stored="true" required="false" />
<field name="workflowItemId" type="integer" indexed="true" stored="true" required="false" />

Web User Interface Elements

...

If you are not seeing the link labelled "search statistics", it is likely that they are only enabled for administrators in your installation. Change the configuration parameter "authorization.admin.search" in usage-statistics.cfg to false in order to make statistics visible for all repository visitors.The dropdown on top of the page allows you to modify the time frame for the displayed statisticsstatistics.cfg to false in order to make statistics visible for all repository visitors.

The dropdown on top of the page allows you to modify the time frame for the displayed statistics.

The Pageviews/Search column tracks the amount of pages visited after a particular search term. Therefor a zero in this column means that after executing a search for a specific keyword, not a single user has clicked a single result in the list.

If you are using Discovery, note that clicking the facets also counts as a search, because clicking a facet sends a search query to the Discovery index.

Workflow Event Statistics

...

Modifying the number of months, for which statistics are displayed

Modify line 178 205 in the StatisticsTransformer.java file

https://github.com/DSpace/DSpace/blob/dspace-1_83_x/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/statistics/StatisticsTransformer.java#L178java#L205

-6 is the default setting, displaying the past 6 months of statistics. When reducing this to a smaller natural number, less months are being displayed.

...