diff --git a/app/assets/config/manifest.js b/app/assets/config/manifest.js index 2dab810..2e9343d 100644 --- a/app/assets/config/manifest.js +++ b/app/assets/config/manifest.js @@ -1,5 +1,4 @@ //= link_tree ../images //= link application.css //= link application.js -// -//= link matomo.js \ No newline at end of file +// \ No newline at end of file diff --git a/app/assets/javascripts/matomo.js b/app/assets/javascripts/matomo.js deleted file mode 100644 index ef63820..0000000 --- a/app/assets/javascripts/matomo.js +++ /dev/null @@ -1,26 +0,0 @@ -var idSite = 1; -var matomoTrackingApiUrl = 'https://matomo.pfischbeck.de/matomo.php'; - -var _paq = window._paq || []; -_paq.push(['setTrackerUrl', matomoTrackingApiUrl]); -_paq.push(['setSiteId', idSite]); -_paq.push(['trackPageView']); -_paq.push(['enableLinkTracking']); - -// Send Matomo a new event when navigating to a new page using Turbolinks -// (see https://developer.matomo.org/guides/spa-tracking) -(function() { - var previousPageUrl = null; - addEventListener('turbolinks:load', function(event) { - if (previousPageUrl) { - _paq.push(['setReferrerUrl', previousPageUrl]); - _paq.push(['setCustomUrl', window.location.href]); - _paq.push(['setDocumentTitle', document.title]); - if (event.data && event.data.timing) { - _paq.push(['setGenerationTimeMs', event.data.timing.visitEnd - event.data.timing.visitStart]); - } - _paq.push(['trackPageView']); - } - previousPageUrl = window.location.href; - }); -})(); \ No newline at end of file diff --git a/app/views/about/privacy.de.html.erb b/app/views/about/privacy.de.html.erb index eaff58a..6b8f0ca 100644 --- a/app/views/about/privacy.de.html.erb +++ b/app/views/about/privacy.de.html.erb @@ -26,14 +26,6 @@ Bei Besuch dieser Webseite werden zwangsweise folgende Daten übertragen:

Die oben beschriebenen Daten werden höchstens 24 Stunden gespeichert und anschließend gelöscht.

-Diese Webseite verwendet Matomo (ehemals Piwik) zur Auswertung von Besucherzugriffen. Matomo verwendet Cookies zur Analyse. -Die IP-Adresse wird auch vor der Speicherung anonymisiert. Sämtliche Daten werden auf Servern in Deutschland gespeichert. Sie können hier die Nutzung von Matomo deaktivieren. - - -

Anmeldung über GitHub

Wenn sich der Besucher über ein GitHub-Konto anmeldet, so wird in einer Datenbank ein Eintrag für diesen Nutzer angelegt. In dem Eintrag wird eine Referenznummer auf das GitHub-Konto, der Anzeigename sowie das Datum des letzten Logins gespeichert. Zusätzlich werden Informationen gespeichert, die dem Besucher ein Fortsetzen der letzten Sitzung ermöglicht.

@@ -53,3 +45,5 @@ Sie haben das Recht auf
  • Widerspruch gegen die Verarbeitung Ihrer Daten bei uns (Art. 21 DSGVO) und
  • Datenübertragbarkeit, sofern Sie in die Datenverarbeitung eingewilligt haben oder einen Vertrag mit uns abgeschlossen haben (Art. 20 DSGVO).
  • + +Wenden Sie sich für Anfragen an die oben genannte E-Mail-Adresse. \ No newline at end of file diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index e820926..999abaa 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -6,10 +6,6 @@ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> <%= javascript_include_tag 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS_HTML-full,Safe', 'data-turbolinks-track' => true %> - <% if Rails.env.production? %> - <%=javascript_include_tag 'https://matomo.pfischbeck.de/matomo.js', async: true, defer:true %> - <%= javascript_include_tag 'matomo', 'data-turbolinks-track' => true %> - <% end %> <%= csrf_meta_tags %> diff --git a/config/initializers/content_security_policy.rb b/config/initializers/content_security_policy.rb index e6302f3..7accdc4 100644 --- a/config/initializers/content_security_policy.rb +++ b/config/initializers/content_security_policy.rb @@ -7,12 +7,11 @@ Rails.application.config.content_security_policy do |policy| policy.default_src :none policy.font_src :self, 'https://cdnjs.cloudflare.com' - policy.img_src :self, 'https://cdnjs.cloudflare.com', 'https://projecteuler.net', 'https://matomo.pfischbeck.de' + policy.img_src :self, 'https://cdnjs.cloudflare.com', 'https://projecteuler.net' policy.object_src :none - policy.script_src :self, 'https://cdnjs.cloudflare.com', 'https://matomo.pfischbeck.de' + policy.script_src :self, 'https://cdnjs.cloudflare.com' policy.style_src :self, :unsafe_inline policy.connect_src :self - policy.frame_src 'https://matomo.pfischbeck.de' # Specify URI for violation reports # policy.report_uri "/csp-violation-report-endpoint"