Count number of times play button clicked on video | XM Community
Skip to main content
Solved

Count number of times play button clicked on video

  • July 25, 2019
  • 1 reply
  • 81 views

Forum|alt.badge.img+3
I would like to record how many times the play button of a video was clicked.

Best answer by JeremyK

Hey @profjm, The only way I can think of is a click eventListener on the video and adding one to a Counter variable, then using the Qualtrics question API setEmbeddedData to write the value back to the survey. This makes the result visible for use in the Data & Analysis tab. You _may_ be able to write a report that does the math for you, or perhaps an action that adds up the Counter variable for all surveys taken, but you could still get your result the 'old fashioned' way by showing that field in Data & Analysis and adding up the numbers in the column.

1 reply

JeremyK
Level 3 ●●●
Forum|alt.badge.img+7
  • Level 3 ●●●
  • 209 replies
  • Answer
  • August 16, 2019
Hey @profjm, The only way I can think of is a click eventListener on the video and adding one to a Counter variable, then using the Qualtrics question API setEmbeddedData to write the value back to the survey. This makes the result visible for use in the Data & Analysis tab. You _may_ be able to write a report that does the math for you, or perhaps an action that adds up the Counter variable for all surveys taken, but you could still get your result the 'old fashioned' way by showing that field in Data & Analysis and adding up the numbers in the column.