Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2024 Apr;56(4):3380-3395.
doi: 10.3758/s13428-024-02343-1. Epub 2024 Feb 12.

eyeScrollR: A software method for reproducible mapping of eye-tracking data from scrollable web pages

Affiliations

eyeScrollR: A software method for reproducible mapping of eye-tracking data from scrollable web pages

Nathanael Larigaldie et al. Behav Res Methods. 2024 Apr.

Abstract

The Internet has become an important part of our lives and an increasing number of researchers use eye-tracking technology to examine attention and behavior in online environments. Researchers, however, face a significant challenge in mapping eye-tracking data from scrollable web pages. We describe the R package eyeScrollR for mapping eye-tracking data from scrollable content such as web pages. The package re-maps eye-tracking gaze coordinates to full-page coordinates with a deterministic algorithm based on mouse scroll data. The package includes options for handling common situations, such as sticky menus or ads that remain visible when the user scrolls. We test the package's validity in different hardware and software settings and on different web pages and show that it is highly accurate when tested against manual coding. Compared to current methods, eyeScrollR provides a more reproducible and reliable approach for mapping eye-tracking data from scrollable web pages. With its open code and free availability, we recommend eyeScrollR as an essential tool for eye-tracking researchers, particularly those who adhere to open-science principles. The eyeScrollR package offers a valuable contribution to the field of eye-tracking research, facilitating accurate and standardized analysis of eye-tracking data in web scrolling contexts.

Keywords: Eye tracking; Gaze mapping; Open source; Scrollable web pages; Software.

PubMed Disclaimer

Figures

Fig. 1
Fig. 1
The typical seven steps of workflow when using the eyeScrollR package. Steps 5 and 7 are optional
Fig. 2
Fig. 2
Three rectangular fixed areas on the screen (left) are specified, and redirected to the full-page image (right)
Fig. 3
Fig. 3
Violin and box plot of Euclidean distances between eyeScrollR mappings and manual coding by web page (a) and study setting (b). Distances larger than 3 pixels (eight data points out of 479) are excluded for readability
Fig. 4
Fig. 4
A) Two rectangular fixed areas on the screen (left) are specified, and redirected to the full-page image (right). B) 3D array representing the bundle containing these two fixed areas. Rows are x and y values from the top left and bottom right pixels. The first column represents the coordinates of the fixed area on the screen, and the second column the coordinates of the fixed area on the full-page image. Each layer (left and right) represents a fixed area specification, with the coordinates of the redirection from the screen to the full-page image

References

    1. Alemdag, E., & Cagiltay, K. (2018). A systematic review of eye tracking research on multimedia learning. Computers & Education,125, 413–428.
    1. Anderson M, Jiang J, et al. Teens, social media & technology 2018. Pew Research Center. 2018;31(2018):1673–1689.
    1. Chang, W., Cheng, J., Allaire, J., Sievert, C., Schloerke, B., Xie, Y., et al. (2022). shiny: Web application framework for r. [R package version 1.7.2]. Available from: https://CRAN.R-project.org/package=shiny.
    1. Gidlöf, K., Wallin, A., Dewhurst, R., & Holmqvist, K. (2013). Using eye tracking to trace a cognitive process: Gaze behaviour during decision making in a natural environment. Journal of Eye Movement Research, 6.
    1. Holmqvist, K., Nyström, M., Andersson, R., Dewhurst, R., Jarodzka, H., & Van de Weijer, J. (2011). Eye tracking: A comprehensive guide to methods and measures. OUP Oxford.

Publication types

LinkOut - more resources