diff --git a/backend/app/controllers/public/pages_controller.rb b/backend/app/controllers/public/pages_controller.rb index 24891ff..e1efb79 100644 --- a/backend/app/controllers/public/pages_controller.rb +++ b/backend/app/controllers/public/pages_controller.rb @@ -30,6 +30,9 @@ module Public def terms end + def cookies + end + def faq end diff --git a/backend/app/controllers/public/sitemap_controller.rb b/backend/app/controllers/public/sitemap_controller.rb index c9739c6..e547e92 100644 --- a/backend/app/controllers/public/sitemap_controller.rb +++ b/backend/app/controllers/public/sitemap_controller.rb @@ -10,6 +10,7 @@ module Public { loc: "#{base}/faq", changefreq: "monthly", priority: "0.8" }, { loc: "#{base}/live", changefreq: "hourly", priority: "0.85" }, { loc: "#{base}/privacy", changefreq: "yearly", priority: "0.3" }, + { loc: "#{base}/cookie", changefreq: "yearly", priority: "0.3" }, { loc: "#{base}/termini", changefreq: "yearly", priority: "0.3" } ] diff --git a/backend/app/helpers/legal_helper.rb b/backend/app/helpers/legal_helper.rb index b1d9db3..c0b8857 100644 --- a/backend/app/helpers/legal_helper.rb +++ b/backend/app/helpers/legal_helper.rb @@ -1,5 +1,9 @@ module LegalHelper def legal_last_updated - "26 maggio 2026" + "3 giugno 2026" + end + + def cookie_policy_last_updated + "3 giugno 2026" end end diff --git a/backend/app/views/layouts/marketing.html.erb b/backend/app/views/layouts/marketing.html.erb index f0963ec..88e6de9 100644 --- a/backend/app/views/layouts/marketing.html.erb +++ b/backend/app/views/layouts/marketing.html.erb @@ -8,9 +8,10 @@ <%= render "shared/meta_tags" %> <%= yield :head %> - + - + data-ga-id="<%= MatchLiveTv.google_analytics_measurement_id %>"<% end %>> + <%= render "shared/cookie_banner" %> <%= render "shared/marketing_nav" %>
<% if flash[:notice] %>
<%= flash[:notice] %>
<% end %> @@ -21,5 +22,6 @@ + diff --git a/backend/app/views/layouts/marketing_live.html.erb b/backend/app/views/layouts/marketing_live.html.erb index e17ce62..884df17 100644 --- a/backend/app/views/layouts/marketing_live.html.erb +++ b/backend/app/views/layouts/marketing_live.html.erb @@ -6,15 +6,17 @@ <%= content_for?(:title) ? yield(:title) : "Match Live TV" %> <%= render "shared/meta_tags" %> - + <%= yield :head %> - + data-ga-id="<%= MatchLiveTv.google_analytics_measurement_id %>"<% end %>> + <%= render "shared/cookie_banner" %> <%= render "shared/marketing_nav" %>
<%= yield %>
<%= render "shared/marketing_footer" %> + diff --git a/backend/app/views/public/pages/cookies.html.erb b/backend/app/views/public/pages/cookies.html.erb new file mode 100644 index 0000000..680374c --- /dev/null +++ b/backend/app/views/public/pages/cookies.html.erb @@ -0,0 +1,150 @@ +<% content_for :title, "Cookie policy — Match Live TV" %> +<% content_for :meta_description, "Cookie policy di Match Live TV: cookie tecnici, sessione, Google Analytics e gestione del consenso." %> +<% content_for :canonical_url, seo_absolute_url(public_cookies_path) %> + + diff --git a/backend/app/views/public/pages/privacy.html.erb b/backend/app/views/public/pages/privacy.html.erb index 1c61be3..9863a9f 100644 --- a/backend/app/views/public/pages/privacy.html.erb +++ b/backend/app/views/public/pages/privacy.html.erb @@ -171,8 +171,12 @@

11. Cookie e tecnologie simili

- Il sito utilizza cookie tecnici necessari al funzionamento (es. sessione di login) e, in futuro, - eventuali strumenti di analisi solo previo consenso ove richiesto. Per dettagli aggiornati contatta il titolare. + Il sito utilizza cookie tecnici necessari (sessione di login, sicurezza, memorizzazione delle preferenze cookie) + e, previo consenso tramite il banner, Google Analytics per statistiche aggregate. +

+

+ Puoi gestire le preferenze in qualsiasi momento dal link «Gestisci cookie» nel footer + o consultare la <%= link_to "Cookie policy", public_cookies_path %>.

diff --git a/backend/app/views/shared/_cookie_banner.html.erb b/backend/app/views/shared/_cookie_banner.html.erb new file mode 100644 index 0000000..f0fb32d --- /dev/null +++ b/backend/app/views/shared/_cookie_banner.html.erb @@ -0,0 +1,21 @@ + diff --git a/backend/app/views/shared/_marketing_footer.html.erb b/backend/app/views/shared/_marketing_footer.html.erb index 04fe1a6..7c30f2f 100644 --- a/backend/app/views/shared/_marketing_footer.html.erb +++ b/backend/app/views/shared/_marketing_footer.html.erb @@ -8,7 +8,9 @@ <%= link_to "Dirette", public_live_index_path %> · <%= link_to "FAQ", public_faq_path %> · <%= link_to "Privacy", public_privacy_path %> · + <%= link_to "Cookie", public_cookies_path %> · <%= link_to "Termini", public_termini_path %> + ·