Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content Security Policy support for Google Tag Manager #2922

Closed
swetankrathi opened this issue Aug 10, 2022 · 1 comment
Closed

Content Security Policy support for Google Tag Manager #2922

swetankrathi opened this issue Aug 10, 2022 · 1 comment

Comments

@swetankrathi
Copy link

swetankrathi commented Aug 10, 2022

I am trying to setup Google Tag Manager(GTM) using this config

theme:
  name: readthedocs
  analytics:
    gtag: G-XXXXXXXXXX

However, this is working fine on local, there is Content Security Policy(CSP) issue with github pages as https://www.googletagmanager.com is not allowed in CSP.

Here is the screenshot
Screenshot 2022-08-10 at 1 02 56 PM

Can we add an option to config to allow https://www.googletagmanager.com in CSP? More on this can be found here.

@tomchristie
Copy link
Member

Let's close this off in favor of #3630

Including GA should be supported as a template override, not a config option.

@tomchristie tomchristie closed this as not planned Won't fix, can't repro, duplicate, stale Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants