Aggiunge cookie policy, banner consenso e Google Analytics opzionale.
Il banner consente solo necessari o tutti i cookie; GA4 si carica solo dopo consenso. Aggiornati privacy, footer, sitemap e variabile GOOGLE_ANALYTICS_MEASUREMENT_ID. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -140,5 +140,13 @@ module MatchLiveTv
|
||||
def replay_download_url_ttl_seconds
|
||||
ENV.fetch("REPLAY_DOWNLOAD_URL_TTL_SECONDS", "900").to_i
|
||||
end
|
||||
|
||||
def google_analytics_measurement_id
|
||||
ENV["GOOGLE_ANALYTICS_MEASUREMENT_ID"].presence
|
||||
end
|
||||
|
||||
def google_analytics_configured?
|
||||
google_analytics_measurement_id.present?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -116,6 +116,8 @@ Rails.application.routes.draw do
|
||||
get "prezzi", to: "pages#pricing", as: :prezzi
|
||||
get "pricing", to: redirect("/prezzi")
|
||||
get "privacy", to: "pages#privacy", as: :privacy
|
||||
get "cookie", to: "pages#cookies", as: :cookies
|
||||
get "cookies", to: redirect("/cookie")
|
||||
get "termini", to: "pages#terms", as: :termini
|
||||
get "signup", to: "registrations#new"
|
||||
post "signup", to: "registrations#create"
|
||||
|
||||
Reference in New Issue
Block a user