[Archivesspace_Users_Group] Google Analytics
Chris Fitzpatrick
Chris.Fitzpatrick at lyrasis.org
Thu Sep 17 09:00:18 EDT 2015
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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20150917/010bfb1c/attachment.html>
More information about the Archivesspace_Users_Group
mailing list