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

Enable google analytics #30

Open
naveen521kk opened this issue Dec 8, 2021 · 4 comments
Open

Enable google analytics #30

naveen521kk opened this issue Dec 8, 2021 · 4 comments
Assignees

Comments

@naveen521kk
Copy link
Member

I think it would be great to know how many people viewed the website. Using google analytics may be an option, but I would like to respect the browser do not track feature in which case google analytics isn't loaded. This is much similar to how it's done in RTD(https://assets.readthedocs.org/static/javascript/readthedocs-analytics.js).

@naveen521kk naveen521kk changed the title Add google analytics Enable google analytics Dec 8, 2021
@naveen521kk naveen521kk self-assigned this Dec 8, 2021
@cobordism
Copy link
Member

cobordism commented Dec 9, 2021

Is there a way to do this without google? (maybe without any other tracking JS code)

If you only want to know how many people viewed the site (and a bunch of other data) you do not need any tracking code at all, you can just analyse server logs.

https://plausible.io/blog/google-analytics-alternatives

@naveen521kk
Copy link
Member Author

Is there a way to do this without google? (and without any other tracking JS code)

Dunno, tbh. Google Analytics exists on the docs also and uses the code I linked in the original description.

If you only want to know how many people viewed the site (and a bunch of other data) you do not need any tracking code at all, you can just analyse server logs.

I don't think Github Pages provides server logs for us to view. It doesn't even show how many people visited our site, that's why I want to use some javascript based analytics site. Or should we search for a hosting provider which shows us these analytics? (IIRC, Netlify and Vercel had something similar but it's in their paid plan though). Also, while building the site we would need Manim to be installed; not sure how that can be done on their servers.

@naveen521kk
Copy link
Member Author

Found https://www.cloudflare.com/web-analytics/ and https://www.simpleanalytics.com/ which are better in terms of privacy as compared to Google Analytics. Cloudflare analytics is free, but the other one is paid, maybe we ask for a free plan?

@cobordism
Copy link
Member

Meanwhile Google analytics has been declared illegal in parts of Europe. Most recently, Italy joined the list next to France and Austria.
https://chromeunboxed.com/google-analytics-banned-italy-europe

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