> 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/gaze-mapping/creating-heatmaps-and-aggregates-from-websites.md).

# Creating Heatmaps and Aggregates from Websites

Map gaze from website recordings onto web scenes, with gaze mapping on your own screenshots or BrowserGoTo in the Scene editor, for heatmaps and aggregates.

*When aggregating data from websites, special attention has to be paid to when each respondent is on a particular page, so the correct data gets mapped and aggregated to the right part of the stimulus. This article will cover several methods for creating webscenes.*

**Use Cases**

In another article the usage of the scene editor for aggregating common experiences is explained in the context of **screen recordings**. However, for **websites** the workflow in the scene editor is slightly different, to account for phenomena like scrolling and differences in navigation. This article shows how to get heatmaps and aggregated data visualizations for websites.

This article will cover two methods of aggregating websites:

1. Using your own screenshots with [Gaze Mapping](https://help.imotions.com/lab/analysis/eye-tracking/gaze-mapping/gaze-mapping.md)
2. Using "BrowserGoTo" with the conventional [Scene Editor](https://help.imotions.com/lab/analysis/signal-processing-r-notebooks/my-library/scene-editor.md)

You can use either Edge or Google Chrome with their latest versions. To find the method that best works for you, ask yourself the following questions:

* Does the entire page scroll as one cohesive unit? Or are there sticky or fixed elements, like menus, that have to be treated differently?

For the use of these methods, a Web Site stimulus must be used in your study 1. Click on "Edit Stimuli" at the top right corner in iMotions.

You will be presented with the following window: 2. Please input the desired website Address, and then click OK

![1.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-91b7716d7aad09ef7fe694687076e81b5e54c338%2F9789194a37_Screenshot-2024-05-28-141645.webp?alt=media)

**Method 1: Using Your Own Screenshots with Gaze Mapping**

The use of [Gaze Mapping](https://help.imotions.com/lab/analysis/eye-tracking/gaze-mapping/gaze-mapping.md) for website stimuli is a newer feature within iMotions with greater functionality for scrolling and dynamic elements. Gaze mapping uses object recognition to triangulate gaze points according to the visual elements on the page. It also has tools to account for sticky or repeating elements like traveling menus or scrolling ads. However, when using gaze mapping, you will need to provide your own full-page website screenshots as reference images.

**This method is best for:**

* More complex pages that do not scroll as a single unit (for example, employing sticky menus, or advertisements that scroll with you)
* Pages that open in new tabs or windows
* Website prototypes where you might already have screenshots available
* Browser types that have screencapping extensions available (Chrome is best)

**This method is not good for the following, and Method 2 should be used instead:**

* Browser types without good screencapping options

There are many ways to create your own reference images for gazemapping. If you are doing a study on a website you have built yourself, you might already have prototype images or wireframes that you can use as a reference image. Otherwise, there are many browser extensions available that create full-page screenshots of a website - this of course depends on the browser type you are using.

Here are some recommendations:

**Chrome:** [Full Page Screen Capture](https://chrome.google.com/webstore/detail/gofullpage-full-page-scre/fdpohaocaechififmbbbbbknoalclacl?hl=en)

Here is how to create your gaze map. Bear in mind you can only do this after data collection, in the Analysis level.

1. Create an analysis, and select your main website recording in the stimulus timeline. Then, click "Gaze Map" from the bottom toolbar. ![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-27b6eb75b24e4fe2050adb5ec0a8fa7111711ef9%2Fabe41a1b7e_Screenshot-2026-02-18-123916.webp?alt=media)
2. Click on the little camera icon in the bottom right corner to create a new gazemap. Select the source of the reference image as "From Image". ![9.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-a6d63e12db790d4fbb6f231a02b62d503619f1e7%2F6fc5af0205_9.webp?alt=media)

   ![10.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-f4eef734f59c56d8ee07f8e660997a9caaf6fe6a%2F34972d8fdf_10.webp?alt=media)
3. Select your website screenshot image file. This reference image will now be displayed on the left side of the Gazemapping menu, and the unprocessed gaze map will be listed at the bottom of the screen. ![11.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-4cd5539ead866bdc51a42b9f9dd68d0a37f6addd%2F337696c969_11.webp?alt=media)
4. Right-click on the track corresponding to your gazemap to begin processing. Select "Queue gazemapping processing". Here, there are two options: ![12.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-6509ce1963d11adb3d0b9619c4f2cceac149e237%2F7470e36164_12.webp?alt=media)

   a) "**Use full image algorithm for gazemapping**": "Regular" gazemapping can be used here If your website scrolls as a single unit, and you don't have any sticky or dynamic elements like menus or ads. b) "**Restrict and optimize for vertical motion, (e.g. scrolling)**": This is a special option for more complex websites that have sticky menus or ads. Selecting this option will allow you to designate an area of the site pertaining to the vertical scrolling element only, while ignoring sticky elements that might confuse the gaze triangulation. Refer to [this article](https://help.imotions.com/lab/analysis/eye-tracking/gaze-mapping/gaze-mapping.md) for more information.

   Selecting an option will queue gazemapping processing, which can be viewed in the Background Jobs menu.

When creating an analysis, gaze data can be mapped onto the webscenes in both Replay and Aggregate modes, according to the fragments defined for each respondent, by going to the Visualization toolbar on the left. When executing R-notebooks for analyzing other data like EDA or FEA, webscenes are treated as separate stimuli and will have their own separate metrics.

![13.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-bdc9acb03ea2ecc2f71ea799cef004fff41ca076%2F1343dc6c75_13.webp?alt=media)

**Method 2: Using "BrowserGoTo" with Scene Editor**

If reference images are not available for the creation of webscenes via gazemapping, you can also create your own screenshots within iMotions. Using "BrowserGoTo", iMotions takes a scrolling screenshot of whatever is displayed on the screen, and automatically segments website recordings into webscenes. Contrary to gazemapping, which uses computer vision to triangulate gaze, BrowserGoTo uses internal browser events like clicks, scrolling and pageloads as references to segment recordings and map gaze.

**This method is best for:**

* Pages that scroll together as a single unit, without sticky or fixed elements like menus
* Studying pop-up or hovering elements like ad overlays or dialogue boxes
* When you don't have your own full-page website screencaps available and need to make them within iMotions

**This method is not good for the following, and Method 2 should be used instead:**

* Pages with sticky or fixed elements like menus
* Pages that open in new tabs or windows

There are two ways to access BrowserGoTo, depending on if you want to create webscenes before or after data collection:

1. **Before data collection:** Click on your website in the stimulus timeline in the study level. In the central panel, under 'Scenes', click 'Edit'. ![2.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-d3b29d1dc00b310cdff0896b078e960a700da337%2F6a60b3490b_2-5-.webp?alt=media)

   This will produce a blank pop-up. In the bottom left corner, click "BrowserGoTo". This will open up a "trial browser", where you can navigate a sample of your page. ![new\_snapshot.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-848751ec420020066933ea249579d1ef2d901809%2Fa5ed2ee244_new_snapshot.webp?alt=media)

   When you reach a page that you want to aggregate across as a webscene, press **"Ctrl+C"** or click **"New web scene"** in the BrowserGoTo pop-up to copy the page. The browser will scroll through the page, and create a screencap that will be used as your webscene. Webscenes will now be shown in the BrowserGoTo pop-up, and will also be shown as "child" stimuli to the main website recording in the stimulus timeline. ![new\_method.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-864b4c17e131614061579c7ac021c563e43ac861%2F278106d1c8_new_method.webp?alt=media) **Note**: The scrolling snapshot uses the integrated Chromedriver. This method offers a better quality image, but doesn't work on all websites. If your web scene is failing to properly be generated, then uncheck the field "Use scrolling snapshot" then try the method mentioned above, or below again.

   ![5.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-3deb9c6e29818d472be1a774a910be1e20917ec9%2Ff83a180cdd_5-1-.webp?alt=media)
2. **After data collection:** Another way to access BrowserGoTo is, in the Study level (not Analysis), selecting a respondent that has already been collected, and selecting the Scene Editor button for your main website stimulus, and clicking "Web Scenes: Browser" within the Scene Editor. ![6.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-74f795c548d01bc59400aaedae862256de9784eb%2F5d7808e27b_6-2-.webp?alt=media) ![7.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-f8e760e922d6fb11385cb36cac2ccde0e9d299bf%2F44d4d861c7_7-1-.webp?alt=media)

   Regardless of where and when you create your webscenes, iMotions will automatically segment each respondent's website recording into fragments when they are on a particular page, based off of events like Clicks and Pageloads (viewable by clicking the Event Filter on the right, and referring to the colored flags on the timeline in the Scene Editor). Although this is done automatically, it is recommended you check the scene segmentation and fragment generation manually, especially when studying complex website designs.

   Click "Save" to commit the changes and close the scene editor. Exposure statistics of all respondents are updated to reflect data quality for the newly created and edited scenes.

When creating an analysis, gaze data can be mapped onto the webscenes in both Replay and Aggregate modes, according to the fragments defined for each respondent, by going to the Visualization toolbar on the left. When executing R-notebooks for analyzing other data like EDA or FEA, webscenes are treated as separate stimuli and will have their own separate metrics.

**Addendum:** If you have sticky elements in your website, like menus that scroll with you, these elements might show up as repeats when you create your screenshot. This can be avoided by using Method 1 instead - or, you can fix these images manually: see here for instructions.


---

# 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/gaze-mapping/creating-heatmaps-and-aggregates-from-websites.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.
