Visualizing Global Impact - LITA 2016

4 downloads 86026 Views 223KB Size Report
Ruby on Rails. - Build the web application. - Google Maps ... ... Asset. - rm.js.erb: draw the Google Map and display recent visits ...
Visualizing Global Impact of an Institutional Repository Hui Zhang LITA Forum 2016

Showcasing IR impacts

- Usage statistics by item - Usage statistics by school and/or department - Altmetrics

Showcasing IR impact: From spreadsheet

Showcasing IR impacts: To visualization

An ‘Open’ Readership Map

- Open source - Use free technology and service - Detach from backend repository

Technology infrastructure

- Google Analytics and API - Track web visits - Access Google Analytics data with API - Ruby on Rails - Build the web application

Tracking Download Event in DSpace • Locate item-view.xsl • Tracking download as event with following snippet inserted trackDownload(this) xmlui.dri2xhtml.METS-1.0.item-files-viewOpen function trackDownload(link) {_gaq.push(['_trackEvent', 'Bitstream', 'Download', link.href]); setTimeout('document.location = "' + link.href + '"', 200); return false;}

Access Google Analytics data with API -

-

Script running on the server side that requires authentication with OAuth -

Create a service account with Google API

-

Use the private key for authentication

We use the Google API Ruby Client -

-

https://github.com/google/google-api-ruby-client

Google Analytics Query Explorer -

A user-friendly web tool for building Google Analytics API queries

Rails application -

Model - Location, reader, timestamp - rails g model reader time:datetime:index country:string region:string city:string latitude:float longitude:float title:text uri:text activity:string count:integer

-

App -

data_controller.rb: access Google Analytics with API, store results into mysql cache database

-

Asset -

rm.js.erb: draw the Google Map and display recent visits

Code repository in github - https://github.com/zhang4952/Readership-map

- Thanks Camden Lopez!

Demonstration http://readershipmap-dev.library.oregonstate.edu/

Next steps - Embed the readership-map to the homepage of IR - Run a web-based user survey

Thanks! [email protected]