Measure time spent on a page

52 views
Skip to first unread message

Aniko Maraz

unread,
Feb 21, 2018, 11:14:02 AM2/21/18
to formr
Hello Everyone, 

I was wondering if I can measure how much time participants spend "in between submits" in a survey.  Take a snapshot of their server's time when hitting the 1st submit button, and another when they hit the 2nd submit? How exactly do I do that?
My aim is to check how much time they spend on the given page to watch a video (if they spend less time than the length of the video, it indicates that they did not watch it, and so I'll remove them later from the data). 

Thanks!
Aniko

Ruben Arslan

unread,
Feb 21, 2018, 11:34:11 AM2/21/18
to Aniko Maraz, formr
Hi Aniko,

for this you can use the item display data. If you go to the results of your survey, top right. You can subtract e.g. shown_relative from answered_relative for the client-side measure (javascript, sub-millisecond precision, could be faked although your participants probably won't care enough). Or use answered/shown if your participants may have old browsers that don't support sub-millisecond precision.

survey <- survey %>% 
  mutate(
    time_to_response = answered_relative - shown_relative
)

It may take a while to download this data, if you have a big sample.

Best,

Ruben

--
You received this message because you are subscribed to the Google Groups "formr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to formr+un...@googlegroups.com.
To post to this group, send email to fo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/formr/f145641e-a59e-47ac-803d-3ffe5374dddd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Ruben C. Arslan

Center for Adaptive Rationality
Max Planck Institute for Human Development
Berlin, Germany
https://www.mpib-berlin.mpg.de/en/staff/ruben-arslan
https://formr.org
http://www.the100.ci

Maráz Anikó

unread,
Feb 22, 2018, 4:23:58 AM2/22/18
to Ruben Arslan, formr
Hi Ruben, 

Exactly what I was looking for, thanks! :)  I didn't know formr records this information by default.

Aniko


On 21 February 2018 at 17:33, Ruben Arslan <ruben...@gmail.com> wrote:
Hi Aniko,

for this you can use the item display data. If you go to the results of your survey, top right. You can subtract e.g. shown_relative from answered_relative for the client-side measure (javascript, sub-millisecond precision, could be faked although your participants probably won't care enough). Or use answered/shown if your participants may have old browsers that don't support sub-millisecond precision.

survey <- survey %>% 
  mutate(
    time_to_response = answered_relative - shown_relative
)

It may take a while to download this data, if you have a big sample.

Best,

Ruben

On Wed, Feb 21, 2018 at 5:14 PM Aniko Maraz <aniko...@gmail.com> wrote:
Hello Everyone, 

I was wondering if I can measure how much time participants spend "in between submits" in a survey.  Take a snapshot of their server's time when hitting the 1st submit button, and another when they hit the 2nd submit? How exactly do I do that?
My aim is to check how much time they spend on the given page to watch a video (if they spend less time than the length of the video, it indicates that they did not watch it, and so I'll remove them later from the data). 

Thanks!
Aniko

--
You received this message because you are subscribed to the Google Groups "formr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to formr+unsubscribe@googlegroups.com.

To post to this group, send email to fo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/formr/f145641e-a59e-47ac-803d-3ffe5374dddd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages