Sequence of URLs: Difference between revisions

Jump to navigation Jump to search
Line 54: Line 54:


As the three URLs in ''Sequence'' you input  (mutatis mutandis):
As the three URLs in ''Sequence'' you input  (mutatis mutandis):
* 0: https://questions.socsci.ru.nl/index.php/654321 (change the 6 digit number to your limesurvey number)
<ol>
* 1: https://radboud.sona-systems.com/services/SonaAPI.svc/WebstudyCredit?experiment_id=12345&credit_token=123456789abcdef (take your SONA completion url)
<li value="0"><code><nowiki>https://questions.socsci.ru.nl/index.php/654321</nowiki></code> (change the 6 digit number to your limesurvey number)</li>
* 2: https://app.prolific.co/submissions/complete?cc=ABC123 (take your the Prolific completion url)
<li value="1"><code><nowiki>https://radboud.sona-systems.com/services/SonaAPI.svc/WebstudyCredit?experiment_id=12345&credit_token=123456789abcdef</nowiki></code> (take your SONA completion url)</li>
Note that we leave out the last part of the completion URL that the SONA experiment page gives (&survey_code=XXXXXX) since that is taken care of by ''Sequence''
<li value="2"><code><nowiki>https://app.prolific.co/submissions/complete?cc=ABC123</nowiki></code> (take your the Prolific completion url)</li>
</ol>
 
ℹ️ We leave out the last part of the completion URL that the SONA experiment page gives (&survey_code=XXXXXX) since that is taken care of by ''Sequence''


As the SONA study url you should use without ''Sequence'':
As the SONA study url you should use without ''Sequence'':
* https://questions.socsci.ru.nl/index.php/654321?survey_code=%SURVEY_CODE%
<pre>https://questions.socsci.ru.nl/index.php/654321?survey_code=%SURVEY_CODE%</pre>
but because you use ''Sequence'' you replace the first part:
but because you use ''Sequence'' you replace the first part:
* https://www.socsci.ru.nl/tsg/sequence/123456/0?survey_code=%SURVEY_CODE%
<pre>https://www.socsci.ru.nl/tsg/sequence/123456/0?survey_code=%SURVEY_CODE%</pre>


As the Prolific study url you should use without ''Sequence'':
As the Prolific study url you should use without ''Sequence'':
* https://questions.socsci.ru.nl/index.php/654321?PROLIFIC_PID={{%PROLIFIC_PID%}}&STUDY_ID={{%STUDY_ID%}}&SESSION_ID={{%SESSION_ID%}}
<pre>https://questions.socsci.ru.nl/index.php/654321?PROLIFIC_PID={{%PROLIFIC_PID%}}&STUDY_ID={{%STUDY_ID%}}&SESSION_ID={{%SESSION_ID%}}</pre>
but with ''Sequence'' you replace the first part:
but with ''Sequence'' you replace the first part:
* https://www.socsci.ru.nl/tsg/sequence/123456/0?PROLIFIC_PID={{%PROLIFIC_PID%}}&STUDY_ID={{%STUDY_ID%}}&SESSION_ID={{%SESSION_ID%}}
<pre>https://www.socsci.ru.nl/tsg/sequence/123456/0?PROLIFIC_PID={{%PROLIFIC_PID%}}&STUDY_ID={{%STUDY_ID%}}&SESSION_ID={{%SESSION_ID%}}</pre>
Note that you only enter the part up to but not including the question mark in Prolific and Polific will add the rest.
Note that you only enter the part up to but not including the question mark in Prolific and Polific will add the rest.


All that we now have to do is set a Limesurvey ''end url'' that points either to SONA or to Prolific:
All that we now have to do is set a Limesurvey ''end url'' that points either to SONA or to Prolific:
* https://www.socsci.ru.nl/tsg/misc/redirect.php?url={if(is_empty('{PASSTHRU:PROLIFIC_PID}'), 'https://www.socsci.ru.nl/tsg/sequence/123456/1', 'https://www.socsci.ru.nl/tsg/sequence/123456/2')}
<pre>https://www.socsci.ru.nl/tsg/misc/redirect.php?url={if(is_empty('{PASSTHRU:PROLIFIC_PID}'), 'https://www.socsci.ru.nl/tsg/sequence/123456/1', 'https://www.socsci.ru.nl/tsg/sequence/123456/2')}</pre>
which in normal English means something like: if there is ''no'' PROLIFIC PID, go to ''Sequence'' page 1, otherwise go to ''Sequence'' page 2.
which in normal English means something like: if there is ''no'' PROLIFIC PID, go to ''Sequence'' page 1, otherwise go to ''Sequence'' page 2.