[Archivesspace_Users_Group] put Google Analytics code snippet in ASpace

Joshua D. Shaw Joshua.D.Shaw at dartmouth.edu
Fri Mar 20 09:35:42 EDT 2020

Hi Henry-

Its probably easiest to just insert the js in the erb file, since the erbs accept raw code (no need to escape) and the google snippet is unchanging. I'd just pop the snippet that Google provides right in there and you should be good to go!


From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Steele, Henry <Henry.Steele at tufts.edu>
Sent: Friday, March 20, 2020 9:09 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: [Archivesspace_Users_Group] put Google Analytics code snippet in ASpace

Have any of you successfully entered your Google Analytics code snippet JS in ASpace.  It goes in the layout head html erb, but I’m not sure how to include this since the existin code there just includes a Ruby tab with only the link as an attribute value.  Can I just put raw JS in here, inside a script tag?   Also, the GA code snippet has a link tag, but with the “async” attribute and I wasn’t sure how to include this.


Henry Steele

Systems Librarian

Tufts University Library Technology Services


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200320/16bd34a8/attachment.html>

More information about the Archivesspace_Users_Group mailing list