> 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/using-event-markers.md).

# Using Event Markers

Use built-in, live, manual, API and analysis event markers to label time points in recordings, create annotations from them and export them.

**How to Create and Use Event Markers** Event Markers are used to label time points in iMotions recordings. This includes built-in iMotions events (e.g. start of recording, stimulus presentation, etc.) or a variety of user-defined events (e.g. manual events, API events, analysis events).

Event Markers can be used to create Automated Annotations to facilitate analysis.

## Markers Menu and Panel

* The Markers Menu and Markers Panel can be found in any Replay window.
* The **Markers Menu** is used to create Manual Markers and view existing Markers (categorized by marker type).
* The **Markers Panel** is used to create and view Manual Marker Events alongside the recorded timeline (i.e. each instance of the Manual Marker).

<figure><img src="https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-9b6bb4ca8965b001b598b1e7068d3478eca29d90%2F2dd1003bf6_image-1726861375797.webp?alt=media" alt=""><figcaption><p>Replay Window showing Annotations Menu and Annotation Panel</p></figcaption></figure>

## Types of Event Markers

### Built-in Markers

Built-in markers are automatically created when they occur during recordings. Each recording contains at least one set of Slide and Stimulus events (start and stop events). Keyboard and Mouse events are created for Screen-based studies.

* **Slide events** indicate when any stimulus presentation starts ('StartSlide' , 'StartMedia') or ends ('EndMedia', 'EndSlide')
* **Stimulus events** indicate when a specific stimulus is activated or deactivated (concurrent with 'StartMedia' and 'EndMedia')
* **Keyboard events** indicate when a specific keyboard key was pressed (only available with Screen-based studies)
* **Mouse events** indicate when a mouse click, scroll, or cursor movement occurred (only available with Screen-based studies)

### User-Created Markers

* **Live markers** are created during data collection with user-inputs/Marker keys (set up in Sensor Preview)
* **Manual markers** are created and edited in the Markers Menu/Panel in any Replay window
* **API events** indicate when an event marker was received with the Event Receiving API (requiring API configuration).

### Analysis Markers

