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 Browser Analytics #779

Closed
dstufft opened this issue Nov 20, 2015 · 3 comments
Closed

Add Browser Analytics #779

dstufft opened this issue Nov 20, 2015 · 3 comments

Comments

@dstufft
Copy link
Member

dstufft commented Nov 20, 2015

We'll want to add Google Analytics or something so that we can see traffic and browsers and such. This will most likely largely be done in pypi-theme.

@dstufft dstufft added this to the Become PyPI milestone Nov 20, 2015
@brainwane brainwane modified the milestones: 2) Launch: redirect pypi.python.org to pypi.io, 3) Feature parity with PyPI Jun 30, 2016
@nlhkabu
Copy link
Contributor

nlhkabu commented Jun 30, 2016

Surely we want this to be active on launch?

@dstufft
Copy link
Member Author

dstufft commented Jun 30, 2016

Yea we want this active on launch, but it's trivial to do so it shouldn't be hard, it'll just be dropping in a bit of JS into the template. The only hard part is our CSP policy.

@dstufft dstufft modified the milestones: 2) Launch: redirect pypi.python.org to pypi.io, 3) Feature parity with PyPI Jun 30, 2016
@brainwane
Copy link
Contributor

I asked for some clarification in IRC in #pypa-dev from Donald just now, and learned:

We already have metrics on legacy PyPI, so it's important to have analytics active in Warehouse at launch, so we don't miss data during the switch.

To abide by the content security policy, we need to figure out how to do GA without chunking some inline JS; our CSP policy instructs browsers to reject inline JavaScript in the HTML, only [allowing] linked scripts. In the worst case, we could relax the restrictions, but Donald would rather not do that.

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

3 participants