Skip to content

Content Security Policy support for Google Tag Manager #2922

Closed as not planned

Description

@swetankrathi

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.

Activity

  1. lovelydinosaur commented on Apr 12, 2024

    @lovelydinosaur
    Collaborator

    Let's close this off in favor of #3630

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions