labvanced logoLabVanced
  • Research
    • Publications
    • Researcher Interviews
    • Use Cases
      • Developmental Psychology
      • Linguistics
      • Clinical & Digital Health
      • Educational Psychology
      • Cognitive & Neuro
      • Social & Personality
      • Arts Research
      • Sports & Movement
      • Marketing & Consumer Behavior
      • Economics
      • HCI / UX
      • Commercial / Industry Use
    • Labvanced Blog
    • Services
  • Technology
    • Feature Overview
    • Code-Free Study Building
    • Eye Tracking
    • Mouse Tracking
    • Generative AI Integration
    • Multi User Studies
    • More ...
      • Reaction Time/Precise Timing
      • Text Transcription
      • Heart Rate Detection (rPPG)
      • Emotion Detection
      • Questionnaires/Surveys
      • Experimental Control
      • Data Privacy & Security
      • Desktop App
      • Mobile App
  • Learn
    • Guide
    • Videos
    • Walkthroughs
    • FAQ
    • Release Notes
    • Documents
    • Classroom
  • Experiments
    • Cognitive Tests
    • Sample Studies
    • Public Experiment Library
  • Pricing
    • Licenses
    • Top-Up Recordings
    • Subject Recruitment
    • Study Building
    • Dedicated Support
    • Checkout
  • About
    • About Us
    • Contact
    • Downloads
    • Careers
    • Impressum
    • Disclaimer
    • Privacy & Security
    • Terms & Conditions
    • Third-Party Licenses
  • Appgo to app icon
  • Logingo to app icon
Learn
Guide
Videos
Walkthroughs
FAQ
Newsletter Archive
Documents
Classroom
  • 中國人
  • Deutsch
  • Français
  • Español
  • English
  • 日本語
Guide
Videos
Walkthroughs
FAQ
Newsletter Archive
Documents
Classroom
  • 中國人
  • Deutsch
  • Français
  • Español
  • English
  • 日本語
  • Guide
    • GETTING STARTED

      • Task Editor
      • Stimulus Presentation
      • Correctness of Response
      • Objects
      • Events
      • Variables
      • Task Wizard
      • Trial System
      • Study Design
        • Tasks
        • Blocks
        • Sessions
        • Groups
    • FEATURED TOPICS

      • Experiment Design
        • Creating a Study
        • Data Frame Patterns
      • Randomization & Balance
      • Eye Tracking
        • Presenting Stimuli in an Eye Tracking Task
        • How to Choose Eye Tracking Calibration Settings
        • Setting Up Eye Tracking in a Task
        • Recording and Exporting Gaze Data
        • Using Shapes as Areas of Interest (AOI) for Eye Tracking
        • The Participant Calibration Experience
      • Questionnaires
      • Desktop App
      • Sample Studies
      • Participant Recruitment
      • API Access
        • REST API
        • Webhook API
        • WebSocket API
      • Other Topics

        • Precise Stimulus Timings
        • Multi User Studies
        • Head Tracking in Labvanced | Guide
    • MAIN APP TABS

      • Overview: Main Tabs
      • Dashboard
      • My Studies
      • Shared Studies
      • My Files
      • Experiment Library
      • My Account
      • License & Services
    • STUDY TABS

      • Overview: Study-Specific Tabs
      • Study Design
        • Tasks
        • Blocks
        • Sessions
        • Groups
      • Task Editor
        • Task Controls
        • The Trial System
        • Canvas and Page Frames
        • Objects
        • Object Property Tables
        • Variables
        • System Variables Tables
        • The Event System
        • Text Editor Functions
        • Eye Tracking Options in the Task Editor
        • Head Tracking in a Task
        • Multi-User Studies
      • Settings
      • Variables
      • Media
      • Texts & Translate
      • Launch & Participate
      • Subject Management
      • Dataview and Export
        • Dataview and Variable & Task Selection (OLD Version)
        • Accessing Recordings (OLD Version)
  • Videos
    • Video Overview
    • Getting Started in Labvanced
    • Creating Tasks
    • Element Videos
    • Events & Variables
    • Advanced Topics
  • Walkthroughs
    • Introduction
    • Stroop Task
    • Lexical Decision Task
    • Posner Gaze Cueing Task
    • Change Blindness Flicker Paradigm
    • Eye-tracking Sample Study
    • Infant Eye-tracking Study
    • Attentional Capture Study with Mouse Tracking
    • Rapid Serial Visual Presentation
    • ChatGPT Study
    • Eye Tracking Demo: SVGs as AOIs
    • Multi-User Demo: Show Subjects' Cursors
    • Gamepad / Joystick Controller- Basic Set Up
    • Desktop App Study with EEG Integration
    • Between-subjects Group Balancing and Variable Setup
  • FAQ
    • Features
    • Support Policy & Guidelines
    • Security & Data Privacy
    • Licensing
    • Precision of Labvanced
    • Programmatic Use & API
    • Using Labvanced Offline
    • Troubleshooting
    • Study Creation Questions
  • Newsletter Archive
  • Documents
  • Classroom

Eyetracking Gaze Trigger

Table of Contents

  • Overview
  • Recording Gaze Data
  • Enabling Eye Tracking
  • Trigger-specific Values
  • Practical Examples

Overview

The Eyetracking Gaze trigger fires every time Labvanced's webcam eye tracking predicts a new gaze location for a participant, whether or not eye tracking is restricted to a specific frame or object.

Note: All processing occurs client-side, ensuring GDPR compliance and guaranteeing that no facial data is ever transmitted or stored externally.

