Embedded JS data not inputting on Qualtrics Data & Analysis

19 Views Asked by At

I've need my survey to collected information on the page URL from which the survey was accessed from.

On the survey workflow, the referrer embedded should do this but it doesn't give me the full URL.

I've created a new field called RefURL as shown:

enter image description here

I've also edited the Java script for the first question on my survey, here's the code: enter image description here

Why doesn't this work?

1

There are 1 best solutions below

2
T. Gibbons On

If you use setJSEmbeddedData("RefURL",a) then you have to define the embedded data field in the survey flow as __js_RefURL.