Upgrade heatmaps stile Hotjar: movimenti mouse e anteprima pagina live.

Traccia i movimenti aggregati, overlay a gradienti sull’iframe della pagina e toggle click/move in admin.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-20 23:03:12 +02:00
co-authored by Cursor
parent 8a07c5d569
commit b84321346f
26 changed files with 361 additions and 96 deletions
+3 -1
View File
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.2].define(version: 2026_08_20_200000) do
ActiveRecord::Schema[7.2].define(version: 2026_08_20_210000) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
enable_extension "plpgsql"
@@ -61,6 +61,7 @@ ActiveRecord::Schema[7.2].define(version: 2026_08_20_200000) do
t.datetime "occurred_at", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "weight", default: 1, null: false
t.index ["event_type", "occurred_at"], name: "index_analytics_events_on_event_type_and_occurred_at"
t.index ["occurred_at"], name: "index_analytics_events_on_occurred_at"
end
@@ -74,6 +75,7 @@ ActiveRecord::Schema[7.2].define(version: 2026_08_20_200000) do
t.integer "click_count", default: 0, null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "move_count", default: 0, null: false
t.index ["day", "page_path", "device", "cell_x", "cell_y"], name: "index_analytics_page_cells_unique", unique: true
end