Using Prolific IDs in OSWeb JATOS experiment
Hi!
I'm almost ready to run the experiment I've created in OSWeb on Prolific. I've uploaded it to our university's JATOS server, and it works fine from there (I've send people links and they work as well).
As I want to run it on Prolific, and they make use of huge ID numbers, I wanted to integrate these numbers right away, as is also indicated on your website and is explained (but for a different hosting site) on the Prolific site. However I have to admit that I'm a bit lost. In Prolific I can indeed find the URL Parameters, and I'd need the PROLIFIC_PID
to register Prolific ID's I'd say.
However where I get stuck is what I now need to do in JATOS. The JATOS site just says that "Then you can access those URL parameters in your study’s JavaScript via jatos.urlQueryParameters". I'm not quite sure how to do something like that? I assume that I would have to change it in my OSWeb file in some way? But I'm just not sure how to do this. I've never programmed in JavaScript before this experiment, so I'm sorry if the answer is very simple!
I also have another question related to Prolific IDs. Will they be treated as the subject number? I'm currently giving people a certain condition based on their participant number, but this is based on a number, not a combination of letters and numbers.
Kind regards,
Sanne
Comments
Hi Sanne,
I assume that I would have to change it in my OSWeb file in some way? But I'm just not sure how to do this.
Yes, the best is that you ask in the OSWeb forum how to add this as custom inline JavaScript.
Will they be treated as the subject number? I'm currently giving people a certain condition based on their participant number, but this is based on a number, not a combination of letters and numbers.
As I understand it, something in your code takes the subject number as input. In that case, that's again a question for OSWeb (it all has to do with the client side: the script that runs on the server).
Best
Elisa
Hi Elisa!
Thanks for your reply! I'll make sure to post this on the OSWeb forum as well.
Kind regards,
Sanne
(Better move the same message to their forum. I've done that)