> For the complete documentation index, see [llms.txt](https://help.imotions.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.imotions.com/lab/analysis/eye-tracking/basic-heatmap-explanation-and-generation.md).

# Basic Heatmap Explanation and Generation

Understand how a heatmap colors a stimulus by how many respondents looked and for how long, and generate one for an image in an iMotions Lab analysis.

*This article contains information about the generation of heatmaps in iMotions.*

This guide contains the following topics:

1. Basic Heatmap Explanation
2. Basic Heatmap Generation (within iMotions)

## Basic Heatmap Explanation

Heatmaps, as a form of eye tracking (ET) data visualization and analysis, can be generated within iMotions in order to look at the areas of interest of a stimulus. The example below uses an image as the stimulus.

You can think of a heatmap as a data “paint by numbers” overlaid on top of an image.

![Capture.JPG](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-94d63343f76f0c753fd53534101f6abe45a0e100%2Ffc228b3204_capture.webp?alt=media)

The ET values are a complex calculation that includes the **number of participants** and **how much time is spent per pixel**. These values are calculated as “points” and are assigned to each pixel. The pixel with the greatest number of points represents the high end of the scale and is represented by the dark red color.

![Heatmap\_color\_code.JPG](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-b518eefe575d5f492e46cf90f981d90a17b5ecab%2F5a3eff45b8_heatmap_color_code.webp?alt=media)

The heat scale is continuous and relative to the most-looked-at area of the stimulus: red indicates relatively more gaze and green relatively less.

![heatmapping\_weights.JPG](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-db39a2978069c20dba9b04a29682d5445bd11c5e%2F58c585468c_heatmapping_weights.webp?alt=media)

![heatmap\_p7.JPG](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-001d2689ca5c5bbc1ddfaa6b6104a90396128fbd%2F0424c10724_heatmap_p7.webp?alt=media)

This heat can help identify what areas of the content were focused on for the longest amount of time, and what areas or elements may go missed entirely.

In the example above….

* The top row of targets was more focused on for **a longer period of time**, as indicated by the **red** color.
* The next few targets are **primarily green and yellow** in color, indicating that they were not focused on for as long of a time as the first few targets.
* Finally, the last few targets have **no color** overlay: they received too little gaze to pass the heatmap's visibility threshold, or none at all.

The above example was generated from a single participant. However, there are multiple scenarios in which a heatmap can be created:

![heatmap\_scenarios.JPG](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-e7827baa7023f76bda81d2037bb4bb143929ae5a%2Fd6026cdb7c_heatmap_scenarios.webp?alt=media)

## Basic Heatmap Generation

After eye tracking data has been collected, the following steps are used to create a heat map in iMotions:

#### Step 1

* Right click on your chosen study under “*Library*” on the left side on the iMotions platform, and select “*Add Analysis*” at the top of the menu:

![heatmap\_p1.JPG](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-4e73fd6ecb8436d483d55404b84a010313c8daa0%2F296a7fe683_heatmap_p1.webp?alt=media)

#### Step 2

* The next screen to appear is labeled as “*Segmentation Settings*”, and you can either add your chosen settings, criteria, and signal processing, or click next through the pages to the last tab of “*Select Stimuli*” in order to generate a heatmap.
  * From here, you can select which stimuli you want to generate a heatmap for. In this example, it is an image. Click *“Add”:*

![heatmap\_p5.JPG](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-f1cfc2707056622371ec3eac81290d7edf87779f%2F92e2a696ec_heatmap_p5.webp?alt=media)

#### Step 3

* Select the image in the stimulus bar at the top of the main window, then click **Aggregate** in the analysis tools at the bottom.

#### Step 4

* After loading (this will take longer with more participants/data), the preview shows a heatmap of all respondents in the analysis:

![heatmap\_p7.JPG](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-001d2689ca5c5bbc1ddfaa6b6104a90396128fbd%2F0424c10724_heatmap_p7.webp?alt=media)

#### Step 5

* The preview is for a quick impression. To change the heatmap settings, plot it for an annotation, switch to a dynamic heatmap or export it, click **Open analysis** to open the Aggregate replay editor; see [Heatmaps in Aggregate Replay](https://help.imotions.com/lab/analysis/eye-tracking/heatmaps.md#heatmaps-in-aggregate-replay).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.imotions.com/lab/analysis/eye-tracking/basic-heatmap-explanation-and-generation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
