labvanced logoLabVanced
Contact
    • Remote Physiological Measurements
    • Eye Tracking
    • Head & Face-Tracking
    • Emotion Detection
    • Heart Rate Detection (rPPG)
    • Generative AI
    • Audio Transcription
    • EEG & Hardware Integrations
    • Decision Making
    • Reaction Times
    • Keyboard Inputs
    • Mouse Tracking
    • Mobile / Touch
    • Questionnaires
    • Gamepad / Joystick Integration
    • Audio Recordings
    • Audio Transcription
    • Video Recordings
    • Screen Recordings
    • Photos / Snapshots
    • Video Conferencing
    • Canvas Drawings
    • Build with AI
    • Build with Spreadsheets
    • Using the Experiment Editor
    • Coding
    • Creating Questionnaires
    • Balancing & Randomization
    • UX & Website Testing
    • Single Session Studies
    • Factorial Designs
    • Longitudinal & Multi-session Studies
    • Individual & Case Studies
    • Real-time Multi-user Studies
    • Interviews & Video Calls
    • Surveys & Questionnaires
    • Experience Sampling & Diaries
    • Classroom & Group Testing
    • Interventions & Clinical Trials
    • In the Browser
    • Mobile App
    • Desktop App
    • WebBridge Chrome Extension
    • Stroop Test
    • Flanker Task
    • N-back Task
    • Implicit Association Test
    • Trail Making Test
    • Digit Span
    • Corsi Block Tapping
    • Tower of London
    • Balloon Analog Risk Task
    • Preferential Looking
    • Browse more →
    • DASS-21
    • GAD-7
    • Rosenberg Self-Esteem Scale
    • PHQ-9
    • Ten-Item Personality Inventory
    • Big Five Personality Test
    • Adult ADHD Self-Report Scale
    • Browse more →
    • Building a Multi-user Study
    • Webcam Eye Tracking with AOIs
    • Website Frame Eye Tracking
    • Conditional Eye Tracking Opt-in
    • ChatGPT Study
    • Desktop App Study with EEG
    • Between-subjects Group Balancing
    • Building a Reading Study
    • Stroop Task
    • Lexical Decision Task
    • Browse more →
    Public Experiment Library
    • Arts Research
    • Clinical Psychology & Neuropsychology Medicine
    • Cognitive Psychology
    • Developmental Psychology
    • Behavioral Economics & Decision Science
    • Educational Research & Psychology
    • HCI & Human Factors
    • Linguistics & Language Sciences
    • Consumer & Marketing Research
    • Social & Personality Psychology
    • Sport & Movement Science
    • UX & Website Testing
    • Executive Functions
    • Language & Reading
    • Decision-Making & Reasoning
    • Attention
    • Overview
    • HCI & Human Factors
    • UX & Website Testing
    • Consumer & Marketing Research
    • White-Label App
    • PageGazer
    • Webcam vs. Lab Eye Tracking in InfantsAnna Banki & Gabriela Markova
    • Eye Tracking for Influencer MarketingDr. Alexander Edeling
    • Eye Tracking Infant Word ComprehensionDr. Giulia Calignano
    • Sentence Reading and Grammar JudgmentsDr. Jonathan Mirault
    • Regulating Emotions with MusicDr. Katrin Starcke
    • Game-Based Grammar Learning in ChildrenDr. Mireia Marimon
    • Gaze Cueing and AutismMax Soares Miehstein
    • Personality and Hearing in NoiseDr. Malte Wöstmann
    • All interviews →
    • Lab Notes
    • How to Cite Labvanced
    • Labvanced Platform Paper (2017)
    • Webcam Eye Tracking Validation (2024)
    • Webcam Eye Tracking Studies
    • Cognitive Psychology Studies
    • Developmental Psychology Studies
    • Linguistics Studies
    • See all publications →
    • Getting Started
    • Guide
    • Video Tutorials
    • Walkthroughs
    • Live Chat
    • Webinars & Onboarding Calls
    • AI Assistant
    • FAQ
    • Importing Templates Guide
    • Test Templates
    • Live Eye Tracking Metrics
    • Mouse Tracking Demo
    • ChatGPT Demo
    • Audio Recording Object Demo
    • Adding Image Stimuli Demo
    • Score & Feedback Demo
    • Browse all technical demos →
    • Timing Precision
    • Stimuli Presentation
    • Headphone Checks
    • Bot Checks
    • Participant Management
    • Comparisons
    • Research Blog
    • Prolific Integration
    • CloudResearch Integration
    • Sona Systems Integration
    • BeSample Integration
    • Panelabs Integration
    • Clickworker Integration
    • Labvanced Webhook API
    • Labvanced REST API
    • About Us
    • Newsletter Archive
    • Terms & Conditions
    • Data Security & Data Privacy
    • Technical & Organisational Measures
    • Accessibility
    • W-8BEN-E Form
    • Data Processing Agreement Template
    LinkedInYouTubeDiscord
    • Individual
    • Lab
    • Department / Consortium
    • Teaching
    • Campus
    • Commercial
    Top-Ups
    • Overview
    • Study Building
    • Subject Recruitment
    • Dedicated Support
    Checkout
  • Contact
    • ZH
      • 中國人
      • Deutsch
      • Français
      • Español
      • English
      • 日本語
    • Appgo to app icon
    • Loginlogin icon
    Platform
    Labvanced makes it easy to implement the most advanced study design and reliably collect your data.
    Biosignals & AI
    Remote Physiological MeasurementsEye TrackingHead & Face-TrackingEmotion DetectionHeart Rate Detection (rPPG)Generative AIAudio TranscriptionEEG & Hardware Integrations
    Behavioral Recordings
    Decision MakingReaction TimesKeyboard InputsMouse TrackingMobile / TouchQuestionnairesGamepad / Joystick Integration
    Media Recordings
    Audio RecordingsAudio TranscriptionVideo RecordingsScreen RecordingsPhotos / SnapshotsVideo ConferencingCanvas Drawings
    Implementation Techniques
    Build with AIBuild with SpreadsheetsUsing the Experiment EditorCodingCreating QuestionnairesBalancing & RandomizationUX & Website Testing
    Study Formats

    Your study can take whatever format your research needs. Here are a few popular examples.

    Single Session StudiesFactorial DesignsLongitudinal & Multi-session StudiesIndividual & Case StudiesReal-time Multi-user StudiesInterviews & Video CallsSurveys & QuestionnairesExperience Sampling & DiariesClassroom & Group TestingInterventions & Clinical Trials
    Where Studies Run

    Run your study online in the browser, on mobile or tablet with the mobile app, or in-lab with the desktop app.

    In the BrowserMobile AppDesktop AppWebBridge Chrome Extension
    Tests
    Explore cognitive tests, questionnaires, walkthroughs, and our public experiment library: a starting point for your next study.
    Popular Cognitive Tests
    Stroop TestFlanker TaskN-back TaskImplicit Association TestTrail Making TestDigit SpanCorsi Block TappingTower of LondonBalloon Analog Risk TaskPreferential Looking
    Browse more →
    Questionnaires & Scales
    DASS-21GAD-7Rosenberg Self-Esteem ScalePHQ-9Ten-Item Personality InventoryBig Five Personality TestAdult ADHD Self-Report Scale
    Browse more →
    Public Experiment Library

    Take a look at what other researchers in the community are doing through our extensive, open catalog of shared studies.

    Open the public library →
    Walkthroughs

    Step-by-step builds of complete studies, from a blank project to a running experiment, that you can follow along or adapt.

    Building a Multi-user StudyWebcam Eye Tracking with AOIsWebsite Frame Eye TrackingConditional Eye Tracking Opt-inChatGPT StudyDesktop App Study with EEGBetween-subjects Group BalancingBuilding a Reading StudyStroop TaskLexical Decision Task
    Browse more →
    Research
    One platform for students, academics, and industry researchers studying human behavior.
    Harvard UniversityStanford UniversityCambridge UniversityUCLNYUMax Planck InstituteUCLATU Munich

    Trusted by researchers at 1,500+ universities worldwide

    Academic Research
    Arts ResearchClinical Psychology & Neuropsychology MedicineCognitive PsychologyDevelopmental PsychologyBehavioral Economics & Decision ScienceEducational Research & PsychologyHCI & Human FactorsLinguistics & Language SciencesConsumer & Marketing ResearchSocial & Personality PsychologySport & Movement ScienceUX & Website Testing
    Research Areas
    Executive FunctionsLanguage & ReadingDecision-Making & ReasoningAttention
    Industry / Commercial
    OverviewHCI & Human FactorsUX & Website TestingConsumer & Marketing ResearchWhite-Label AppPageGazer
    Researcher Interviews

    Conversations with researchers about the studies they ran with Labvanced, what worked, and what they learned.

    Webcam vs. Lab Eye Tracking in InfantsAnna Banki & Gabriela MarkovaEye Tracking for Influencer MarketingDr. Alexander EdelingEye Tracking Infant Word ComprehensionDr. Giulia CalignanoSentence Reading and Grammar JudgmentsDr. Jonathan MiraultRegulating Emotions with MusicDr. Katrin StarckeGame-Based Grammar Learning in ChildrenDr. Mireia MarimonGaze Cueing and AutismMax Soares MiehsteinPersonality and Hearing in NoiseDr. Malte Wöstmann
    All interviews →
    Our Research
    Lab NotesHow to Cite Labvanced
    Peer Reviewed Studies

    A selection of peer-reviewed work built on Labvanced: our own platform and validation papers, and studies by the research community grouped by area. Hundreds more are listed on the full publications page.

    Labvanced Platform Paper (2017)Webcam Eye Tracking Validation (2024)Webcam Eye Tracking StudiesCognitive Psychology StudiesDevelopmental Psychology StudiesLinguistics Studies
    See all publications →
    Resources
    Valuable resources to help you learn the platform, stay updated, and more.
    Documentation
    Getting StartedGuideVideo TutorialsWalkthroughs
    Support
    Live ChatWebinars & Onboarding CallsAI AssistantFAQ
    Templates & Demos

    These are a few popular examples. Browse our guide and a selection of technical demos to get started with implementation.

    Importing Templates GuideTest TemplatesLive Eye Tracking MetricsMouse Tracking DemoChatGPT DemoAudio Recording Object DemoAdding Image Stimuli DemoScore & Feedback Demo
    Browse all technical demos →
    Methodology
    Timing PrecisionStimuli PresentationHeadphone ChecksBot ChecksParticipant ManagementComparisonsResearch Blog
    Integrations & APIs
    Prolific IntegrationCloudResearch IntegrationSona Systems IntegrationBeSample IntegrationPanelabs IntegrationClickworker IntegrationLabvanced Webhook APILabvanced REST API
    Company & Legal
    About UsNewsletter ArchiveTerms & ConditionsData Security & Data PrivacyTechnical & Organisational MeasuresAccessibilityW-8BEN-E FormData Processing Agreement Template
    LinkedInYouTubeDiscord
    Pricing
    Our licenses and additional services at a glance.
    Licenses
    IndividualLabDepartment / ConsortiumTeachingCampusCommercial
    Top-Ups

    Need more recordings for your lab or your own research? Simply use one of these recording top-up packages.

    Browse top-up packages →
    Additional Services

    Hire Labvanced’s expert team to quickly bring your project to the level of rigor it needs.

    OverviewStudy BuildingSubject RecruitmentDedicated Support
    Checkout

    Ready to purchase a license or top-up? Head straight to checkout.

    Go to checkout →
    • 中國人
    • Deutsch
    • Français
    • Español
    • English
    • 日本語
    • 入门
    • 指南
      • 入门

        • 任务编辑器
        • 框架
          • 画布框架
          • 页面框架
          • 网站框架
        • 试验时间线
        • 刺激呈现
        • 反应的正确性
        • 对象
        • 事件
        • 变量
        • 任务向导
        • AI助手
        • 试验系统
        • 实验设计
          • 创建研究
          • 在 Labvanced 中导入模板
          • 数据框模式
          • 多用户实验设计
          • 纵向实验设计
      • 特色主题

        • 随机化与平衡
        • 眼动追踪
          • 在眼动追踪任务中呈现刺激
          • 如何选择眼动追踪校准设置
          • 在任务中设置眼动追踪
          • 记录和导出注视数据
          • 使用形状作为兴趣区域 (AOI) 进行眼动跟踪
          • 参与者校准体验
        • 网络桥接
          • 选择网站 AOI | 锚点、调整和验证 AOI 跟踪
          • 在网站区域(AOI)上跟踪鼠标行为 | Web Bridge指南
        • 问卷
        • 桌面应用
        • 示例研究
        • 参与者招募
        • API访问
          • REST API
          • Webhook API
          • WebSocket API
        • 其他主题

          • 精确刺激时序
          • 多用户研究
          • 头部追踪在 Labvanced 中 | 指南
      • 主应用标签

        • 概述:主标签
        • 仪表板
        • 我的研究
        • 共享研究
        • 我的文件
        • 实验库
        • 我的账户
        • 许可与服务
      • 研究标签

        • 概述:研究特定标签
        • 研究设计
          • 任务
          • 区块
          • 会话
          • 组
        • 任务编辑器
          • 任务控制
          • 试验系统
          • 框架类型
          • 对象
          • 对象属性表
          • 变量
          • 系统变量表
          • 事件系统
          • 文本编辑器功能
          • 任务编辑器中的眼动追踪选项
          • 任务中的头部追踪
          • 多用户研究
        • 设置
        • 变量
        • 媒体
        • 文本与翻译
        • 启动与参与
        • 受试者管理
        • 数据视图与导出
    • 视频教程
      • 视频概述
      • 在Labvanced中入门
      • 创建任务
      • 元素视频
      • 事件与变量
      • 高级主题
    • 演练
      • 介绍
      • 斯特鲁普任务
      • 词汇决策任务
      • 波斯纳注视提示任务
      • 变化盲点闪烁范例
      • 眼动追踪示例研究
      • 婴儿眼动追踪研究
      • 基于鼠标跟踪的注意力捕获研究
      • 快速串行视觉呈现
      • ChatGPT研究
      • 眼动追踪演示:SVG作为AOI
      • 多用户演示:显示受试者光标
      • 游戏手柄/摇杆控制器-基础设置
      • 集成EEG的桌面应用程序研究
      • 被试间组平衡和变量设置
      • 构建多用户研究
      • 网站框架眼动追踪演练
      • 条件性网络摄像头眼动追踪
      • 文本分割研究构建
      • 构建AI研究
    • 常见问题
      • 功能
      • 支持政策和指南
      • 安全与数据隐私
      • 许可
      • Labvanced的精确度
      • 编程使用与API
      • 离线使用Labvanced
      • 故障排除
      • 研究创建问题
    获取 URL 参数操作将参与者的 URL 中的值读取到 Labvanced 变量中

    获取 URL 参数操作

    Get URL Parameter 操作从参与者的 URL 中读取一个命名参数,并将其直接写入您选择的变量。它属于事件系统的 Variable Actions 类别。

    目录

    • 概述
    • 工作原理
    • 获取 URL 参数操作 vs. URL_Search_Params 系统变量
    • 工作流程提示
    • 研究与示例场景
    • 进一步阅读

    概述

    Labvanced 事件菜单中获取 URL 参数操作的位置

    在事件菜单的变量操作下定位 获取 URL 参数。

    参与链接可以承载超出 Labvanced 自动读取的信息,包括众包平台自己的目标参数,或来自另一个研究传递的值。Get URL Parameter 是如何从该链接中提取一个特定的命名参数并直接存储到变量中的。

    常见用例

    • 将众包平台自己的参数(例如 Besample 的 tc)直接读取到变量中,以便基于此分支研究逻辑。
    • 将父研究中的静态值通过子研究对象的 Query Parameters 字段传递到嵌入的 子研究 中。
    • 创建带有附加参数的自定义参与链接(参见 自定义 URL 参数),并将其中一个参数读取回变量中。

    工作原理

    要访问 Get URL Parameter,请在任务编辑器中打开 事件系统 并创建新的事件。首先选择一个触发器,例如 On Frame Start 或按钮点击,取决于要启动读取的内容。然后在 Add Action → Variable Actions 下选择 Get URL Parameter。

    选项描述
    Parameter nameURL 上显示的参数的确切名称, 不包含 & 或 =(例如 tc,而不是 &tc=)。匹配是区分大小写的。
    Save in Variable接收该值的变量。任何变量在这里都有效,并在常规变量选择菜单中正常显示。

    注意: 字符串变量是自然默认,因为 URL 值始终是文本;仅在值严格为数字并且您预计要对此进行进一步操作时使用数字变量。

    获取 URL 参数操作配置示例,参数名称设置为 tc,变量保存设置为 tc_display

    获取 URL 参数 配置为将 tc 读取到名为 tc_display 的变量中。

    该操作在事件触发时只读取该值一次。它不是实时绑定,因此请尽早触发它,以便在研究中的其他部分需要读取该值之前,该值已准备好。如果 URL 上不存在命名参数,结果取决于变量的数据类型:字符串变量被设置为空字符串,而数字变量被设置为 0(该操作读取为空字符串的内容被转换为数字)。

    原则上,参数值总是字符串,因为 URL 上的一切都是文本。字符串变量是自然的匹配,但当值严格是数字时,数字变量也有效,例如 tc 的国家代码,如果您的研究之后还需要进行进一步的数学操作,则实际上是更好的选择。

    获取 URL 参数操作 vs. URL_Search_Params 系统变量

    这并不是严格的非此即彼。URL_Search_Params 自动记录链接上的所有内容,无需设置。 Get URL Parameter 是较简单的选择,当您只需要一个特定的、已经命名的值时:一个操作,无需 JSON,无需代码。 如果实验设计需要,也可以将 URL_Search_Params 与 运行 JavaScript 操作 结合使用。

    在一个工作示例中并排查看这两种方法:从全局变量获取自定义 URL,这是一个读取同一 URL 参数两种方式的库研究,以便您可以直接比较结果。该库链接打开研究自己的介绍屏幕,然后给您一个链接以供复制。下面的 URL 是带有 tc 的同一播放器模式链接,因此您可以直接跳到比较。

    将此 URL 复制到您的浏览器中并尝试一下:

    https://www.labvanced.com/player.html?id=88576&tc=276

    工作流程提示

    • 准确匹配参数名称。 匹配是区分大小写的,因此 tc 和 TC 被视为不同的参数。
    • 写下裸名称,而不是完整查询片段。 字段接受 tc,而不是 &tc= 或 tc=;该操作会在内部构建其余的匹配项。
    • 考虑缺失参数的默认设置。 检查此变量的 Requirement Action 应该测试为空字符串(字符串变量)或 0(数字变量),而不是 null,当参数可能缺失时。
    • 在值需要之前触发它。 由于读取发生在事件触发时,因此将其放置在早期足够的触发器上,在任何显示或基于该值分支的框架之前。

    研究与示例场景

    读取众包平台的自有参数

    任何众包平台都可以将其自有参数附加到参与链接中,超出 Labvanced 已经自动读取的范围。只要您知道参数的名称,Get URL Parameter 就可以直接读取它,无论是哪种平台发送的。例如,Besample 研究可以附加 tc(目标国家):添加 Get URL Parameter,将 Parameter name 设置为 tc 并且 Save in Variable 设置为自定义变量(例如 Target_Country),即可立即准备好基于此分支逻辑。有关该特定设置,请参见 集成 Besample。

    将值传递到子研究

    子研究对象 使用 Get URL Parameter 使子研究可以读取父研究通过对象的 Query Parameters 字段附加到其参与链接的静态值,例如在两个关联研究之间携带参与代码或点值。

    进一步阅读

    事件系统

    事件系统

    Labvanced 中每个触发器和操作的完整参考。

    URL_Search_Params

    URL_Search_Params

    自动记录每个 URL 参数的全能系统变量,用于当您事先不知道哪些参数将出现时。

    运行 JavaScript 操作

    运行 JavaScript 操作

    如何使用自定义 JavaScript 读取和设置 Labvanced 变量,这是 URL_Search_Params 示例背后的操作。