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
    • Browse recording top-ups →
    • Browse AI token top-ups →
    • Overview
    • Study Building
    • Subject Recruitment
    • Dedicated Support
    Checkout
  • Contact
    • JA
      • 中國人
      • Deutsch
      • Français
      • Español
      • English
      • 日本語
    • Logout
    • 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 recording top-ups →

    Need more AI tokens for the AI assistant and study translations? Simply use one of these AI token top-up packages.

    Browse AI token top-ups →
    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
    • 日本語
    • はじめに
    • ガイド
      • はじめに

        • タスクエディタ
        • フレーム
          • キャンバスフレーム
          • ページフレーム
          • ウェブサイトフレーム
          • オーバーレイとダイアログ | Labvanced
        • トライアルタイムライン
        • 刺激提示
        • 応答の正確性
        • オブジェクト
        • イベント
        • 変数
        • タスクウィザード
        • AIアシスタント
        • トライアルシステム
        • 実験設計
          • 研究の作成
          • Labvancedでのテンプレートのインポート
          • データフレームパターン
          • マルチユーザー実験デザイン
          • 縦断実験デザイン
      • 注目のトピック

        • ランダム化とバランス
        • アイ・トラッキング
          • 注視追跡タスクにおける刺激の提示
          • 眼球追跡キャリブレーション設定の選択方法
          • タスクにおける視線追跡の設定
          • 注視データの記録とエクスポート
          • 形状を興味領域 (AOI) として使用する方法
          • 参加者キャリブレーション体験
        • ウェブブリッジ
          • ウェブサイト AOI の選択 | アンカー、調整、および AOI トラッキングの検証
          • ウェブサイト AOI におけるマウスの動作の追跡 | ウェブブリッジガイド
        • アンケート
        • デスクトップアプリ
        • サンプル研究
        • 参加者募集
        • APIアクセス
          • REST API
          • Webhook API
          • WebSocket API
        • その他のトピック

          • 正確な刺激のタイミング
          • マルチユーザー研究
          • Labvancedにおける頭追跡 | ガイド
      • メインアプリタブ

        • 概要: メインタブ
        • ダッシュボード
        • 私の研究
        • 共有研究
        • 私のファイル
        • 実験ライブラリ
        • 私のアカウント
        • ライセンスとサービス
      • 研究タブ

        • 概要: 研究特有のタブ
        • 研究デザイン
          • タスク
          • ブロック
          • セッション
          • グループ
        • タスクエディタ
          • タスクコントロール
          • 試行システム
          • フレームタイプ
          • オブジェクト
          • オブジェクトプロパティテーブル
          • 変数
          • システム変数表
          • イベントシステム
          • テキストエディタの機能
          • タスクエディタにおける視線追跡オプション
          • タスクにおけるヘッドトラッキング
          • マルチユーザー研究
        • 設定
        • 変数
        • メディア
        • テキストと翻訳
        • 開始と参加
        • 被験者管理
        • データビューとエクスポート
    • ビデオチュートリアル
      • ビデオ概要
      • Labvancedの始め方
      • タスクの作成
      • エレメントビデオ
      • イベントと変数
      • 高度なトピック
    • ウォークスルー
      • イントロダクション
      • ストループタスク
      • 語彙的意思決定タスク
      • ポズナー注視キューイングタスク
      • 変化盲目的フリッカーのパラダイム
      • 眼球追跡サンプル研究
      • 乳児眼球追跡研究
      • マウストラッキングによる注意捕捉研究
      • 迅速な連続視覚提示
      • ChatGPT研究
      • 眼球追跡デモ:AOIとしてのSVG
      • マルチユーザーデモ:被験者のカーソルを表示
      • ゲームパッド / ジョイスティックコントローラ - 基本設定
      • EEG統合付きデスクトップアプリ研究
      • 被験者間グループのバランスと変数設定
      • マルチユーザー研究の構築
      • ウェブサイトフレーム眼球追跡ウォークスルー
      • 条件付きウェブカメラ眼球追跡
      • テキストセグメンテーション研究の構築
      • AIを使った研究の構築
    • FAQ
      • 機能
      • サポートポリシーとガイドライン
      • セキュリティとデータプライバシー
      • ライセンス
      • Labvancedの精度
      • プログラマティック使用とAPI
      • Labvancedをオフラインで使用する
      • トラブルシューティング
      • 研究作成に関する質問
    Labvancedにおける受信パスメッセージの発火するPostMessage 受信トリガー

    PostMessage 受信トリガー

    PostMessage Received トリガーは、実行中の Labvanced 実験がブラウザの postMessage API を介して外部ソースからの受信メッセージを取得したときに発火します。これを使用して、あなたの研究を親ウェブページ、カスタムアプリケーション、または実験に直接データを送信する埋め込まれた外部ウェブサイトに接続できます。

    目次

    • 概要
    • 二方面のセットアップ
    • 動作原理
    • トリガーオプション
    • トリガー特有の値
    • さらなる読み物

    概要

    PostMessage Received トリガーは、トリガー選択メニューの API/External Trigger の下にリストされています。

    Labvanced イベントエディタで API/外部トリガーカテゴリから PostMessage 受信トリガーを選択している様子。

    PostMessage 受信トリガーをイベントエディタのAPI/外部トリガーの下で見つけた。

    一般的な使用例

    • 埋め込まれたウェブサイトがユーザーのインタラクションイベント(クリック、フォームの完了)を構造化された postMessages として Labvanced に転送する。
    • 親アプリケーション(例:カスタム LMS や機関のウェブポータル)が実験を進めたり参加者データを渡すためにメッセージを送信する。
    • 外部スクリプトが実験ロジックの特定のポイントをトリガーする JavaScript ドリブンの統合。

    二方面のセットアップ

    Labvanced と外部ページ(iFrame や親アプリケーションなど)との間で postMessage を使用することは、二方面のプロセスです。Labvanced は片方を処理します:このトリガーは受信メッセージを待ち受けます。もう片方は外部ページであり、そこはメッセージを送信するようプログラムされている必要があります。

    postMessage API は標準のブラウザ機能です。外部ページは window.parent.postMessage(data, targetOrigin) を呼び出してデータを Labvanced に送信します。あなたまたはあなたの開発者がそのコードを書く必要があります。AI コーディングツールもその設定を手助けすることができ、コンテキストを与えることで迅速に生成できます。

    一般的なパターンは、外部ページが自分のユーザーイベント(クリック、フォーム提出、サインアップなど)を待ち受け、各イベントを Labvanced に対する postMessage として転送することです。各イベントタイプは、click_event、signup_event などのラベルでタグ付けすることができ、Labvanced はそれぞれを個別にフィルタリングし、応答することができます。

    動作原理

    実験が実行中のとき、Labvanced は受信 postMessage を待ち受けます。メッセージが到着するたびに、次の二つを確認します:

    • オリジンドメイン:このメッセージは許可されたソースから来ているか?
    • キー:このメッセージは期待されるキー値を持っているか(設定されている場合)?

    両方の条件を満たす場合、トリガーが発火し、メッセージのペイロードがあなたのアクションで Message Content として利用可能になります。

    外部ページはメッセージを送信する責任があります。それは独自のコードで window.parent.postMessage(data, targetOrigin) を呼び出すことで行います。送信される data は何でもかまいません:プレーンな文字列、構造化値、またはイベントラベルです。Labvanced の Key フィールドは、そのラベルの特定の値をマッチさせて、異なるタイプのメッセージを区別する方法です。

    各メッセージタイプは Labvanced において独自のイベントを持つことができます。例えば、あるイベントは外部ページがクリックを報告した際に Key: click_event を使用して発火し、別のイベントはフォーム提出を報告する際に Key: signup_event を使用して発火します。


    PostMessage Received を選択すると、次のダイアログが表示されます:

    Labvanced における PostMessage 受信トリガーの設定ダイアログ、オリジンドメインとキーのフィールドを表示。

    PostMessage 受信トリガーの設定オプション。受信メッセージ値はメッセージ内容としてエクスポートされます。

    トリガーオプション

    メニュー項目PostMessage 受信トリガーオプション
    Origin Domainこのトリガーにメッセージを送信することが許可されたドメインを指定します。デフォルト値は * で、任意のオリジンからのメッセージを受け入れます。特定のソースにトリガーを制限するには、* を完全なオリジン URL(例:https://yoursite.com)に置き換えてください。送信元が知られている場合は推奨されます。
    Keyこのトリガーが一致させたい特定のキー値を入力します(例:click_event、signup_event)。受信メッセージがその正確なキー値を持つ場合のみトリガーが発火します。フィールドを空のままにすると、内容に関係なく任意の受信メッセージで発火します。

    注:受信メッセージ値はメッセージ内容としてエクスポートされ、値選択メニューを介してアクションで参照できます。


    PostMessage 受信のトリガー特有の値

    PostMessage Received トリガーを選択した後、次のトリガー特有の値をその後のアクションで Value-Select Menuを介して参照できます。

    値説明
    Message Content受信した postMessage のデータペイロード。これは外部ソースによって送信された値で、変数に保存したり、ロジックを駆動させたり、データセットの一部として記録したりできます。
    Trigger Timestamp (Unixtime)トリガーが発火した時刻の Unix 時間。
    Trigger Time (From Frame Onset)現在のフレームの開始からトリガーが発火するまでのミリ秒数。

    さらなる読み物

    Send PostMessage Action

    Send PostMessage Action

    外部ソースにメッセージを送り返すためのペアとなるアクション。

    Value Select Menu

    Value Select Menu

    アクションでトリガー特有の値を参照する方法。

    Events Overview

    Events Overview

    Labvanced におけるトリガーとアクションのロジックシステムの完全な紹介。