[ 
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
> --------------------------------------------------------
>
>                 Key: DS-1190
>                 URL: https://jira.duraspace.org/browse/DS-1190
>             Project: DSpace
>          Issue Type: Improvement
>          Components: JSPUI
>            Reporter: Robin Taylor
>            Assignee: Robin Taylor
>             Fix For: 3.0
>
>
> Allow the user to turn on GA tracking by configuration.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.duraspace.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to