* Analysis markers are created by calculating AOI metrics, which provide 'AOI dwelled on' onset/offset
* Analysis markers are also created by running Signal Processing R-Notebooks (e.g. 'GSR peak' onset/offset).
* Calculating [AOI metrics](https://help.imotions.com/lab/analysis/eye-tracking/areas-of-interest/areas-of-interest-aois.md) automatically creates event markers indicating when a respondent started and stopped dwelling on an AOI.
* Signal Processing [R-Notebooks](https://help.imotions.com/lab/analysis/signal-processing-r-notebooks.md)create event markers related to sensor signals
  * [FEA Thresholding](https://help.imotions.com/lab/analysis/facial-expression-analysis/r-notebook-fea-facial-expression-analysis-thresholding-and-aggregation.md) - onset/offset of passing threshold
  * [GSR Peak Detection](https://help.imotions.com/lab/analysis/eda-gsr/gsr-r-notebooks-peak-detection-and-aggregation.md) - onset/offset of GSR peaks, GSR peak (local maximum)
  * [Heart Rate and HRV](https://help.imotions.com/lab/analysis/biosensor-analysis/r-notebooks-ecg-heart-rate-and-hrv-processing.md) - R-peaks
  * [Respiration Analysis](https://help.imotions.com/lab/analysis/respiration/r-notebooks-respiration-respiration-processing.md) - onset of inhalation and exhalation

## User-Created Event Markers

### Live Markers (in Preview Window)

Live Markers are created during data collection in the Sensor Preview window, with a keyboard press (Default key: F3). Live Marker keys and labels can be further defined in [Live Marker Study settings](https://help.imotions.com/lab/data-collection/creating-live-markers-during-data-collection.md).

#### Defining Live Markers

*You have to define your Live Markers before starting the data recording. It is not possible to just press any key, you have to assign a marker to a specific key beforehand.*

1. Create/Select a study.
2. Open your Study Settings 'Live Markers' tab.
3. Enter a 'Name' for your Live Marker and then allocate a Key to the Live Marker. Pressing this Key during data collection will create a Live Marker.
4. A 'Modifier' can be selected, which will also need to be pressed to create the Live Marker (Shift or Control key).
5. (Optional) Select a 'Color' to associate with the Live Marker (for display purposes).
6. Then click '+' button to set up the Live Marker.

   <figure><img src="https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-2979f790a683ad94889e99a61d738f2a53c574f0%2F3c38e8146e_image-1726859864078.webp?alt=media" alt=""><figcaption><p>Setting up Live Markers in Study Settings</p></figcaption></figure>

#### Setting Live Markers during data collection

To create Live Markers:

* During the data collection, simply hit the allocated Key, which automatically creates a Live Marker in your recording.
* Live Markers appear in the iMotions [Sensor Preview](https://help.imotions.com/lab/data-collection/sensor-preview-window.md). A line will appear in your Signals Panel any time a Live Marker is created.
* The Live Markers Menu will show a list of your Live Markers with the allocated Key and number of created markers.

1. Verify 'Live Marker' Study Settings
2. Start recording in iMotions
3. Open the Sensor Preview window
4. (Optional) Open 'Live markers' menu
5. Press any Key allocated to a Live Marker

<figure><img src="https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-b51bc4ede259c29110be6c7d34d86cb51c783bd7%2F39e931c779_image-1726860305612.webp?alt=media" alt=""><figcaption><p>Sensor Preview showing Live Markers Menu (left) and recently created Live Markers in Signals Panel (right)</p></figcaption></figure>

### Manual Markers (in Replay Window)

To create Manual Markers:

1. Open a Replay
2. Navigate to Markers Menu
3. Click 'Add manual marker' button to create a new Manual Marker
4. (Optional) Click 'Add group' to create a group for categorizing your Manual Markers.
5. In the Markers Panel, navigate to a time point where you want to create a marker.
6. Create a marker by pressing the allocated Key (set for the Event Marker) or right-clicking and selecting 'Add event'. A marker will appear at the current time point (under the red timeline cursor)

   <figure><img src="https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-e996665c82d34e9c1f0667153cbf109baf80b1df%2F313b421f84_image-1726857396175.webp?alt=media" alt=""><figcaption><p>Create markers with the Key set in your Markers Menu (left) or in the Markers Panel by right-clicking and selecting 'Add event' (right)</p></figcaption></figure>

   <figure><img src="https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-6ca21a1fe5917abb99b0492129761fa4277d21ab%2F866e5c9c4f_image-1726857770173.webp?alt=media" alt=""><figcaption><p>Manual Markers created at the current time point (under the red cursor)</p></figcaption></figure>

### Creating API Markers (from external programs)

API Markers are created by the iMotions Event Receiving API, which requires a compliant event source application provided by users.

To create API markers:

1. Set up iMotions Event Receiving API in Global Settings (API tab)
2. Set up event source application
3. Set up iMotions Study Sensors with External API Events
4. Run study in iMotions with event source application

### Analysis Event Markers

Analysis Markers are automatically created by calculating AOI metrics or running Signal Processing (R Notebooks), which must be set up and performed by users.

<figure><img src="https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-7ee7b94efcd196ddf8db57a17d498a374999c875%2F852458183f_image-1726858463576.webp?alt=media" alt=""><figcaption><p>Analysis Events created by AOI Metrics Calculation</p></figcaption></figure>

<figure><img src="https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-29730ec710b833db119c5c1d4f83fd3b888ee735%2Fe89d150002_image-1726860685194.webp?alt=media" alt=""><figcaption><p>Automated Annotations based on AOI Events</p></figcaption></figure>

## Exporting Event Markers

You can include Event Markers in Sensor Data Export files. This will create additional columns in the export file, which contain Event Marker Group, Name, and Index (count).

<figure><img src="https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-f9123527421397837d0622311a94f9f3e4d6a64f%2F9343261fe8_image-1725641134254.webp?alt=media" alt=""><figcaption><p>Analysis Export button</p></figcaption></figure>

1. Click 'Export' and select Sensor Data Export

   <figure><img src="https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-f57f8f6cd604c857c73105e9cf5f5b812a15e952%2F255afccb2a_image-1725641402292.webp?alt=media" alt=""><figcaption><p>Sensor Data export</p></figcaption></figure>
2. Click Export to open the Sensor Data Export window
3. Select the 'File Info' tab and check 'Additional data' for the Event Markers you want to include in your exported file(s). Descriptions of each setting can be displayed by clicking 'Show descriptions' (top-right corner of Export window)

   <figure><img src="https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-5b115971e0cea882638a885ae3ee7d8a4990334e%2F7a28de986a_image-1726862580141.webp?alt=media" alt=""><figcaption><p>'File Info' settings are used to include markers in Sensor Data export files</p></figcaption></figure>

## Scenarios for Using Event Markers

* Scenario 1: Monitoring Data Collection Live Event Markers allow you to label the time points of pertinent events during data collection. This is useful for monitoring data collection, allowing the experimenter to note/classify any pertinent events as they are observed.
* Scenario 2: Coding Events in Recorded Data Manual Event Markers allow you to review recorded data and label time points that are relevant for analysis. This is useful when in-depth review and human-coding is needed.
* Scenario 3: Recording Events that occur in external software or hardware API Event Markers allow you to create event markers with external applications that are involved in your studies, such as stimulus presentation software events (e.g. Matlab, EPrime) or hardware triggers (e.g. Cedrus Stimtracker). This allows automatic marking of these events sent from the external event source. Note: External event sources must be set up by users to comply with the iMotions Event receiving API.
* Scenario 4: Identifying timepoints of events that were performed or detected by iMotions The timepoints associated with any Event Marker can be found in any Replay (by selecting a marker) or in Sensor Data exports (based on selected 'File info' options). The export process may be helpful anytime precise timestamps (in milliseconds) are needed


---

# 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/using-event-markers.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.
