Skip to content

Conversation

@jarrodmillman
Copy link
Member

@jarrodmillman jarrodmillman commented Feb 1, 2022

Trying plausible analytics. We are using this for scipy.org, docs.scipy.org, and scientific-python.org. If this PR is merged, you will be able to view the analytics for numpy.org at https://views.scientific-python.org/numpy.org. The page is currently private, so you will need to create a plausible account and let @stefanv or me know what address you registered.

I don't know who currently has access to the google analytics, but we should make sure whoever is currently monitoring the google analytics is OK with using plausible.

@netlify
Copy link

netlify bot commented Feb 1, 2022

✔️ Deploy Preview for numpy-org ready!

🔨 Explore the source changes: 092e10d

🔍 Inspect the deploy log: https://app.netlify.com/sites/numpy-org/deploys/61faa3c52e319900080d0b25

😎 Browse the preview: https://deploy-preview-546--numpy-org.netlify.app/reports/lighthouse

@rgommers
Copy link
Member

rgommers commented Feb 1, 2022

Thanks Jarrod! Could I get an invite?

More importantly, I don't think it's working well, these numbers are definitely way too low, especially for the docs (should be O(100,000/day):

image

@stefanv
Copy link
Contributor

stefanv commented Feb 1, 2022

Two things: (1) we currently only track /devdocs and (2) Plausible does respect AdBlock, which takes down a further fraction.

@rgommers
Copy link
Member

rgommers commented Feb 1, 2022

Hmm yeah, I'd expect many/most people to use AdBlock (how can you tolerance browsing without it?). Kind of a strange decision, because this has nothing to do with ads. Any way to change that behavior?

Statistics should improve when we have Plausible integration in a release rather than only in devdocs, but it's still not great to throw away so much signal.

For the record, this is what Cloudflare says for numpy.org right now:

image

@stefanv
Copy link
Contributor

stefanv commented Feb 1, 2022

We can host the plausible script on scientific-python.org, which would be unlikely to be blocked (https://plausible.io/docs/proxy/introduction#are-you-concerned-about-missing-data). I can set that up tomorrow.

@rgommers
Copy link
Member

rgommers commented Feb 1, 2022

that sounds good, thanks

@stefanv
Copy link
Contributor

stefanv commented Feb 1, 2022

Looks like we're already doing that, so I'll have to check why adblock picks it up; could be the naming of the script.

@stefanv
Copy link
Contributor

stefanv commented Feb 1, 2022

EasyList contains:

/plausible.js$domain=~plausible.io
/plausible.outbound-links.js$domain=~plausible.io

So will have to rewrite the JavaScript name.

@InessaPawson
Copy link
Member

@jarrodmillman @stefanv First of all, thank you for finding an open source alternative to GA!

As someone who used to spend a lot of time on this type of analytics, I would be curious to compare results from both platforms for the next 2-3 months.

@stefanv
Copy link
Contributor

stefanv commented Feb 2, 2022

The analytics server had to be renamed to avoid uBlock, so now it is located at https://views.scientific-python.org. I also added a rewrite rule to serve the Javascript from a more innocuous location, and the hugo theme has been updated accordingly. This should take care of most adblock issues.

Copy link
Member

@InessaPawson InessaPawson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR looks good to me. I’m just thinking, maybe, we should keep Google Analytics for another month or two. In the past, regardless of the analytics platform, it took at least a month for new accounts to get more reliable data on website traffic.

@jarrodmillman
Copy link
Member Author

I added back google analytics. Since the theme no longer supports this, I added the necessary files to this repo (see #549). If this PR is merged, I will create an issue to make sure we don't forget to clean up this "temporary" fix when (or if) numpy.org decides to stop using google analytics.

@InessaPawson Do you have access to the google analytics (I don't)? If not, do you know who does?

@jarrodmillman
Copy link
Member Author

jarrodmillman commented Feb 2, 2022

I decided to merge this as it doesn't remove anything, everyone is interested in trying it out, and we need to merge it to compare it with google analytics. If this causes any issues, I will fix them or undo this change. To make sure we don't lose track, I created #550 where we can continue the discussion.

@jarrodmillman jarrodmillman merged commit 788f34d into numpy:main Feb 2, 2022
@InessaPawson
Copy link
Member

I added back google analytics. Since the theme no longer supports this, I added the necessary files to this repo (see #549). If this PR is merged, I will create an issue to make sure we don't forget to clean up this "temporary" fix when (or if) numpy.org decides to stop using google analytics.

Sounds great!

@InessaPawson Do you have access to the google analytics (I don't)? If not, do you know who does?

Yes, I do. @rgommers is another web team member who has it.

@InessaPawson
Copy link
Member

@jarrodmillman May I have an invite to the numpy.org plausible account?

@jarrodmillman jarrodmillman deleted the plausible branch March 14, 2022 19:13
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

Successfully merging this pull request may close these issues.

4 participants