Sequence of URLs: Difference between revisions

Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 34: Line 34:
* https://app.prolific.co/submissions/complete?cc=FJ2UID24
* https://app.prolific.co/submissions/complete?cc=FJ2UID24


You may have never done this before by hand, since it is done for you by [[URL Composer]]. This works but typically we want to make it even more complicated. The experiment wants to keep track of the ''prolific pid'' to identify unique participants. In the past we could use [[URL Composer]] for an even more complicated URL, but that no longer works (2023-06-16) therefore we need [https://www.socsci.ru.nl/tsg/sequence Sequence of URLs], a small tool that makes aliases for the three URLs in your experiment and keeps track of the ''prolific pid'' for you. Just enter the three URLs there:
You may have never done this before by hand, since it is done for you by [https://www.socsci.ru.nl/tsg/composer/ URL Composer]. This works but typically we want to make it even more complicated. The experiment wants to keep track of the ''prolific pid'' to identify unique participants. In the past we could use [https://www.socsci.ru.nl/tsg/composer/ URL Composer] for an even more complicated URL, but that no longer works (2023-06-16) therefore we need [https://www.socsci.ru.nl/tsg/sequence Sequence of URLs], a small tool that makes aliases for the three URLs in your experiment and keeps track of the ''prolific pid'' for you. Just enter the three URLs there:


* https://questions.socsci.ru.nl/index.php/654321?url=https://www.socsci.ru.nl/tsg/sequence/123456/1
* https://questions.socsci.ru.nl/index.php/654321?url=https://www.socsci.ru.nl/tsg/sequence/123456/1
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.
:ℹ️ 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.