Triggers on:

  • Overall: this trigger applies whenever eye tracking has been enabled for the task.
  • Only when looking at specific elements: restrict the trigger to fire only when the participant's gaze lands on stimulus objects you have added as targets.

Recording Gaze Data

Upon selecting the Eyetracking Gaze trigger in the Event Wizard and naming the event, a dialog box appears prompting you to auto-create the recording action:

Accepting Record gaze timeseries [X,Y,T,C] (checked by default) creates a Set / Record Variable action using the Coord. + Time + Confidence [X,Y,T,C] Array trigger-specific value described below, with Record Type set to All changes / time series so every gaze update is captured rather than just the final value per trial. A second option, Record per-eye gaze + confidence [Lx,Ly,Lc,Rx,Ry,Rc,T] Array (unchecked by default), instead records the left and right eye's coordinates and confidence separately, using the trigger-specific value of the same name described below.

Preview of Gaze Data Collected in Labvanced

Preview of data collected using Labvanced's webcam eye tracking.

Preview of data collected using Labvanced's webcam eye tracking
X: X-coordinate of gaze; Y: Y-coordinate of gaze; T: Timestamp; C: Confidence Interval

Enabling / Activating Eye Tracking

In order for the Eyetracking Gaze trigger to function, eye tracking must be activated and enabled under both Settings and Task Controls, as explained below.

Study Settings - Enable Eye Tracking

In the Settings tab, navigate to Physiology → Eye-Tracking and check the checkbox to activate webcam eye tracking for your study. See How to Choose Eye Tracking Calibration Settings for the calibration decisions that go with this.

Task Settings - Enable Eye Tracking

Under Task Controls in the task editor, navigate to the Physiological Signals tab and check Enable Eye-Tracking: for eye tracking to be active in that particular task:

Task Settings dialog showing the Physiological Signals tab, the Enable Eye-Tracking checkbox, and the Drift Correction fields

The Physiological Signals tab after enabling eye tracking, showing the Drift Correction fields. See Setting Up Eye Tracking in a Task for what each field controls.

Upon checking Enable Eye-Tracking:, a dialog box also appears prompting you to auto-create recording events for both gaze and fixation together, along with which frames the recording should occur on:

Eyetracking Setup dialog offering to automatically create gaze and fixation recording events

The Eyetracking Setup dialog, offering to automatically create the gaze and fixation recording events across all frames, or a single selected frame.

Trigger-specific Values for Gaze

Upon selecting the Eyetracking Gaze trigger, the following options are available in the Value-Select Menu:

The gaze trigger value options in the value select menu

Accessing the trigger-specific values of the Eyetracking Gaze trigger via the Value-select Menu.

Trigger (Eyetracking Gaze) OptionsDescription
Coordinate XThe value of the gaze's X coordinate.
Coordinate YThe value of the gaze's Y coordinate.
Coordinate [X,Y] ArrayThe gaze coordinates X,Y in an array format.
Stimulus NameThe name of the stimulus that initiated the gaze trigger.
Stimulus InfoThe stimulus information behind the stimulus that initiated the gaze trigger.
Camera Capture Time TThe adjusted timestamp of when the camera actually captured the image. In Labvanced's eye tracking pipeline, a camera snapshot happens before the algorithm performs gaze calculations, so Camera Capture Time T is the more accurate timestamp to use than a trigger or recording timestamp.
Gaze Confidence CRanges from 0 to 1; the confidence and probability that there is an open eye in the image snapshot, serving as a blink detector. See Kaduk et al., 2024 for more detail.
Coord. + Time [X,Y,T] ArrayAn array containing the gaze coordinates and the camera capture time.
Coord. + Time + Confidence [X,Y,T,C] ArrayAn array containing the gaze coordinates, camera capture time, and gaze confidence. This is the recommended value for most studies, and what the automated event setup above creates by default.
Per-Eye Gaze + Confidence + Time [Lx,Ly,Lc,Rx,Ry,Rc,T] ArrayAn array containing the left and right eye's coordinates and confidence separately (Lx,Ly,Lc,Rx,Ry,Rc), plus the shared camera capture time. Only populated on eye tracking models that report both eyes independently; records as an empty array on older eye tracking versions, single-output models, or during momentary face loss.
Trigger Timestamp (Unixtime)The timestamp of when the gaze trigger occurred, in Unix time with milliseconds.
Trigger Time (From Frame Onset)The elapsed time in milliseconds from the frame onset to when the gaze trigger occurred.

Practical Examples Featuring the Eyetracking Gaze Trigger

Walkthrough - Study Building

For worked examples that use this trigger, see the Eyetracking Walkthrough or Webcam Eye Tracking Demo: SVGs as AOIs, which restricts the trigger to specific stimulus objects using Polygon and SVG masks.


Preferential Looking Test

This study measures visual preference and attentional bias using gaze tracking. Participants view social and non-social stimuli while fixation behavior, head movement, and video recordings are captured for analysis.

Simon Task with Eye Tracking

This study measures cognitive control and stimulus-response compatibility using the Simon Task. Participants respond to stimulus color while ignoring spatial position, allowing measurement of the Simon effect through reaction time and accuracy.



Further Reading

Recording and Exporting Gaze Data

Building this trigger into a full recording setup, and reading the resulting data export.

Eyetracking Fixation Trigger

The sibling trigger for when a participant's gaze settles on a location, rather than every gaze sample.

Using Shapes as Areas of Interest (AOI)

Restricting this trigger to specific stimulus objects using Polygon and SVG masks.