Surfacing Google Analytics in DSpace Claire Knowles University of Edinburgh Repositories Support Project Webinar 26 th February 2013
Putting Analytics into DSpace Sign up for an account Get the tracking code Put the tracking code into DSpace Watch your statistics accumulate Google Account Tracking ID: UA var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA ']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = (' == document.location.protocol ? ' : ' + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); Insert into header-default.jsp Added to dspace.cfg
Google Analytics Dashboard
Making the hidden visible
Tracking Downloads Google Analytics only tracks web pages Change DSpace to capture downloads Can be viewed in Google Analytics Dashboard Only capture visitors to the website Redirect downloads from Google search Reposition download link
Google Analytics API Real-time Quotas – 50,000 requests per project per day – 10 queries per second (QPS) per IP Authorization (Server Side) Changes
Query Explorer
Analytics Queries Testing the API Compare to dashboard Review by repository managers Regular Expressions Limitations due to DSpace Handle based URIs and query length Some results are filtered within DSpace
Google Charts Lots of different charts Easy to use Can test online Re-usable for other statistics Good feedback Use with tables
Collection Level Statistics Collected nightly Show statistics for the past 12 months Top 10 items page views Top 10 downloaded files
Repository Level Statistics Default past 12 months – can select date Total number of page views per month Total number of downloads per month Top 10 communities Top 10 collections Top 10 items Top 10 downloads Top countries – interactive map
ERA Top Country Views Screenshot from
ERA – top item page views and downloads
Item Level Statistics
What’s next? Analysis of Analytics Data More GA statistics – Item level DSpace Internal Statistics – Sconul stats DSpace 4 – e+Analytics+Statistics+in+DSpace
Thanks Colleagues at University of Edinburgh All SDLC Partners: – Aberdeen University – Heriot Watt University – Robert Gordon University – University of St Andrews – University of Abertay Previous work in DSpace – Graham Triggs at OR2010 (BioMed) statistics-google-analytics-and-visualization-apishttp:// statistics-google-analytics-and-visualization-apis – Stuart Lewis dspace/ dspace/ – Stuart Wood and Gareth Johnson of University of Leicester for information on the URLrewrite UK Council of Research Repositories Claire Knowles, University of Edinburgh - Surfacing Google Analytics in DSpace - Open Repositories 2012
Images you-need-to-ask-before-selecting-your-b2b-marketing-provider (Question Mark) you-need-to-ask-before-selecting-your-b2b-marketing-provider (Submarine) using-legos.html (Lego Robin) using-legos.html (Richard Trevithick doodle) (SDLC logo) (ERA Screenshots) (Dashboard Screenshots) Claire Knowles, University of Edinburgh - Surfacing Google Analytics in DSpace - Open Repositories 2012