# Non riesco a far funzionare Google Tag Manager

**URL:** <https://meta.discourse.org/t/cant-get-google-tag-manager-to-work/274805>\
**Category:** Data & reporting\
**Tags:** analytics\
**Created:** [11 Agosto 2023, 2:52pm UTC](https://meta.discourse.org/t/cant-get-google-tag-manager-to-work/274805 "2023-08-11T14:52:14Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Nikolaos\_SP](https://avatars.discourse-cdn.com/v4/letter/n/b9e5f3/32.png) [@Nikolaos\_SP](https://meta.discourse.org/u/Nikolaos_SP)\
**Post date:** [11 Agosto 2023, 2:52pm UTC](https://meta.discourse.org/t/cant-get-google-tag-manager-to-work/274805/1 "2023-08-11T14:52:14Z")

</div>

Ciao!

Non riusciamo a configurare GTM affinché funzioni sul nostro forum: [https://forum.warthunder.com/](https://forum.warthunder.com/)

Come puoi vedere, c’è un errore relativo alla content security policy.

```plaintext
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src https://forum.warthunder.com/logs/ https://forum.warthunder.com/sidekiq/ https://forum.warthunder.com/mini-profiler-resources/ https://forum.warthunder.com/assets/ https://forum.warthunder.com/brotli_asset/ https://forum.warthunder.com/extra-locales/ https://forum.warthunder.com/highlight-js/ https://forum.warthunder.com/javascripts/ https://forum.warthunder.com/plugins/ https://forum.warthunder.com/theme-javascripts/ https://forum.warthunder.com/svg-sprite/ https://www.googletagmanager.com/gtm.js 'nonce-857b78b0187f8ee53100212842747417' 'sha256-HZxBMVZe6P3MvHDZlFai9cUmLH+qwX6BNT3qTwNPATg='". Either the 'unsafe-inline' keyword, a hash ('sha256-93qwY4D574Ysts67Kmc0jpUYGBwBuG9q6hhQl+Kk9us='), or a nonce ('nonce-...') is required to enable inline execution.

```

Gli URL sono corretti nell’header CSP e il nonce è corretto.

Sai qual è il problema?

Grazie.

---

_[View the full topic](https://meta.discourse.org/t/cant-get-google-tag-manager-to-work/274805)._
