Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

It is possible to record User Interface traffic by enabling the recording of Google Analytics data within DSpace using the google.analytics.key in the DSpace configuration file dspace.cfg (or local.cfg).

By default this "google.analytics.key" is empty, which means that Google Analytics is disabled.  To enable it, simply set the value of google.analytics.key

Code Block

As of DSpace 5 (and above) Until DSpace version 5.0 only User Interface activity could be recorded, that is to say that downloads initiated straight from a Google search (or any other search engine) were not recorded. As of DSpace version 5.0 downloads are now recorded as Google 'Events', so that all item page views and bitstream downloads are now recorded. recorded. 

Info

When Google Analytics is disabled, you will see 404 responses returned from the REST API whenever the User Interface attempts to access ${dspace.server.url}/api/config/properties/google.analytics.key .  This is expected behavior, as that 404 response is the REST API telling the User Interface that Google Analytics is not configured.  When the UI sees that 404 from the REST API, it disables Google Analytics tracking the UI.


Google Analytics Reporting

...