Limesurvey advanced, Panel integration
In this lesson you will learn how to link a survey with MTurk, SONA, Prolific, a custom (JsPsych) experiment or plain HTML. We will start with the latter, because that is the most intuitive one to implement and the basis of the others. If you do not know HTML, read it anyway, you will see later what it was good for.
Note this linking is a far more common technique than the Alien embedding that will be covered later.
Simple link
Imagine you want people to answer a couple of questions after an online experiment. You want these questions asked in your trusted Limesurvey instance on the Radboud University servers. That is not too complicated. You look up the URL of the survey you made for this, for instance: https://survey.socsci.ru.nl/123456. All you have to do now is make a link to the survey in your experiment.
HTML
in HTML it would look like this:
<a href="https://survey.socsci.ru.nl/123456">Click to continue to survey</a>People can click the text: Click to continue to survey and will be directed to the survey
Link with participant's id
But that is the easy part. We usually want to combine the data in the experiment with the data in the survey. Therefore we need the experiment to send the participant's id. That can be done with a URL parameter. That is, the id is sent as a parameter in the very link, the URL:
<a href="https://survey.socsci.ru.nl/123456?ppn=123">Click to continue to survey</a>Here we have a parameter called ppn that has the value 123. All we have to do now is to instruct Limesurvey to store this
parameter as if it were a question. That's not too hard. We first make an actual question. By convention we call it PPN
and make it of type Short text:
Then we go to to Survey menu -> Panel integration, click Add URL parameter, call it ppn and link it to the target question:
Please test the survey now. If you open the survey https://survey.socsci.ru.nl/123456?lang=en&newtest=Y?ppn=123 The question named ppn should have an answer 123. If that works, you can now hide the question:
Simple link, others
Meny different systems offer a way to link to our survey. We mention a few:
JsPsych
In JsPsych for instance that would look like this: jsPsych.init({ on_finish: async () => window.location.assign("https://survey.socsci.ru.nl/123456") })Prolific
In Prolific it would look like this:
SONA
In SONA it would look like this:
University privacy rules do not allow me to look up how it works in MTurk, but I trust that you get the idea.
Link with participant's id, others
The beauty is now that all these systems also offer a way to send some information to the survey, usually the participant id, but there is really no limit to what can be send:
Prolific
https://survey.socsci.ru.nl/123456?PROLIFIC_PID={{%PROLIFIC_PID%}}&STUDY_ID={{%STUDY_ID%}}&SESSION_ID={{%SESSION_ID%}}
SONA
https://survey.socsci.ru.nl/123456?ppn=%SURVEY_CODE%
https://www.sona-systems.com/help/limesurvey/ https://radboud.sona-systems.com/webstudy_credit.aspx?experiment_id=123&credit_token=12345678abcdef&survey_code= where your replace 12345678abcdef with the Credit Token given in your SONA Study Information page.