Qualtrics linking

From Solowiki
Jump to navigation Jump to search

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

Under construction

Add variables to

  • Survey Flow
  • Add Embedded Data
  • Add a new field -> name of variable

OSWeb/JATOS Implementation

Under construction.

Step 1: OpenSesame

Assuming you already have a survey in Qualtrics, edit it and go to ‘Distributions’ and click ‘Get single reusable link’.

In OpenSesame, add a inline_javascript object:

todo: image Figure 1: The inline_javascript object. If you don’t have the OSWeb section in the OpenSesame toolbar, please upgrade your OpenSesame to the latest version.

Then, in the new object, copy the Qualtrics link and store it in a JavaScript variable:

1 var surveyUrl = 'https://leidenuniv.eu.qualtrics.com/jfe/form/SV_1SrURH8xI3jHbYV';

Now add the variables you want to send to the link:

1 vars.subjectNr = 1; vars.favoriteColor = 'blue'; surveyUrl += '?favoriteColor=' + vars.favoriteColor; // first argument starts with '?' 
2 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:

1 window.open(surveyUrl);

To save your experiment. Go to Tools -> OSWeb -> Export experiment as JATOS study

Step 2: JATOS

Linking from Qualtrics

Under construction.

OSWeb/JATOS Implementation

Under construction.