---
name: "analytics_heatmap"
area: "analytics"
title: "See where people click and scroll"
price: "free"
method: "POST"
url: "https://api.conecto.chat/v1/tools/analytics_heatmap"
mcp_server: "https://api.conecto.chat/mcp/analytics"
auth: "Authorization: Bearer <conecto_sk_ key>"
docs_url: "https://conecto.chat/tools/analytics/analytics_heatmap"
---

# See where people click and scroll (`analytics_heatmap`)

A page's heatmap: the most clicked elements, rage and dead clicks, scroll depth and time on page, with a link that draws it.

A page's heatmap: the most clicked elements with their text, rage clicks (3 fast clicks in one spot) and dead clicks (nothing on the page changed), how far down people scroll and time on page. The link opens the business's own page with the heat drawn over it (clicks, rage, dead, scroll; desktop, tablet or phone); it works for 7 days. The site's script records clicks on its own, without cookies or anything that identifies a visitor.

Price: Free up to 1,000,000 reads a month for the whole account, then $0.50 per 10,000 reads. A call that fails costs nothing.

## Use it when

Someone asks what visitors click or miss on a page, or how far down they read.

## Say this to your agent

> On phones, what do people tap on the Willamette 8 page, and how far down do they scroll?

## Inputs

| Name | Type | Required | Description | Allowed values | Default |
|---|---|---|---|---|---|
| `site` | string | yes | The site's domain (e.g. halversoncycle.example) or its site_id. 4 to 253 characters. |  |  |
| `page` | string | yes | The path, like /pricing. Up to 500 characters. |  |  |
| `device` | string | no |  | `"desktop"`, `"tablet"`, `"mobile"`, `"all"` | `"all"` |
| `period` | string | no |  | `"today"`, `"yesterday"`, `"7d"`, `"30d"`, `"90d"`, `"month"`, `"last_month"`, `"12mo"`, `"custom"` | `"30d"` |
| `from` | string | no | With period custom: the first day, 2026-10-01. Up to 10 characters. |  |  |
| `to` | string | no | With period custom: the last day. Up to 10 characters. |  |  |
| `limit` | integer | no | 1 to 50. |  | `15` |

## Example

Written for Halverson Cycle & Repair, a bike shop with a repair workshop in Portland, Oregon.

MCP: call `analytics_heatmap` on the MCP server `https://api.conecto.chat/mcp/analytics` with these arguments:

```json
{
  "site": "halversoncycle.example",
  "page": "/bikes/willamette-8",
  "device": "mobile"
}
```

REST:

```bash
curl https://api.conecto.chat/v1/tools/analytics_heatmap \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"site": "halversoncycle.example", "page": "/bikes/willamette-8", "device": "mobile"}'
```

## Response

```json
{
  "call_id": "5f0c8a2e-3b7d-4c1e-9a64-2d8e1f7b0c93",
  "tool": "analytics_heatmap",
  "status": "succeeded",
  "replayed": false,
  "cost_usd": "$0.00",
  "balance_usd": "$19.75",
  "result": {
    "site": "halversoncycle.example",
    "page": "/bikes/willamette-8",
    "device": "mobile",
    "period": {
      "from": "2026-09-15",
      "to": "2026-10-14"
    },
    "pageviews": 2,
    "clicks": 4,
    "elements": [
      {
        "element": "button#add-to-cart",
        "text": "Add to cart",
        "clicks": 2,
        "percent": 50.0,
        "rage_clicks": 0,
        "dead_clicks": 0
      },
      {
        "element": "div.gallery>img:nth-of-type(2)",
        "text": null,
        "clicks": 2,
        "percent": 50.0,
        "rage_clicks": 2,
        "dead_clicks": 2
      }
    ],
    "rage_clicks": [
      {
        "element": "div.gallery>img:nth-of-type(2)",
        "text": null,
        "clicks": 2
      }
    ],
    "dead_clicks": [
      {
        "element": "div.gallery>img:nth-of-type(2)",
        "text": null,
        "clicks": 2
      }
    ],
    "scroll": {
      "average_percent": 85,
      "reached_percent": {
        "25%": 100,
        "50%": 100,
        "75%": 100,
        "100%": 0
      }
    },
    "time_on_page_seconds": 41,
    "link": "https://halversoncycle.example/bikes/willamette-8#conecto-heatmap=IjM4OTZiZGM4LTA1NmUtNDBhZi1iMDE0LTM0NzYyZTM2NGJmZSI:1xHM3A:3KKmUy82engKyPyVjA8f4rbv69-qmXwxGQ6jG-x0npg",
    "link_works_days": 7
  }
}
```

