﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 4  » How to measure time spent on a survey page</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 11 May 2026 14:46:09 GMT</lastBuildDate><ttl>20</ttl><item><title>How to measure time spent on a survey page</title><link>https://forums.millisecond.com/Topic16654.aspx</link><description>Hi guys!&lt;br/&gt;&lt;br/&gt;I want my participants to read instruction carefully and then a few consecutive pages with a story. It's crucial for me to know how long people spend on reading those information.&amp;nbsp;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333330154419px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;I'd really appreciate if you could help me with getting the information how long a participant spend on reading instructions and other survey pages?&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;I've already checked the forum (also this thread&amp;nbsp;&lt;a href="http://www.millisecond.com/forums/Topic15376.aspx?Keywords=survey"&gt;http://www.millisecond.com/forums/Topic15376.aspx?Keywords=survey&lt;/a&gt; with clock option but I don't know how to apply this without clock being visible for the participants).&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I'd like to avoid putting a random item/question to every page to get information about reaction times.&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;Gabriela</description><pubDate>Wed, 08 Jul 2015 02:26:47 GMT</pubDate><dc:creator>Gabriela</dc:creator></item><item><title>RE: How to measure time spent on a survey page</title><link>https://forums.millisecond.com/Topic16677.aspx</link><description>Thanks for clarification!</description><pubDate>Wed, 08 Jul 2015 02:26:47 GMT</pubDate><dc:creator>Gabriela</dc:creator></item><item><title>RE: How to measure time spent on a survey page</title><link>https://forums.millisecond.com/Topic16665.aspx</link><description>Latency measurement starts with the 1st (relevant) display frame Inquisit can sync to. /ontrialbegin logic is executed before that; hence the result of the calculation in expressions.timespentonpage will be slightly larger. Whether you analyze latency or the expression's result is largely a matter of preference, IMO. Both will be highly correlated.&lt;br/&gt;</description><pubDate>Mon, 06 Jul 2015 08:09:17 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: How to measure time spent on a survey page</title><link>https://forums.millisecond.com/Topic16663.aspx</link><description>Thank you Dave. This code works perfectly!&amp;nbsp;&lt;br/&gt;&lt;br/&gt;One more question: in my data files I have two variables:&lt;strong&gt; latency&lt;/strong&gt; and&amp;nbsp;&lt;strong&gt;expressions.timespentonpage&lt;/strong&gt;. They show similar results but there's always a few ms difference that usually varies between 10 and 100ms, e.g. latency:&amp;nbsp;3438 vs. expressions.timespentonpage: 3506, or latency:49226 vs.expressions.timespentonpage:49260. Where's that difference coming from? And which variable should I analyze in this case?&lt;br/&gt;&lt;br/&gt;Side note for the future novice users: make sure that you use /finishlabel command not /nextlabel one (this one doesn't work here).</description><pubDate>Mon, 06 Jul 2015 08:01:10 GMT</pubDate><dc:creator>Gabriela</dc:creator></item><item><title>RE: How to measure time spent on a survey page</title><link>https://forums.millisecond.com/Topic16658.aspx</link><description>You cannot really do this using *instruction* pages (i.e., &amp;lt;page&amp;gt; or &amp;lt;htmlpage&amp;gt; elements displayed via /pre- and /postinstructions attributes). With &amp;lt;surveypage&amp;gt;s, you can do something like this:&lt;br/&gt;&lt;br/&gt;&amp;lt;block instructionsblock&amp;gt;&lt;br/&gt;/ trials = [1=page1; 2=page2;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage page1&amp;gt;&lt;br/&gt;/ caption = "Page 1"&lt;br/&gt;/ ontrialbegin = [values.t_start=script.elapsedtime;]&lt;br/&gt;/ ontrialend = [values.t_end=script.elapsedtime;] &lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;/ finishlabel = "Next"&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage page2&amp;gt;&lt;br/&gt;/ caption = "Page 2"&lt;br/&gt;/ ontrialbegin = [values.t_start=script.elapsedtime;]&lt;br/&gt;/ ontrialend = [values.t_end=script.elapsedtime;] &lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;/ finishlabel = "Next"&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ t_start = 0&lt;br/&gt;/ t_end = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expressions&amp;gt;&lt;br/&gt;/ timespentonpage = (values.t_end-values.t_start)&lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = [date time subject blocknum blockcode trialnum trialcode response latency correct expressions.timespentonpage]&lt;br/&gt;/ separatefiles = true&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;Note: You need to run your surveypages via a &amp;lt;block&amp;gt;.&lt;br/&gt;</description><pubDate>Sat, 04 Jul 2015 05:20:48 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>