crystal-lang / crystal-book

Crystal reference with language specification, manuals and learning materials
https://crystal-lang.org/reference
Other
392 stars 244 forks source link

Improve site (hosting + analytics) #448

Open j8r opened 3 years ago

j8r commented 3 years ago

I was questioning myself about the usefulness of Google Analytics, then thought the site could also be on GitHub Pages instead of S3.

This can be unrelated topics, but not that much because GH Pages provides basic stats.

The reasons to remove/switch from Google Analytics:

Switching to GitHub Pages provides this benefits:

As a disadvantage, this means using a subdomain instead of the current sub-bolder. According to https://blog.cloudflare.com/subdomains-vs-subdirectories-best-practices-workers-part-1/, the SEO will be similar.

asterite commented 3 years ago

I just don't think this is an existing pain point.

j8r commented 3 years ago

That's this type of things that are just ok, but doing them provides little benefits which accumulates over time. Few minutes and $ saved each month, in multiple years can be significant, especially for such organization.

We can say that's like most optimizations.

asterite commented 3 years ago

Manas is already using Google Analytics for this and they probably can compare view history over time without changing things. And the only ones who gets a benefit with this change is Manas because only they have access to it. So why do we need to change anything?

j8r commented 3 years ago

Because it may not be used at all? After a quick poll, as expected, most of us have blockers - why keep it? Also, why Manas gather stats on this site, which are furthermore biased?

Main arguments: better stats, less costs.

j8r commented 3 years ago

Don't get me wrong, if core members look at it to improve the site, I'm 100% fine, really!

ITwrx commented 3 years ago

One end user's perspective: using any analytics script (or SAAS hosting/service) which shares data with a third party is never desirable, and reflects poorly on the lang.

j8r commented 3 years ago

One regulation issue for the EU: https://crystal-lang.org/reference/ stores cookies regulated to analytics. A banner informing this is required. More details on the topic can be found at https://www.cookielawinfo.com/eu-cookie-law/.

Same issue with https://crystal-lang.org/, and potentially other parts of the site.

Related news, GitHub has removed non-essential cookies: https://github.blog/2020-12-17-no-cookie-for-you/.

SamantazFox commented 2 years ago

A banner informing this is required. More details on the topic can be found at https://www.cookielawinfo.com/eu-cookie-law/.

More than just a "cookie banner", the GDPR requires explicit user approval before using any tracking technology. And explicit means: "no dark pattern like 20 clicks to get to the «refuse» button".