Title: Google Tag Manager Code
Last modified: May 15, 2022

---

# Google Tag Manager Code

 *  Resolved [kat99](https://wordpress.org/support/users/kat99/)
 * (@kat99)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/google-tag-manager-code/)
 * Hello. When the visitors choose only necessary cookies, why is the google tag
   manager code still visible in the page source code?
    If they choose necessary
   cookies shouldn’t the tag manager tracking not be active? Thank you

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Johan Jonk Stenström](https://wordpress.org/support/users/jonkastonka/)
 * (@jonkastonka)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/google-tag-manager-code/#post-15648346)
 * Because it should be. 🙂 What happens is, it is not loaded since it’s blocked
   with [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP).
 *  Thread Starter [kat99](https://wordpress.org/support/users/kat99/)
 * (@kat99)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/google-tag-manager-code/#post-15648632)
 * Thank you so much for replying so quickly-
    May I ask.. do we need to do anything
   with the Content Security Policy, or is that set up as part of the plugin? If
   so, I love your plugin as I have beenn struggling to find a decent cookie plugin
   that actually gets the job done without spending hours, and being an expert in
   cookies and GDPR etc. Thank you! 🙂
 *  Plugin Author [Johan Jonk Stenström](https://wordpress.org/support/users/jonkastonka/)
 * (@jonkastonka)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/google-tag-manager-code/#post-15649638)
 * You’ll have to add the URLs of the things you want to allow on your site. Like
   Google Tag Manager for instance. Look at the Quickstart, and all most common 
   things are there, like Google Tag Manager for instance.
 *  Thread Starter [kat99](https://wordpress.org/support/users/kat99/)
 * (@kat99)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/google-tag-manager-code/#post-15649862)
 * Yes, your plugin dd that.
    Excellent – thank you very much.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Google Tag Manager Code’ is closed to new replies.

 * ![](https://ps.w.org/cookies-and-content-security-policy/assets/icon-256x256.
   png?rev=2414719)
 * [Cookies and Content Security Policy](https://wordpress.org/plugins/cookies-and-content-security-policy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookies-and-content-security-policy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookies-and-content-security-policy/)
 * [Active Topics](https://wordpress.org/support/plugin/cookies-and-content-security-policy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookies-and-content-security-policy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookies-and-content-security-policy/reviews/)

## Tags

 * [cookies](https://wordpress.org/support/topic-tag/cookies/)
 * [Tag Manager](https://wordpress.org/support/topic-tag/tag-manager/)

 * 4 replies
 * 2 participants
 * Last reply from: [kat99](https://wordpress.org/support/users/kat99/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/google-tag-manager-code/#post-15649862)
 * Status: resolved