Integration/URL parameter Issue (Prolific/Qualtrics/JATOS)
I am having an issue with saving my URL parameters while moving across platforms.
I am able to move from Prolific to Qualtrics while maintaining my "PROLIFIC_PID" in the URL.
In Qualtrics, I set this as "embedded data"
and then redirect to my JATOS study link calling the embedded data:
Within my js code, I use
var PROLIFIC_PID = jatos.urlQueryParameters.PROLIFIC_PID to then get the PID. I do this in all
html files (I have a "welcome" component that then moves to a different component based on the condition a worker is assigned, similar to the
However, when I run tests of the study through Prolific, the welcome page of the first component
a. does not have the URL parameters within the URL and
b. shows a console error:
TypeError: undefined is not an object (evaluating 'jatos.urlQueryParameters.PROLIFIC_PID')
When I remove this from my first component's
html file, the task runs as expected, but when I redirect to qualtrics (end redirect URL:
https://affiliation.co1.qualtrics.com/jfe/form/mysurvey?PROLIFIC_PID=[PROLIFIC_PID] the resulting URL says the
I am assuming that the embedded data and custom hyperlink made in Qualtrics during the first redirect is somehow not being sent to or read in by JATOS. Would love some help on this!