Aggiunge heatmaps first-party (click/scroll) con pagina admin Analytics.

Raccoglie eventi aggregati dietro consenso cookie, senza PII né tracking su admin/regia/live/replay; GA4 resta invariato.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-20 22:50:15 +02:00
co-authored by Cursor
parent cc96c0396a
commit 8a07c5d569
36 changed files with 1247 additions and 14 deletions
+4
View File
@@ -76,6 +76,8 @@ Rails.application.routes.draw do
post "internal/validate_publish", to: "webhooks/mediamtx#validate_publish"
post "analytics/events", to: "analytics/events#create"
namespace :admin do
get "login", to: "auth#new", as: :login
post "login", to: "auth#create"
@@ -127,6 +129,8 @@ Rails.application.routes.draw do
delete :clear_kill_switch
end
end
get "analytics", to: "analytics#index", as: :analytics
get "analytics/page", to: "analytics#show", as: :analytics_page
get "youtube/platform", to: "youtube#platform", as: :youtube_platform
end