[Archivesspace_Users_Group] put Google Analytics code snippet in ASpace
Steele, Henry
Henry.Steele at tufts.edu
Tue Mar 24 09:00:21 EDT 2020
Thanks all for your help with this. It worked
Henry Steele
Systems Librarian
Tufts University Library Technology Services
(617)627-5239
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> On Behalf Of Joshua D. Shaw
Sent: Friday, March 20, 2020 9:36 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] put Google Analytics code snippet in ASpace
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!
Joshua
________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> on behalf of Steele, Henry <Henry.Steele at tufts.edu<mailto:Henry.Steele at tufts.edu>>
Sent: Friday, March 20, 2020 9:09 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto: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.
Thanks
Henry Steele
Systems Librarian
Tufts University Library Technology Services
(617)627-5239
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200324/db820c66/attachment.html>
More information about the Archivesspace_Users_Group
mailing list