-
Notifications
You must be signed in to change notification settings - Fork 14
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 Plausible statistics-counter to all HTML pages #278
Comments
:bump: I highly recommend this, because if you want the data later, you'll have to have set it up earlier. Here's what the output looks like for Awkward Array's documentation: We learn, for instance, that there's a strong weekday/weekend effect—people who are working— Footnotes
|
Thanks Jim. Very interesting! I was going to make the comment that Europe is indeed the sum of several. Overall the difference Europo-US is not that large. But I was expecting quite more hits from Switzerland for people posted at CERN; that's unexpected. I have no idea why Windows is so prominent. Is it because several colleagues have Windows laptops or rather desktops in the office. I do but know I am a clear minority around me. A couple of questions:
|
Thanks for the ping, this is indeed very interesting. I should try to add that to the iminuit docs. |
@eduardo-rodrigues and @HDembinski, you need to be able to access https://views.scientific-python.org/, and you might need to contact Stéfan van der Walt (webpage, GitHub, Discord: stefanv#0829) for that. I had this conversation with him (last year) on Discord. We don't need any additional help (beyond accessing the dashboard) for the generic Scikit-HEP pages; we just need to get this text into the HTML of all the pages: <script defer data-domain="scikit-hep.org" src="https://views.scientific-python.org/js/plausible.js"></script> The Since iminuit has a large community apart from Scikit-HEP (not disjoint, but another large cluster), I think you'll want a specialized |
@jpivarski I assume this is related to the scikit-hep.org website. Do you also know how I can inject the line In Markdown, it is possible inject arbitrary html code into the markdown code, but my docs are written in RST and I don't know how to do that in RST. |
It looks like you could use this Sphinx extension: sphinx-plausible. I also looked up "Google Analytics in Sphinx" and found this, since it's a matter of adding a I don't know that it needs to be in the |
@jpivarski while I'm going to try to use sphinx-plausible can you link to the PR that you used for Awkward? |
Woops never mind. This is scikit-hep/awkward#1822. |
pyhf is now reporting at: https://views.scientific-python.org/pyhf.readthedocs.io/ |
Stefan gave us a
data-domain
for scikit-hep.org; this snippet should be added to every HTML page:It doesn't matter where on the page it appears (see a long conversation I had with myself here: scikit-hep/awkward#1819), and I think the
defer
could be replaced byasync
. You just need to find a template that gets rendered on every page you care about. (In my long conversation, I decided that I didn't care about redirects, but that's up to you.) There are templates in _includes and _layouts.By the way—context for anyone seeing this without background—this is a follow-up of a discussion we had on the Scikit-HEP administrators list. The scientific-python.org organization is providing website statistics through Plausible, which we can use on our documentation sites. The reason we want it is to get a sense of what our users are interested in. In particular, the Awkward Array library is organized as a collection of
ak.*
functions, each with its own page; if we find 100× more website traffic toak.this
thanak.that
, then we'll know thatak.this
is more important (should get more developer attention) thanak.that
. The usefulness to the scikit-hep.org pages is different: "Are users looking at 'Project News'? 'Packages'? 'User Information'? ...)In the presentations at SciPy, they said that Plausible is less intrusive than Google Analytics (which I've used in the past). In particular, Google Analytics violates some regulations in Europe, but Plausible does not. So the choices seem to be well thought-through.
The text was updated successfully, but these errors were encountered: