Can a capture the browser size? | XM Community
Question

Can a capture the browser size?

  • 17 September 2020
  • 1 reply
  • 92 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

Userlevel 7
Badge +27

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());

Leave a Reply