How to import variables from JSON String in session storage / data layer | XM Community
Skip to main content

Hello,

we have set up a key within the session storage of our project website which holds multiple variables in JSON notation.

When I try to import distinct variables (e.g. LoginStatus) from this JSON object as embedded data by the intercept and catch the result up with our survey, the value is set to “undefined”.

 

This is what I have configured in the intercept:

  • Embedded data type: Value from JavaScript
  • Value: window.sessionStorage.QUALTRICS_DATA.LoginStatus
  • Name: LoginStatus

This is what I have configured in the survey:

 

This data is stored when I take the survey:

  

 

Does anyone happen to know what I need to change in order to make it work?

 

Best,

Tim

Be the first to reply!

Leave a Reply