# Error in Content Security Policy and gtag.js

**URL:** <https://meta.discourse.org/t/error-in-content-security-policy-and-gtag-js/186649>\
**Category:** Support\
**Created:** [April 13, 2021, 9:06am UTC](https://meta.discourse.org/t/error-in-content-security-policy-and-gtag-js/186649 "2021-04-13T09:06:27Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![vkalpias](https://avatars.discourse-cdn.com/v4/letter/v/e0b2c6/32.png) [@vkalpias](https://meta.discourse.org/u/vkalpias)\
**Post date:** [April 13, 2021, 10:30am UTC](https://meta.discourse.org/t/error-in-content-security-policy-and-gtag-js/186649/3 "2021-04-13T10:30:41Z")

</div>

We have a custom theme component that includes [https://www.googletagmanager.com/gtag/js?id=U\_XXX](https://www.googletagmanager.com/gtag/js?id=U_XXX)… manually. We were using the built-in discourse method before but took it out because we needed to add some additional gtag methods called before the analytics are included.

Maybe that CSP was set when we were using the built-in method and now it doesn’t remove it for some reason?

---

_[View the full topic](https://meta.discourse.org/t/error-in-content-security-policy-and-gtag-js/186649)._
