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

**URL:** <https://discourse.psychopy.org/t/daisy-chaining-prolific-qualtrics-1-pavlovia-qualtrics-2-prolific/40515>\
**Category:** Online experiments\
**Tags:** forum\
**Created:** [June 20, 2024, 9:17pm UTC](https://discourse.psychopy.org/t/daisy-chaining-prolific-qualtrics-1-pavlovia-qualtrics-2-prolific/40515 "2024-06-20T21:17:39Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![lffa2021](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@lffa2021](https://discourse.psychopy.org/u/lffa2021)\
**Post date:** [June 20, 2024, 9:17pm UTC](https://discourse.psychopy.org/t/daisy-chaining-prolific-qualtrics-1-pavlovia-qualtrics-2-prolific/40515/1 "2024-06-20T21:17:39Z")

</div>

URL of experiment: [lat\_n1 [PsychoPy]](https://run.pavlovia.org/lffa2021/lat_n1)

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.

 ![Screenshot 2024-06-20 at 23.01.35](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/0/4/04bb086b50d11e45fe3c7cd81ff9a9c2dcdc05c3.png)  
 ![Screenshot 2024-06-20 at 23.11.49](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/c/0/c0478237563393442808b13837e01e84bbc20cfb.png)

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%}}](https://run.pavlovia.org/lffa2021/lat_n1/index.html?participant=%7B%7B%25PROLIFIC_PID%25%7D%7D&study_id=%7B%7B%25STUDY_ID%25%7D%7D&session=%7B%7B%25SESSION_ID%25%7D%7D)

Link to qualtrics 2 at the end of the pavlovia experiments:  
[Qualtrics Survey | Qualtrics Experience Management](https://pomona.az1.qualtrics.com/jfe/form/SV_6eYjMHri4S93S3s/?PROLIFIC_PID=)" +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%}}.

 ![Screenshot 2024-06-20 at 23.14.46](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/d/4/d4932f4fbdb2bb14034fd7e8ab036aeec787416c.png)

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

Thank you so much!

---

<div class="post-metadata">

**Author:** ![pavle](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/pavle/32/8641_2.png) [@pavle](https://discourse.psychopy.org/u/pavle)\
**Post date:** [June 20, 2024, 10:14pm UTC](https://discourse.psychopy.org/t/daisy-chaining-prolific-qualtrics-1-pavlovia-qualtrics-2-prolific/40515/2 "2024-06-20T22:14:52Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [June 21, 2024, 11:42am UTC](https://discourse.psychopy.org/t/daisy-chaining-prolific-qualtrics-1-pavlovia-qualtrics-2-prolific/40515/3 "2024-06-21T11:42:26Z")

</div>

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}`

---

<div class="post-metadata">

**Author:** ![lffa2021](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@lffa2021](https://discourse.psychopy.org/u/lffa2021)\
**Post date:** [June 24, 2024, 5:44pm UTC](https://discourse.psychopy.org/t/daisy-chaining-prolific-qualtrics-1-pavlovia-qualtrics-2-prolific/40515/4 "2024-06-24T17:44:08Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [June 24, 2024, 5:54pm UTC](https://discourse.psychopy.org/t/daisy-chaining-prolific-qualtrics-1-pavlovia-qualtrics-2-prolific/40515/5 "2024-06-24T17:54:14Z")

</div>

I suspect you are still using the wrong code somewhere.

This video might help:

[![](https://img.youtube.com/vi/WpTjVQH-jzw/maxresdefault.jpg "Daisy Chaining Online") ](https://www.youtube.com/watch?v=WpTjVQH-jzw)

---

<div class="post-metadata">

**Author:** ![pavle](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/pavle/32/8641_2.png) [@pavle](https://discourse.psychopy.org/u/pavle)\
**Post date:** [June 24, 2024, 10:40pm UTC](https://discourse.psychopy.org/t/daisy-chaining-prolific-qualtrics-1-pavlovia-qualtrics-2-prolific/40515/6 "2024-06-24T22:40:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lffa2021](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@lffa2021](https://discourse.psychopy.org/u/lffa2021)\
**Post date:** [June 25, 2024, 12:01am UTC](https://discourse.psychopy.org/t/daisy-chaining-prolific-qualtrics-1-pavlovia-qualtrics-2-prolific/40515/7 "2024-06-25T00:01:54Z")

</div>

> [@pavle](#):
>
> ?PROLIFIC\_PID= + expInfo[‘participant’]

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']"`

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [June 25, 2024, 7:45am UTC](https://discourse.psychopy.org/t/daisy-chaining-prolific-qualtrics-1-pavlovia-qualtrics-2-prolific/40515/8 "2024-06-25T07:45:40Z")

</div>

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']`

---

<div class="post-metadata">

**Author:** ![lffa2021](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@lffa2021](https://discourse.psychopy.org/u/lffa2021)\
**Post date:** [June 25, 2024, 11:15pm UTC](https://discourse.psychopy.org/t/daisy-chaining-prolific-qualtrics-1-pavlovia-qualtrics-2-prolific/40515/9 "2024-06-25T23:15:50Z")

</div>

Thank you so much! It works now!

---

<div class="post-metadata">

**Author:** ![brianna](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@brianna](https://discourse.psychopy.org/u/brianna)\
**Post date:** [December 3, 2024, 12:04am UTC](https://discourse.psychopy.org/t/daisy-chaining-prolific-qualtrics-1-pavlovia-qualtrics-2-prolific/40515/10 "2024-12-03T00:04:51Z")

</div>

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).
