[Archivesspace_Users_Group] Google Analytics
Ben Goldman
bmg17 at psu.edu
Thu Sep 17 10:01:41 EDT 2015
Hey Chris,
This is great. Can you confirm whether this is applicable to the staff interface too or are these instructions aimed at tracking usage in the public interface?
Thanks,
Ben
Ben Goldman
Digital Records Archivist &
Sally W. Kalin Early Career Librarian for Technological Innovations
Penn State University Libraries
From: "Chris Fitzpatrick" <Chris.Fitzpatrick at lyrasis.org>
To: "Archivesspace Users Group (archivesspace_users_group at lyralists.lyrasis.org)" <archivesspace_users_group at lyralists.lyrasis.org>, "Aiden Faust" <afaust at ubalt.edu>
Sent: Thursday, September 17, 2015 9:00:18 AM
Subject: [Archivesspace_Users_Group] Google Analytics
Hi,
There was a request on how to enable google analytics in ASpace. I was going to write a plugin for this, but it's actually so simple, it might be easiest just to use the local plugin instead of having a dedicated plugin.
Steps:
1) Enroll in Google Analytics, register your site ( you don't need to include the port number in the URL ) , and get your tracking code ( it'll be a block of javascript )
2) Ensure that the local plugin is enabled in your config/config.rb ( it is by default )
3) add your tracking code to a file called plugins/local/public/views/layout_head.html.erb
4) Restart ASpace
Once the server restarts, you should start seeing traffic come in on the real time app window.
best, Chris.
Chris Fitzpatrick | Developer, ArchivesSpace
Skype: chrisfitzpat | Phone: 918.236.6048
http://archivesspace.org/
_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20150917/c5b21d34/attachment.html>
More information about the Archivesspace_Users_Group
mailing list