Google analytics.js and Content Security Policy
I have a web app using the default html5boilerplate Content Security Policy. However, we have the new Google analytics.js snippet on the page, which is being blocked by the CSP. I've been trying to find an example of a CSP and JS include structure that will allow Google analytics.js, but haven't had any luck. The closest SO post is Google Analytics and Content-Security-Policy header , but this is using the older ga.js. Unfortunately the Google Docs don't mention CSP. I've reached the following solution though: Bottom of my html file: <script type="text/javascript" src="/js/analytics.js"><