Build a self-hosted click and scroll heatmap for a site you own. Two parts. Collector: a small JavaScript file (target under 5 KB, no dependencies) served from the same origin as the site. On each page it records click events as a CSS selector path plus a percentage offset within that element's bounding box, never as raw viewport pixels, so the data stays valid when the layout reflows on a different screen size. It also records the deepest scroll position reached, as a percentage of document height, sampled on unload. It sends a single batched beacon per page view. It records nothing at all until a consent flag is set by the host page, and it never reads input values, text content, or the clipboard. Dashboard: a small server that ingests those beacons, stores them in PostgreSQL keyed by page path plus device bucket (mobile / tablet / desktop), and renders two overlays on a screenshot of the page the user uploads or that a headless browser captures: a click density map, and a horizontal line marking where each decile of visitors stopped scrolling. Filter by date range and device bucket. Show the raw per-selector click counts in a table underneath, because the table is what you act on and the picture is what you show other people. Strip IP addresses to a country code at ingest and discard the rest. Do not set a cookie; count sessions with a rotating daily salt hashed against the user agent. Out of scope, and say so plainly in the README: session replay and any form of DOM recording, live chat, surveys, and funnels. A replay pipeline that has not been audited for what it captures is a data breach waiting to happen, and it is not something to add casually to a personal build.