Skip to content

Web

Heatmaps

Optional click collection — which elements get the most clicks, without recording sessions.

Enable

Click tracking is optional. Enable it with data-heatmap="true" on the script tag:

<script defer src="https://trackd.one/t.js" data-website="YOUR_WEBSITE_ID" data-heatmap="true"></script>

Every click is then recorded — at most 100 clicks per pageview (in single-page apps the count restarts with every navigation). The dashboard shows which HTML elements get the most clicks: buttons, links, images, form fields etc.

Each click sends:

  • url and pathname — the cleaned page address and path (as for the pageview, hash routes included)
  • x_pct, y_pct — the click position in percent of page width and height
  • element_tag — the HTML element type, e.g. button, a, img
  • viewport_width — the window width in pixels, so clicks can be analysed by screen size (the only device property the script reads — and only with heatmaps enabled)

What is not collected

No screenshots or content are captured and clicks are not attributed to a visitor. Individual sessions are not recorded. Heatmap clicks use a separate allowance and do not count towards your plan’s events.

Ready in minutes

Start the 7-day free trial (no credit card), add your website or app, copy the snippet.

Start free trial