Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-2899

Google Analytics Statistics not relating parent comm/coll to bitstream download

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Volunteer Needed (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      1
    • Documentation Status:
      Needed

      Description

      Viewing statistics results for Google Analytics statistics is always showing zero bitstream downloads. This is because we aren't storing enough information on bitstream download events to show the full hierarchy.

      https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/google/GoogleQueryManager.java

      getBitstreamDownloads(String startDate, String endDate, String handle)

      .setFilters("ga:eventCategory==bitstream;ga:eventAction==download;ga:pagePath=~" + handle + "/")

      This is looking for downloads that happened to a pagePath that contains this handle, but the pagePath doesn't have parent comm, coll, item information. A bitstream download just shows the bitstream download url / current url.

      nvps.add(new BasicNameValuePair("dp", ue.getRequest().getRequestURI()));

      SOLR Stats, and ElasticSearch Stats both have a route to include parent hierarchy information.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            peterdietz Peter Dietz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: