Studies hosted on JATOS, Gorilla or Pavlovia can be integrated with Qualtrics in a way which allows information exchange in both directions: from the studies to Qualtrics, and vice versa. Both methods use [Query Strings https://en.wikipedia.org/wiki/Query_string] and typically involve redirecting participants to an online study after they have completed a Qualtrics survey; and/or redirecting participants to a Qualtrics survey after they have completed an online study.
Linking to Qualtrics
Assuming you already have a survey in Qualtrics, edit it and go to ‘Distributions’ and click ‘Get single reusable link’.
Step 1: OpenSesame
1 // example 2 var surveyUrl = 'https://leidenuniv.eu.qualtrics.com/jfe/form/SV_1SrURH8xI3jHbYV';
If you also want to send some variables from OpenSesame to Qualtrics you can add these to the link:
1 // example: sending variables to Qualtrics in Url 2 vars.favoriteColor = 'blue'; 3 surveyUrl += '?favoriteColor=' + vars.favoriteColor; // first argument starts with '?' 4 vars.subjectNr = 1; 5 surveyUrl += '&subjectNr=' + vars.subjectNr; // next arguments start with '&'
Note: It is also possible to send JATOS identifiers (e.g. studyId, workerId, batchId) to Qualtrics, see the example task for a demonstration.
Now instruct OpenSesame to open the link:
To save your experiment. Go to Tools -> OSWeb -> Export experiment as JATOS study
Step 2: JATOS
- Log in to JATOS.
- Go to Import Study.
- Import your experiment ZIP file (e.g. MyExperiment.osexp.zip).
- Go to your Study and then to ‘Worker & Batch Manager’ (green button).
- Assuming you want a unique link for each participant that is usable only once:
- ‘Get Worker Links’ -> Select ‘Personal Single’ -> ‘Next’ -> Specify the amount of links needed -> Next
- Save these links somewhere to give to your participants and for testing.
Note: You can also make multiple batches and you can use other types of workers (e.g. anonymous users, multiple runs per user, and so on.)
Step 3: Qualtrics
The final step in this process in receiving the data in Qualtrics. Data obtained from URLs is called ‘Embedded Data’ in Qualtrics. First you have to specify which information is in the URL:
- Edit your Survey
- Go to Survey Flow
- Add the names of the variables you send in the Url (e.g. subjectNr and favoriteColor in the example above). These names are case sensitive.
- Click options to specify the variable type (e.g. Number for subjectNr and Text for favoriteColor). Also see the image below.
Now how can you use this information in your survey?
Information from embedded data can be used in survey questions. To make it easy to use this data in this way, Qualtrics has the ‘Piped Text’ feature. More information about Piped Text is explained in the documentation.
Step 4: Testing
Open one of the JATOS Worker Links and check the experiment, the redirection to Qualtrics, and the information exchange.
Linking from Qualtrics