Can a capture the browser size? | XM Community
Skip to main content
Question

Can a capture the browser size?

  • September 17, 2020
  • 1 reply
  • 177 views

Hello everyone,
I am a new user to qualtrics and going through the tutorials, but I had a basic question. I know you can capture the screen resolution, but can you also record a survey takers browser window size? If so how?
I thought it might be after reading this: https://www.qualtrics.com/support/website-app-feedback/intercepts-tab/edit-intercept-section/action-set-logic/user-info-conditions/

1 reply

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • September 17, 2020

Yes, using JavaScript/jQuery. First define browserWidth and browserHeight embedded data fields in the survey flow. Then JS:
Qualtrics.SurveyEngine.setEmbeddedData("browserWidth",jQuery(window).width());
Qualtrics.SurveyEngine.setEmbeddedData("browserHeight",jQuery(window).height());