[Archivesspace_Users_Group] Trying to get Google Analytics and Google Tag Manager running on our site but getting an error...

Blake Carver blake.carver at lyrasis.org
Thu Mar 26 10:42:25 EDT 2020


“[Error] Refused to load https://www.googletagmanager.com/gtag/js?id=UA-29990687-8 because it appears in neither the script-src directive nor the default-src directive of the Content Security Policy.”

Chances are good that the CSP is controlled at the firewall or the probably the webserver config. Content Security Policies come from things outside of ArchivesSpace, so I'd start with the webserver and then ask the firewall folks. It's a standard(ish) error and is not part of ArchivesSpace, you can read quite a bit about this out on the web.

________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Gadsby, Eric T. <egadsby at towson.edu>
Sent: Wednesday, March 25, 2020 1:35 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: [Archivesspace_Users_Group] Trying to get Google Analytics and Google Tag Manager running on our site but getting an error...


Hi,



So we added the two scripts to our  layout_head.html.erb but now we are getting the a browser error and no reports back to Google.  Here is the error:



“[Error] Refused to load https://www.googletagmanager.com/gtag/js?id=UA-29990687-8 because it appears in neither the script-src directive nor the default-src directive of the Content Security Policy.”



Is the an AS config error or something with our server’s firewall (our provider locks down things rather heavily)?  Any tips on where to start would be great!







[Towson University logo]<http://www.towson.edu/>

Eric T. Gadsby

Pronouns: he/him/his

IT Operations Specialist  |  Albert S. Cook Library

—

P: 410-704-3340

SMS: ‪443-338-3792
egadsby at towson.edu<mailto:egadsby at towson.edu>  |  libraries.towson.edu<http://www.towson.edu/https:/libraries.towson.edu>
 —



Confidentiality Notice: This message may contain information that is confidential, privileged, proprietary, or otherwise legally exempt from disclosure. If you are not the intended recipient, you are notified that you are not authorized to read, print, copy or disseminate this message, any part of it, or any attachments. If this message has been sent to you in error, please notify the sender by replying to this transmission, or by calling Albert S. Cook Library at 410-704-3340 .




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200326/7b248f9c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-Towson Uni.png
Type: image/png
Size: 3584 bytes
Desc: Outlook-Towson Uni.png
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200326/7b248f9c/attachment.png>


More information about the Archivesspace_Users_Group mailing list