Daisy-chaining Prolific > Qualtrics 1 > Pavlovia > Qualtrics 2 > Prolific

URL of experiment: lat_n1 [PsychoPy]

Description of the problem:

Hi!

I want to recruit participants using prolific and send them to a qualtrics survey with my consent form. If they agree to participate in the study, qualtrics will take their prolific ID from the URL and we will randomly assign them to 1 of 3 pavlovia experiments (using qualtrics survey flow to achieve this and works well). They will complete the pavlovia experiment and be directed to a second qualtrics survey (all participants take the same qualtrics survey) to collect demographics, answer surveys and ask questions about the pavlovia experiment (the redirecting also works well, participants make it to the end). The part I am really struggling with is carrying the prolific IDs all the way through this path. I can’t seem to get the PROLIFIC IDs to Pavlovia from Qualtrics 1 or Prolific.

Qualtrics 1: I created an embedded variable called PROLIFIC_PID.


One of the pavlovia redirect links at the end of qualtrics 1 (all 3 follow this format):

https://run.pavlovia.org/lffa2021/lat_n1/index.html?participant={{%PROLIFIC_PID%}}&study_id={{%STUDY_ID%}}&session={{%SESSION_ID%}}

Link to qualtrics 2 at the end of the pavlovia experiments:
Qualtrics Survey | Qualtrics Experience Management" +expInfo[ā€˜participant’]

Just like in qualtrics 1 I created an embedded variable called PROLIFIC_PID + a question so that participants can check the correctness of the ID.

When I pilot the experiment on pavlovia I get a randomly generated participant number and when I get directed to qualtrics pt2 the participant number carries over. However, when we ran a test run on prolific it did not work, the participant variable in the pavlovia dataframe saved as
{{%PROLIFIC_PID%}}.

Does anyone know what is going on? Happy to provide more info if needed!

Thank you so much!

I am struggling to grasp all parts, but what would greatly help is if you listed all URLs. My immediate answer is that parameters in your URLs are not right. For example, when you redirect participants from Qualtrics, the URL should look like this:
https://mypavlovialink.org?participant=${e://Field/PROLIFIC_PID}

When you redirect from Pavlovia to Qualtrics, it should look like this:
https://myqualtricslink.com?PROLIFIC_PID= + expInfo['participant']

I should also add that, to the best of my knowledge, you won’t be able to tests this using the piloting mode on Pavlovia.

Hope this helps.

That seems to be a Qualtrics issue.

Launch the Qualtrics adding &PROLIFIC_PID=TEST to the end of the preview URL (or ?PROLIFIC_PID=TEST if you use the anonymous URL). You should see TEST in your ID check. However,

Have a look at the URL in the browser header when you submit the Qualtrics. you aren’t using Qualtrics syntax at the end

Instead of https://run.pavlovia.org/lffa2021/lat_n1/index.html?participant={{%PROLIFIC_PID%}}

it should be https://run.pavlovia.org/lffa2021/lat_n1/?participant=${e://Field/PROLIFIC_PID}

Hello!

Thank you so much for the reply. I made the changes and tested it using ?PROLIFIC_PID=TEST. This worked for the first qualtrics survey, however, it did not carry over to pavlovia, in fact the participant variable still saved as {{%PROLIFIC_PID%}} which is very weird since that is not part of the URL anymore. Any advice?

Thank you!

I suspect you are still using the wrong code somewhere.

This video might help:

If you could list all the links that you are using, it would be much easier to track down what triggers the error.

Hi! Thanks for the help!

Turns out I needed to republish my qualtrics experiment, lol.

Now I’m running into an issue with the second part of my qualtrics, the prolific ID doesn’t carry over instead it reads ā€œ+expInfo['participant’]ā€.

I’m sorry about the links, I will try to post them all. The forum changes my links when I try to paste them in and I hadn’t figured out a way to fix it.

Qualtrics 1:
https://pomona.az1.qualtrics.com/jfe/form/SV_6JrRViwL7YcjwZU/?PROLIFIC_PID=TEST

Pavlovia: redirect from q1
https://run.pavlovia.org/lffa2021/lat_n1/?participant=${e://Field/PROLIFIC_PID}

Qualtrics 2: Pasted in the online section of psychopy
$"https://pomona.az1.qualtrics.com/jfe/form/SV_6eYjMHri4S93S3s/?PROLIFIC_PID= + expInfo['participant']"

In Qualtrics 2 you appear to end your quotes after the variable. You should end your quotes after the = sign, i.e.

$"https://pomona.az1.qualtrics.com/jfe/form/SV_6eYjMHri4S93S3s/?PROLIFIC_PID=" + expInfo['participant']

1 Like

Thank you so much! It works now!

I’ve been having trouble doing this for multiple variables and have not found threads on this specifically. I want to carry forward ID and group condition. I’ve tried this with no success: $ā€œhttps:/qualtricssurveylink?ID=ā€ + expInfo[ā€˜participant’] + ā€œ&group=ā€ + expInfo['group’]. It seems to work fine when I limit to one (the web address is changed to avoid hyperlinking).