[
https://jira.duraspace.org/browse/DS-1190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=25076#comment-25076 ]
Denys Slipetskyy commented on DS-1190:
--------------------------------------
I have added such feature to my institutional repository.
1) Created ga.jspf file with pasted tracking code for GA account
2) added extra parameter to dspace.config (in version 1.7), so it can be turned on/off
3) added include of that jspf to header-default.jsp with check of configuration parameter
Additionally, I had to make small modification to ItemTag.java to track Download/View actions (because part of HTML markup is there and you need to put JS event handler). Also I added extra parameter to config file for labeling the action in GA.
All modifications I've done for 1.7 branch, should not be hard to implement the same for 1.8.
I can provide necessary pieces of code, but will not be able to test them on 1.8 in near future.
> Add Google Analytics tracking code to header-default.jsp
> --------------------------------------------------------