Which page's browser information is recorded in metadata variable UserAgent? | XM Community
Skip to main content
Solved

Which page's browser information is recorded in metadata variable UserAgent?

  • July 9, 2020
  • 4 replies
  • 72 views

Forum|alt.badge.img

It is said I can add UserAgent in the survey flow to record the agent's browser and device information. I wonder if the agent using different device and different browsers in different pages of the survey. Which page's browser information is recorded in UserAgent? I added UserAgent in the beginning of the survey flow before the first page of my survey is shown. Is the answer depending on where I add UserAgent as embedded data in the survey flow?

Best answer by SaurabhPujare_Ugam

Hi Pei_2009 ,

Yes, the position of the UserAgent embedded data in survey flow does matter.
Let say you have two blocks block 1 and block 2 and you have placed the UserAgent variable between the two blocks.
In this case, if respondent starts the survey with chrome and changes the browser to Mozilla before completing the block 1 questions and continues using Mozilla for the rest of the survey then in the UserAgent you will have Mozilla as a browser instead of chrome.

4 replies

SaurabhPujare_Ugam
QPN Level 5 ●●●●●
Forum|alt.badge.img+18

Hi Pei_2009 ,

Yes, the position of the UserAgent embedded data in survey flow does matter.
Let say you have two blocks block 1 and block 2 and you have placed the UserAgent variable between the two blocks.
In this case, if respondent starts the survey with chrome and changes the browser to Mozilla before completing the block 1 questions and continues using Mozilla for the rest of the survey then in the UserAgent you will have Mozilla as a browser instead of chrome.


Forum|alt.badge.img
  • Author
  • July 9, 2020

SaurabhPujare_Ugam Thanks so much for your answer. One quick follow-up question. I did not add UserAgent in the survey flow when I collected the data. I added UserAgent after the data is already collected. In this situation, does the position of the UserAgent embedded data in survey flow still matter?


SaurabhPujare_Ugam
QPN Level 5 ●●●●●
Forum|alt.badge.img+18

Hi Pei_2009
Not sure about this one, however, if you have not added the UserAgent variable while collecting the responses and added it later, I believe it captures the information of the last used browser.


Forum|alt.badge.img
  • Author
  • July 9, 2020

SaurabhPujare_Ugam This is also what I thought from my intuition. Thanks a lot for your asnwer.