`result`: Pageviews and clicks, the most clicked elements with their text, rage and dead clicks, scroll reach and time on page, and a link (good for 7 days) that draws the heat over the real page.

## Errors

| Code | Status | When | Fix |
|---|---|---|---|
| `not_found` | 404 | No site the business counts has that domain or site_id. | Call analytics_list_sites and use a domain from it. |
| `invalid_input` | 400 | The page is not a path, the device is unknown, or the period is not valid. | Send a path like /bikes/willamette-8, a device of desktop, tablet or mobile, and a valid period. |

The refusals every tool can give (401 key, 402 balance, 429 limits) are on the errors page: https://conecto.chat/docs/errors.md

## Related

- [analytics_add_site](https://conecto.chat/tools/analytics/analytics_add_site.md): Starts counting visits to a website, without cookies, and returns the snippet for its pages. $3.00 a call.
- [analytics_install](https://conecto.chat/tools/analytics/analytics_install.md): Step-by-step instructions to put the counting script on a site: any html, Shopify, WordPress, Webflow or Google Tag Manager. Free up to 1,000,000 reads a month.
- [analytics_stats](https://conecto.chat/tools/analytics/analytics_stats.md): A site's visitors, pages, sources, countries, devices, events, goals and speed for a period, against the period before. Free up to 1,000,000 reads a month.
- [analytics_breakdown](https://conecto.chat/tools/analytics/analytics_breakdown.md): One event or goal by a prop or by where its visits came from, with conversions, conversion rate and revenue. Free up to 1,000,000 reads a month.
- [analytics_realtime](https://conecto.chat/tools/analytics/analytics_realtime.md): Visitors in the last 5 minutes, and the pages people looked at in the last 30. Free up to 1,000,000 reads a month.
- [analytics_set_goals](https://conecto.chat/tools/analytics/analytics_set_goals.md): Sets the conversions a site counts: pages reached or events, replacing its goals; with notify, the agent hears of each one as it happens. Free.
- [analytics_define_events](https://conecto.chat/tools/analytics/analytics_define_events.md): Defines events from what the script already sees (clicks, pages, scrolling, time on a page, props), with nobody editing the site. Free.
- [analytics_track](https://conecto.chat/tools/analytics/analytics_track.md): Records events that happen away from the site, like orders, deals won or renewals, tied to the visit that led to them when it can be found. Free.
- [analytics_funnel](https://conecto.chat/tools/analytics/analytics_funnel.md): How many visitors did each step of a path in order, and how many dropped out at each one. Free up to 1,000,000 reads a month.
- [analytics_paths](https://conecto.chat/tools/analytics/analytics_paths.md): Where visits went after a page and where they came from, or the commonest journeys through the site. Free up to 1,000,000 reads a month.
- [analytics_problems](https://conecto.chat/tools/analytics/analytics_problems.md): Pages that answered an error to visitors, JavaScript errors, and where people rage-click or click with nothing happening. Free up to 1,000,000 reads a month.
- [analytics_web_vitals](https://conecto.chat/tools/analytics/analytics_web_vitals.md): How fast the site's pages are for real visitors: Core Web Vitals at the 75th percentile, rated the way Google rates them. Free up to 1,000,000 reads a month.
- [analytics_view_link](https://conecto.chat/tools/analytics/analytics_view_link.md): A one-time link to a page that shows a site's stats to a person. Free.
- [analytics_update_site](https://conecto.chat/tools/analytics/analytics_update_site.md): Changes a site's name, time zone, traffic alert, weekly summary, JavaScript errors and whether where leads came from is kept with them. Free.
- [analytics_list_sites](https://conecto.chat/tools/analytics/analytics_list_sites.md): Every site this account counts, with this month's events and its snippet. Free up to 1,000,000 reads a month.
- [analytics_add_events](https://conecto.chat/tools/analytics/analytics_add_events.md): Raises a site's monthly event allowance by blocks of a million events. $5.00 per block of a million events a month.
- [analytics_remove_site](https://conecto.chat/tools/analytics/analytics_remove_site.md): Stops counting a site, ends its rent and deletes its stats for good. Free.
