Then in my experiment settings (see screen shot) I added variables with the same name as those that I used in the link (OR do I need to create python/JS variables). Does the app then add these to the data output file?
That’s correct, though I got some additions that might be handy:
The link with this {{%STUFF%}} in them is for entry into the Prolific system. It will automatically replace placeholder like {{%PROLIFIC_PID%}} with the current participant ID.
You’ve set up the Experiment Info box correctly, though those placeholders you’ve specified as default values don’t have any meaning to Pavlovia. This means that if, for some strange reason, a value isn’t received from Prolific via the URL, you’ll get the value {{%STUFF%}} in your data.
I’ve been looking through the demo chaining and I’m still a little confused. When you say current participant ID do you mean the ID that hopefully gets passed through Prolific?
Is there a better way storing the Prolific ID so that is meaningful to Pavlovia- I imagine there might not be based on the advice you give in the demo chaining, this is the best way to pass the Prolific ID through.
I initially tried this before posting and it didn’t work properly (it printed {{%PROLIFIC_PID%}} in my participant column):
In the demo, particpant_id is the Prolific participant UD. Imagine a participant with Prolific ID 123. If you’ve set up Prolific with something like this: epic_id={{%PROLIFIC_PID%}}, then Pavlovia receives an expInfo variable named epic_id with value 123
How would you like to make this ID more meaningful to Pavlovia?
I think in terms of making it meaningful to Pavlovia I was thinking as you said with the “STUFF” example that I just want to make sure the variable being printed out does relate to the information I want from Prolific (i.e. the ID that needs to travel from Prolific to Pavlovia). I was wanting to make sure that I did it in the best way possible as it didn’t work last time but I feel more confident from reading your help and the demo. Thanks again.
Hi, a bit of a late addition but I was trying to do the same and also ran into problems like @Lucy described in the replies. I followed all steps like they were described above. The Prolific ID was not transferred to Pavlovia and it instead printed {{%PROLIFIC_PID%}}.
I have found the reason for this now and thought it would be good to share in case someone else runs into problems. The tool by Wakefield Morys-Carter apparently does not accept any url parameters, but just those that are indicated on the website ( id, group, session, surveyId, and researcher). It’s important to set up the url parameters with these in mind. So for example, the study link has to look like this: https://moryscarter.com/vespr/pavlovia.php?folder=yourname&experiment=yourexperiment&id=123test&surveyId=456test&session=456test