Closed revgum closed 7 years ago
related #274. branch restored at https://github.com/osulp/Scholars-Archive/commit/68be5f141566cdca56064c201dd87fb6e7c20c37
For the discussion of a 'good' solution, here is the Staccato tracker.rb: https://github.com/tpitale/staccato/blob/c77484d1ac01ab93559ab030611b3024db3f6c76/lib/staccato/tracker.rb that can be useful.
Per the discussion at the check-in on July 31:
http://lib-saapp1.library.oregonstate.edu/downloads/6d56zw708?locale=en
won't trigger GA download event because it does not render a HTML pageCurrent plan is to disable Hyrax Downloaded button event triggered by Javascript, and track all downloads through the downloads controller and send those stats to GA in the same form that Hyrax expects.
update downloads_controller.rb set category, action, and label to match the format that Sufia expects for the stats page to draw out the counts from the GA.
category = "Files" action = "Downloaded" label = "sufia:#{params[:id]}"