rsalzer / COVID_19_CH

Covid19-Cases in Switzerland visualized
39 stars 11 forks source link

Disclose use of Google analytics #12

Closed jeffallen closed 4 years ago

jeffallen commented 4 years ago

Hello, thank you for your work on this. While reading the HTML, thinking about how I might translate it to other national languages, I noticed you use Google Analytics. It would be nice if this was disclosed on the site. Here's advice from Google on that: https://support.google.com/analytics/answer/7318509?hl=de

rsalzer commented 4 years ago

Hello, thank you for pointing that out. I just used Analytics to see how many people use the visualisation. Do you know a less privacy-intrusive way to do that? I don't really like to include a long privacy-note or how could I do that without destroying the design of the site?

Regarding translations: The easiest way this would be done by a dictionary for each language. Here is an example: var de = { "hospitalised": "hospitalisiert"} var en = { "hospitalised": "hospitalisé"}

jeffallen commented 4 years ago

I was wondering if Github already tracks that for you. I found this: https://webapps.stackexchange.com/questions/103618/analytics-on-github-pages

For translation, I hope to send you a small proof of concept PR based on the technique at http://www.ab-weblog.com/en/internationalization-how-to-localize-html5-projects/

rsalzer commented 4 years ago

Unfortunately Github only tracks the visits on the repository itself. I added now an Opt-Out-Link at the bottom of the page.