How to send custom embedded data with survey | XM Community
Skip to main content
Hi, I would like to add custom embedded data along with the survey. For example: there are soms javascript variables on the page where the survey is. When the user submits the survey, a specific variable is send along with it, and i can use that variable later in my dashboards to filter the answers of all the surveys. Something like segmentation, but not quite the same.

Anyone know how i can do that?
Hi,



You can use the below code the set the embedded variable based on the custom JS logic.



Qualtrics.SurveyEngine.setEmbeddedData("CustomVariableName","value here");

Hi everyone! I'm also in a similar position. I'm using Qualtrics to record feedback data. However, I also want to record some metadata (

groupId
) around this. I'm passing the metadata through JavaScript according to the documentations mentioned. Below is my HTML code snippet:




I have included this in the base HTML file. Most of the script was mentioned in the documentation. I've only added the
addOnload
method. However, on my server, it says
Uncaught ReferenceError: Qualtrics is not defined
. Isn't the script supposed to define Qualtrics on its own? Could anyone point out what I'm missing here? Thanks!


Leave a Reply