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

Browsers block Google Analytics on the site www.yiiframework.com #1035

Open
gmdmi opened this issue Aug 22, 2022 · 0 comments
Open

Browsers block Google Analytics on the site www.yiiframework.com #1035

gmdmi opened this issue Aug 22, 2022 · 0 comments
Assignees
Labels

Comments

@gmdmi
Copy link
Contributor

gmdmi commented Aug 22, 2022

What steps will reproduce the problem?

Follow the https://www.yiiframework.com and open the web-console.

Chromium console:
Refused to load the script 'https://www.googletagmanager.com/gtag/js?id=G-707ZP35KCT' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-inline' https://kiwiirc.com".


I think it is necessary to add https://www.googletagmanager.com to the Content-Security-Policy response header, directive script-src to the production nginx site config.

@samdark samdark added the bug label Aug 22, 2022
@cebe cebe self-assigned this Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants