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

Add an option to opt out the global Google Analytics? #1221

Closed
xuhdev opened this issue Apr 12, 2015 · 1 comment
Closed

Add an option to opt out the global Google Analytics? #1221

xuhdev opened this issue Apr 12, 2015 · 1 comment

Comments

@xuhdev
Copy link

xuhdev commented Apr 12, 2015

It would be nice to add an option to opt out the global Google Analytics for individual projects.

@ericholscher
Copy link
Member

This will likely not be happening. We hope to remove GA globally at some point, but we need it to understand RTD for now.

fmdkdd added a commit to flycheck/flycheck that referenced this issue Aug 30, 2017
RTD injects a <script> tag in our HTML to load the Google Analytics script.
They don't provide an option to toggle analytics off, and don't intend to (see
readthedocs/readthedocs.org#1221).

We can still prevent the script from correctly loading by redefining
document.createElement to be no-op.
fmdkdd added a commit to flycheck/flycheck that referenced this issue Aug 30, 2017
RTD injects a <script> tag in our HTML to load the Google Analytics script.
They don't provide an option to toggle analytics off, and don't intend to (see
readthedocs/readthedocs.org#1221).

We can still prevent the script from correctly loading by redefining
document.createElement to be no-op.
fmdkdd added a commit to flycheck/flycheck that referenced this issue Sep 6, 2017
RTD injects a <script> tag in our HTML to load the Google Analytics script.
They don't provide an option to toggle analytics off, and don't intend to (see
readthedocs/readthedocs.org#1221).

We can still prevent the script from correctly loading by redefining
document.createElement to be no-op.
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