GTM 拒绝加载脚本,因为它违反了内容安全策略

您好,

我试图为 Discourse 添加新的 GTM 容器,但遇到了以下错误:

拒绝加载脚本 "https://forums.techsoup.org/_Incapsula_Resource?SWJIYLWA=719d34d31c8e3a6e6fffd425f7e032f3&ns=1&cb=1660101200",因为它违反了以下内容安全策略指令:"script-src https://forums.techsoup.org/logs/ https://forums.techsoup.org/sidekiq/ https://forums.techsoup.org/mini-profiler-resources/ https://forums.techsoup.org/assets/ https://forums.techsoup.org/brotli_asset/ https://forums.techsoup.org/extra-locales/ https://forums.techsoup.org/highlight-js/ https://forums.techsoup.org/javascripts/ https://forums.techsoup.org/plugins/ https://forums.techsoup.org/theme-javascripts/ https://forums.techsoup.org/svg-sprite/ https://www.googletagmanager.com/gtm.js 'nonce-0cac1a2cef90863cc692ed7f68c5f4f0'"。注意,未明确设置 'script-src-elem',因此使用 'script-src' 作为后备。

您需要向内容安全策略添加新脚本。

您能告诉我们如何与 Twitter 分析集成吗?