Hi-
We followed these instructions to enable Google Analytics in Dspace:
https://wiki.duraspace.org/display/DSDOC5x/DSpace+Google+Analytics+Statistics

Is there something else we need to do to enable the downloads portion or is our 
customization in the item-view.xsl screwing things up?

Thanks,
s
-
Susan Borda
Digital Technologies Development Librarian
Montana State University Library
406-994-1873



From: Andrea Schweer <[email protected]<mailto:[email protected]>>
Date: Wednesday, November 18, 2015 at 12:45 PM
To: Susan Borda <[email protected]<mailto:[email protected]>>, 
"[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: Re: [dspace-community] google-stats File Downloads

Hi Susan,

On 18/11/15 09:28, Borda, Susan wrote:
Hi again-
We were tracking file downloads via Google Analytics starting in 10/2014 up 
until 06/2015, but our "File Downloads" in "google-stats" are showing 0 for all 
months including those when we were tracking.

http://scholarworks.montana.edu/xmlui/handle/1/2999/google-stats

According to Google Analytics we should have 464 downloads during that time. 
Should "google-stats" be able to pull that data from Google Analytics just like 
it does for "Page Views" or is something not enabled correctly with Google 
stats in our Dspace instance?

>From your other e-mail, it looks like you're using custom code to track 
>downloads. I'd guess that your custom code sends the download events in a 
>slightly different way from what the google-stats aspect expects.

This is probably starting to get into dspace-tech territory, but you can see 
the query that's built for bitstream downloads here: 
https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/google/GoogleQueryManager.java#L43:
ga:eventCategory==bitstream;ga:eventAction==download;ga:pagePath=~"+ handle + 
"/"

So it looks like this is looking for events with a category of "bitstream" and 
action of "download" on the current page. Your custom code from your other 
e-mail sends

onclick="ga('send', 'event', 'File Downloads', 'Click', 'View/Open');"

I'm guessing "File downlaods" is the category and "Click" the action, so 
there's a mismatch right there -- Google Analytics doesn't "know" that these 
are the same thing.

cheers,
Andrea


--
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand
+64-7-837 9120

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/dspace-community.
For more options, visit https://groups.google.com/d/optout.

Reply via email to